scieee AI-readable full text Open interactive document viewer

Modeling the Dynamics of Prosthetic Fingers for the Development of Predictive Control Algorithms

García Ortiz, José Vicente; Mora, Marta Covadonga; Cerdá Boluda, Joaquín

Abstract

In the field of biomechanical modeling, the development of a prosthetic hand with dexterity comparable to the human hand is a multidisciplinary challenge involving complex mechatronic systems, intuitive control schemes, and effective body interfaces. Most current commercial prostheses offer limited functionality, typically only one or two degrees of freedom (DoF), resulting in reduced user adoption due to discomfort and lack of functionality. This research aims to design a computationally efficient low-level control algorithm for prosthetic hand fingers to be able to (a) accurately manage finger positions, (b) anticipate future information, and (c) minimize power consumption. The methodology employed is known as model-based predictive control (MBPC) and starts with the application of linear identification techniques to model the system dynamics. Then, the identified model is used to implement a generalized predictive control (GPC) algorithm, which optimizes the control effort and system performance. A test bench is used for experimental validation, and the results demonstrate that the proposed control scheme significantly improves the prosthesis’ dexterity and energy efficiency, enhancing its potential for daily use by people with hand loss.

Full text

Citation: García-Ortíz, J.V.; Mora, M.C.; Cerdá-Boluda, J. Modeling the Dynamics of Prosthetic Fingers for the Development of Predictive Control Algorithms. Mathematics 2024,12, 3236. https://doi.org/10.3390/ math12203236 Academic Editors: JoséLuis Olazagoitia and Jordi Vinolas Received: 17 September 2024 Revised: 11 October 2024 Accepted: 12 October 2024 Published: 16 October 2024 Copyright: © 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/). mathematics Article Modeling the Dynamics of Prosthetic Fingers for the Development of Predictive Control Algorithms JoséVicente García-Ortíz1,*, Marta C. Mora 1and Joaquín Cerdá-Boluda 2 1Departament d’Enginyeria Mecànica i Construcció(EMC), Universitat Jaume I, 12071 Castellóde la Plana, Spain; [email protected] 2Instituto de Instrumentación para Imagen Molecular (I3M), Universitat Politècnica de València, 46020 Valencia, Spain; [email protected] *Correspondence: [email protected]; Tel.: +34-964-728-927 Abstract: In the field of biomechanical modeling, the development of a prosthetic hand with dexterity comparable to the human hand is a multidisciplinary challenge involving complex mechatronic systems, intuitive control schemes, and effective body interfaces. Most current commercial prostheses offer limited functionality, typically only one or two degrees of freedom (DoF), resulting in reduced user adoption due to discomfort and lack of functionality. This research aims to design a computationally efficient low-level control algorithm for prosthetic hand fingers to be able to (a) accurately manage finger positions, (b) anticipate future information, and (c) minimize power consumption. The methodology employed is known as model-based predictive control (MBPC) and starts with the application of linear identification techniques to model the system dynamics. Then, the identified model is used to implement a generalized predictive control (GPC) algorithm, which optimizes the control effort and system performance. A test bench is used for experimental validation, and the results demonstrate that the proposed control scheme significantly improves the prosthesis’ dexterity and energy efficiency, enhancing its potential for daily use by people with hand loss. Keywords: biomechanical modeling; prosthetic hand; mechatronics; model-based predictive control (MBPC); generalized predictive control (GPC); dexterity; energy efficiency MSC: 37M10 1. Introduction The replacement of the human hand by a prosthesis with a dexterity that allows the subject to perform most of the activities of daily living (ADL) that were previously performed with the original hand is a multidisciplinary engineering challenge since it requires the development of complex mechatronic systems, intuitive control schemes, and clinically sound interfaces with the body. Currently, most commercial prostheses only allow for the execution of one or two degrees of freedom (DoF) activated by an event that switches between one movement or the other [ 1 ]. The typically generated movements are the opening and closing of the hand, as well as the rotation of the wrist. This lack of dexterity hinders effective hand rehabilitation and results in patients rarely using the prostheses during activities of daily living [ 2 , 3 ]. Instead, they continue to use mechanically actuated non-anthropomorphic one-DoF prostheses extensively. In fact, the simplicity of hand prostheses from a biomechanical point of view is due, fundamentally, to the complexity of establishing an adequate interaction between the subject and a dexterous prosthesis with multiple degrees of freedom. The main reason for the use of more DoF is to increase the number of possible grasps made by the prosthesis and, therefore, to increase its dexterity. It has been shown that the implementation of two grasp types (cylindrical and pulp pinch) would cover 50% of ADLs, and the expansion to eight grasp types would cover over 90% of ADLs [4]. Mathematics 2024,12, 3236. https://doi.org/10.3390/math12203236 https://www.mdpi.com/journal/mathematics Mathematics 2024,12, 3236 2 of 15 However, although advanced prosthetic hands exist that are mechanically capable of forming the functional grips necessary to perform ADL, the control schemes implemented in these devices are far from the coordinated control produced by the intact neuromuscular system. In fact, the main reasons for abandoning the prosthesis are discomfort and lack of functionality due to complex or unnatural control or slow response to user commands [ 5 – 8 ]. A great amount of work and effort has been invested in recent times to avoid abandoning the problem, but there are multiple issues still to be solved [ 8 ]. First, the interface between a human and a machine must be comfortable and naturally integrated into daily activity. Some studies have addressed the optimization of sensor positioning in order to maximize the quality of the signal obtained [9]. Secondly, it is necessary that the classification algorithms work quickly, in real time, and robustly, thus minimizing possible errors in recognizing the type of grip that the user desires to make. In this sense, the critical emergence of machine learning (ML) techniques to solve the problem is notable [10]. To cite some representative examples and some of the philosophies that are being explored most widely, Kadavath et al. [ 11 ] used four traditional ML models for classifying finger movements into seven distinct gestures. They concluded that Random Forest emerges as the top performer, consistently delivering superior precision. For their part, the authors explored the use of a simple multilayer perceptron in the classification process, which led them to obtain success rates close to 80% in real time and under very rigorous resource and consumption restrictions [ 12 ]. Another very promising technology that is being explored in the literature is Support Vector Machines (SVM), which constitute one of the privileged directions of advancement in the immediate future [13]. However, in contrast to the evident large number of studies focused on the high-level control part of hand prostheses, the relative lack of contributions in the physical part of the problem is striking, where new proposals appear very sporadically [ 14 ] and, sometimes, the techniques used are not even mentioned in the developments. In fact, the low-level control schemes used in current prosthetics are very simple, mainly of the proportional (P) type, usually referred to as Direct Control [ 15 ], or proportional–integral–derivative (PID) type [ 16 , 17 ], prioritizing the robustness of the system instead of performance. However, there are hardly any works that include the modeling of the system to be controlled (the motors of the hand) and the development of appropriate algorithms. In addition, there is no dilemma between performance and stability. The key is to have a good model of the system and to use more advanced control algorithms where not only the response of the system is considered but also the control effort. Therefore, a range of algorithms based on a cost index opens up, where their design can consider both parts of the control: performance and stability. This family of algorithms is based on optimal control, and specifically, there is an ideal subfamily for prostheses control: model-based predictive control (MBPC) algorithms [ 18 – 20 ]. This implies the need to obtain a good model of the system in order to design a low-level controller that offers good performance in terms of low computational cost and energy consumption, as well as stability. Thus, the trajectory of the fingers of the prosthetic hand could correspond to the trajectory of those of the human hand with low energy consumption. This work proposes a model-based generalized predictive control (GPC) algorithm with future information for prosthetic hand fingers that solves the abovementioned problems and improves the prosthesis’ stability and performance in terms of computational cost, grip execution, and energy consumption. To the authors’ knowledge, this is the first time a GPC with future information is used in hand prostheses. This paper is structured as follows. In Section 2, the aim of this paper is detailed. Section 3describes the prosthetic hand used, the linear identification process, and the algorithms developed. Section 4details the results of both the identification and control processes. Section 5discusses the results obtained, and finally, Section 6draws the conclusions of this work. Mathematics 2024,12, 3236 3 of 15 2. Aim The aim of this work is to design an algorithm for the low-level control of the fingers of an artificial hand based on a proper mathematical model of the fingers’ dynamics obtained from experimental information. For this purpose, a mathematical protocol is proposed that involves the following three steps: (a) system identification and modeling; (b) development of control algorithms; (c) testing and comparison. The control algorithm must comply with several requirements: •Low computational cost; •Stability; •Managing future information that may be known; •Accurately managing the finger position in a determined and predefined trajectory; • Reducing the power consumption with respect to those in the literature since humanembedded prosthetic hands are powered by a battery. 3. Materials and Methods In order to develop this work, it is necessary to have, on the one hand, a test bench capable of obtaining experimental results under certain conditions and, on the other hand, to use the proper mathematical models and techniques to obtain the desired results. Regarding the mathematical techniques employed in this work, two types of algorithms are used: first, algorithms for linear identification of systems and second, control algorithms able to correctly manage the fingers’ trajectories. 3.1. The Prosthetic Hand In this work, a 3D-printed mechanical hand developed by the Biomechanics and Ergonomics research group of the Universitat Jaume I has been used as a prosthetic hand. The artificial hand, called BRUJA Hand, [ 21 ], has six degrees of freedom and it is composed of a rod mechanism with one DoF for each of the finger flexions and a sixth degree for the abduction of the thumb. Each of the fingers of the hand is made up of three sections or phalanges, except for the thumb, which has two. Since the fingers are formed by one degree of freedom rod mechanism, the position of each finger is directly and necessarily determined by the position of the electric motor. The BRUJA Hand is depicted in Figure 1. Mathematics 2024, 12, x FOR PEER REVIEW 3 of 15 This paper is structured as follows. In Section 2, the aim of this paper is detailed. Section 3 describes the prosthetic hand used, the linear identification process, and the algorithms developed. Section 4 details the results of both the identification and control processes. Section 5 discusses the results obtained, and finally, Section 6 draws the conclusions of this work. 2. Aim The aim of this work is to design an algorithm for the low-level control of the fingers of an artificial hand based on a proper mathematical model of the fingers’ dynamics obtained from experimental information. For this purpose, a mathematical protocol is proposed that involves the following three steps: (a) system identification and modeling; (b) development of control algorithms; (c) testing and comparison. The control algorithm must comply with several requirements: • Low computational cost; • Stability; • Managing future information that may be known; • Accurately managing the finger position in a determined and predefined trajectory; • Reducing the power consumption with respect to those in the literature since human-embedded prosthetic hands are powered by a battery. 3. Materials and Methods In order to develop this work, it is necessary to have, on the one hand, a test bench capable of obtaining experimental results under certain conditions and, on the other hand, to use the proper mathematical models and techniques to obtain the desired results. Regarding the mathematical techniques employed in this work, two types of algorithms are used: first, algorithms for linear identification of systems and second, control algorithms able to correctly manage the fingers’ trajectories. 3.1. The Prosthetic Hand In this work, a 3D-printed mechanical hand developed by the Biomechanics and Ergonomics research group of the Universitat Jaume I has been used as a prosthetic hand. The artificial hand, called BRUJA Hand, [21], has six degrees of freedom and it is composed of a rod mechanism with one DoF for each of the finger flexions and a sixth degree for the abduction of the thumb. Each of the fingers of the hand is made up of three sections or phalanges, except for the thumb, which has two. Since the fingers are formed by one degree of freedom rod mechanism, the position of each finger is directly and necessarily determined by the position of the electric motor. The BRUJA Hand is depicted in Figure 1. Figure 1. BRUJA Hand [18]. 3.2. Linear Identification Process The linear identification process arises from the need to obtain a linear model of a system’s behavior. It is a widely used procedure in systems where the physics is unknown or simply subject to a series of uncertainties that distance the physical model from the real behavior. In an artificial hand, the mechanical model of a finger can be known sufficiently well by using kinematic and dynamic principles. However, phenomena appear that are difficult to model and that generate uncertainties, such as friction and other irreversibilities, Mathematics 2024,12, 3236 4 of 15 non-linearities of generalized inertia, hysteresis phenomena, etc. Fortunately, physical systems tend to have a linear behavior in certain operating ranges. It is precisely this feature that makes it possible to think that the use of a linear model can be a good alternative, especially when its properties are assessed. The main advantages of using linear models are the low computational cost of their evaluation and the possibility of obtaining a linear model based on experimental data collected in the system to be modeled. The main disadvantage is the loss of physical sense of some internal parameters of the model. Experimental modeling involves a series of the following steps: • First, the main system parameters (input and output) must be determined. The input power to the finger motor is established as a system input. The position of the kinematic chain is established as the system output; • Second, an input signal must be applied to the system to excite it, which must fulfill a series of properties [ 22 ]. Theoretically, the white noise signal could drive the system at any frequency. However, since white noise is a complex signal, an equivalent signal is proposed that complies with the properties established in [ 22 ]. That work establishes the required properties and characteristics for an experiment to provide adequate data for a correct system identification. Based on previous experimentation, a pseudo-random signal is selected for identification purposes; • Finally, knowing the system features, a battery of tests to be applied is determined. As gravity acts on the system and produces a constant steering force on all the elements of the kinematic chain of the finger, some tests have been designed in order to assess its effect. Therefore, the identification experiments in the PACMAR (acronym in Spanish for Automatic Platform for Anthropomorphic and Robotic Hands) TestBench [23] are the following: 1. Palm up; 2. Palm down; 3. Palm perpendicular to the ground. Once the effective data block for the identification has been determined, the identification is carried out using various algorithms. The data block used is the output increments instead of the output value. The main reason is the integrative behavior performed by the system, which will be developed later. The linear identification of the system is developed in two phases. The first phase involves the definition of the structure of the linear model. In the second phase, an identification algorithm determines the coefficients of the transfer functions. Regarding the structure of the model, let us define the unit forward shift operator zas zx(t)=x(t+1), (1) and, consequently, the unit delay operator z–1 as z−1x(t)=x(t−1). (2) Most single-input, single-output (SISO) processes can be described by A(z)y(t)=z−dB(z)u(t−1)+C(z)ξ(t). (3) In this expression, •u(t) is the input, the control action on the system at time t; •y(t) is the output, the value of the system measurements at time t; •ξ(t) is the noise of the system at time (t); Mathematics 2024,12, 3236 5 of 15 • A(z), B(z), and C(z) are the following polynomials of order na,nb, and nc, respectively: A(z)=1+a1z−1+a2z−2+. . . +anaz−na B(z)=b0+b1z−1+b2z−2+. . . +bnbz−nb C(z)=1+c1z−1+c2z−2+. . . +cncz−nc (4) This model is known as a Controlled Auto-Regressive Moving Average (CARMA) [ 18 ]. In the present work, an improved modification of the CARMA model has been selected: the Controlled Auto-Regressive Integrated Moving Average (CARIMA) model [ 18 ]. This new model includes an additional step of integration, as can be seen in Figure 2. Mathematics 2024, 12, x FOR PEER REVIEW 5 of 15 𝐴 (𝑧)𝑦(𝑡)=𝑧𝐵(𝑧)𝑢(𝑡−1)+𝐶(𝑧)𝜉(𝑡). (3) In this expression, • u(t) is the input, the control action on the system at time t; • y(t) is the output, the value of the system measurements at time t; • 𝜉(t) is the noise of the system at time (t); • A(z), B(z), and C(z) are the following polynomials of order na, nb, and nc, respectively: 𝐴 (𝑧)=1+𝑎𝑧+𝑎𝑧 +⋯+𝑎𝑧 𝐵(𝑧)=𝑏+𝑏𝑧+𝑏𝑧+⋯+𝑏𝑧 𝐶(𝑧)=1+𝑐𝑧+𝑐𝑧+⋯+𝑐𝑧 (4) This model is known as a Controlled Auto-Regressive Moving Average (CARMA) [18]. In the present work, an improved modification of the CARMA model has been selected: the Controlled Auto-Regressive Integrated Moving Average (CARIMA) model [18]. This new model includes an additional step of integration, as can be seen in Figure 2. Figure 2. Controlled Auto-Regressive Integrated Moving Average (CARIMA) model [21]. This structure has two important terms. The first term contains the transfer function itself, which relates the dominant dynamics of the identified system, directly relating the input to the system with the position of the finger. The second term is based on a totally stochastic, random input. This second input has some special dynamics. On the one hand, it is affected by the same poles as the main dynamics but with an integration of noise. This allows the model to have a drift noise that is able to improve the prediction of values. In addition, it contains a polynomial with some zeros, which will make the model more stable. This fact is understood when the GPC (generalized predictive controller [21–23]) is selected as the system control algorithm. 𝐴 (𝑧)𝑦(𝑡)=𝐵(𝑧)𝑧𝑢(𝑡−1)+𝐶(𝑧)() ∆. (5) with Δ = 1 − z–1. For simplicity, polynomial C can be chosen to be 1. For the second phase, which involves the identification of polynomials A and B, several identification algorithms have been tested: 1. Output error (OE); 2. Prediction Error Method (PEM); 3. The Multivariable Output Error State Space Method (N4SID); 4. Auto-Regressive Exogenous (ARX). First, the number of dominant and representative poles and zeros of the system must be determined. To do this, it is usually sufficient to carry out some initial tests, taking into account that real systems do not usually have very complex dynamics. This implies that it is unlikely to detect systems with more than two dominant poles and one Figure 2. Controlled Auto-Regressive Integrated Moving Average (CARIMA) model [21]. This structure has two important terms. The first term contains the transfer function itself, which relates the dominant dynamics of the identified system, directly relating the input to the system with the position of the finger. The second term is based on a totally stochastic, random input. This second input has some special dynamics. On the one hand, it is affected by the same poles as the main dynamics but with an integration of noise. This allows the model to have a drift noise that is able to improve the prediction of values. In addition, it contains a polynomial with some zeros, which will make the model more stable. This fact is understood when the GPC (generalized predictive controller [ 21 – 23 ]) is selected as the system control algorithm. A(z)y(t)=B(z)z−du(t−1)+C(z)ξ(t) ∆. (5) with ∆= 1 −z–1. For simplicity, polynomial Ccan be chosen to be 1. For the second phase, which involves the identification of polynomials Aand B, several identification algorithms have been tested: 1. Output error (OE); 2. Prediction Error Method (PEM); 3. The Multivariable Output Error State Space Method (N4SID); 4. Auto-Regressive Exogenous (ARX). First, the number of dominant and representative poles and zeros of the system must be determined. To do this, it is usually sufficient to carry out some initial tests, taking into account that real systems do not usually have very complex dynamics. This implies that it is unlikely to detect systems with more than two dominant poles and one zero, which are representative of the system dynamics. The structure of the polynomials will be as follows: 3 coefficients for polynomial A; 2 coefficients for polynomial B; and 1 natural delay in the discretized system. This structure is optimized by a parametric study carried out by MATLAB®functions. The identification algorithms used are based on the minimization of the existing error between the measured response of the system and the one predicted by the model (coefficients of the described polynomials). The most commonly used technique is the least Mathematics 2024,12, 3236 6 of 15 squares method. Minimizing the function V LS , it is possible to obtain the coefficients of the polynomials that compose this linear model. VLS =1 N∑N+n t=n+1ε(t)2=1 N∑N+n t=n+1(A(z)y(t)−B(z)u(t))2, (6) where •VLS is the function of the residual by least squares; •nis the order of the system (i.e., the number of parameters of the model); •Nis the number of samples of the identification sequence (normally N>> n); •ε(t)is the error; •the polynomial A(z) contains the poles of the system; •the polynomial B(z) contains the zeros of the system. After the application of Parseval’s formula, the previous equation is transformed into the frequency domain, VLS →1 2πZπ −π G0eiω−Beiω Aeiω!2 A2eiωΦu(ω)dω+1 2πZπ −πA2eiωΦν(ω)dω(7) where G0eiω is the true transfer function; Φu(ω) and Φν(ω) are the spectra of the input and the disturbance, respectively. The details of the development are described in [24]. 3.2.1. Output Error This algorithm is based on the simple comparison between the predicted output and the experimentally measured output of the system. εoe(t)=y(t)−B(z) A(z)u(t)(8) Assuming that the process order nis known, the output error method estimates parameters by minimizing the loss function: VN OE =1 N N ∑ t=1 εoe(t)2(9) 3.2.2. Prediction Error Method In this case, the error equation for linear regression is redefined as follows: y(t)=−a1y(t−1)−. . . −any(t−n)+b1u(t−1)+. . . +bnu(t−n)+ε(t) y(t)=(1−A(z))y(t)+B(z)u(t)+ε(t)(10) Neglecting the ε(t) term, it is possible to predict the output error and the minimization of the function can be addressed by the generalized least squares method, leaving the prediction as A0(z)y(t)=B0(z)u(t)+1 D0(z)ξ(t) y(t)=B0(z) A0(z)u(t)+1 A0(z)D0(z)ξ(t)(11) where A0(z)=1+a0 1z−1+a0 2z−2+. . . +a0 nz−n B0(z)=b0 1z−1+b0 2z−2+. . . +b0 nz−n D0(z)=1+d0 1z−1+d0 2z−2+. . . +d0 ndz−nd (12) and ξ(t)is white noise with zero mean and variance R. Hence, the minimization of VLS is performed using the new model. Mathematics 2024,12, 3236 7 of 15 3.2.3. N4SID This algorithm, developed by Van Overschee and De Moor [ 25 ], is one of the most used for subspace state space system identification. In this case, the proposed model is based on a state space model. x(t+1)=Ax(t)+Bu(t)+w(t) y(t)=Cx(t)+Du(t)+v(t)(13) In these expressions, A,B,C, and Dare matrices of constant coefficients. In this case, a residual equation is generated, that is, the difference between the output measured in the test and the output proposed by the model. This difference should be minimized, although, in the case of state space, there are multiple models that provide the same transfer function model. Signals w(t) and v(t) are random variables due to noise or internal non-linearity behavior. 3.2.4. Auto Regressive eXogenous ARX The ARX algorithm is used to obtain dynamic models of systems based on experimental data measured from a real system. In this case, it is considered that the system’s dynamics depend on its own history and an exogenous variable. Additionally, errors in the model or due to measurement inaccuracies are also considered. A(z)y(t)=z−dB(z)u(t−1)+ξ(t) In this expression, Ais the vector that contains the numerator of the transfer function to be determined. From this, the poles of the system can be deduced, and consequently, the system’s dominant dynamics. Bcontains the coefficients of the target transfer function, i.e., the system’s zeros. Finally, Chi is the stochastic random variable that accounts for measurement and modeling errors. Prior to the identification process, a parametric study of poles, zeros, and the optimal order of the system was conducted. This involved using data to find an optimal structure through specific functions. In this particular case, the MATLAB ® function arxstruc was used to determine the order of the A and B polynomials, which provides the most optimal transfer function. In general, choosing the system order does not pose significant issues, as systems in nature rarely have more than two dominant poles or more than one zero. 3.3. Generalized Predictive Control GPC A control is proposed based on a generalized predictive controller (GPC). This control algorithm is based on 4 pillars: •The prediction model (CARIMA); •The cost index; •The optimization tool; •The application of the moving horizon. The CARIMA model is a model with drift noise and, therefore, tolerant to modeling errors and non-measurable disturbances in the system. It is based on the transfer function obtained from the identification. It also contains a polynomial in the noise part that will serve as a signal-filtering element that provides additional stability to the controller. These concepts are fully developed in Clarke’s articles [ 21 – 23 ]. Regarding the cost index, it is important to remark that it allows for the inclusion, in the design process, of not only the cost of the error but also the cost of control. The cost of the error is the term that gives importance to not having the system controlled, that is, to having a non-zero error. The cost of control gives importance to the cost of sudden variations in control actions. In an ideal system, this cost is expressed in monetary units. In short, predictive control is based on optimal control and, therefore, the search for actions that minimize the total cost based on objective criteria. Mathematics 2024,12, 3236 8 of 15 4. Results This section presents all the experimental tests carried out and all the results of the application of the mathematical algorithms. It is divided into two subsections: the first one details the identification experiments carried out, and the second one explains the predictive control algorithms used. 4.1. Identification 4.1.1. Tests For the identification of the process, a design of experiments has been developed to determine the tests and the characteristics of the inputs to the system that comply with the specifications. As already determined in [ 26 ], the ideal signal used for identification would be the white noise. However, it is known that pseudo-random inputs (PRBS) [ 19 ] have the required characteristics and are easier to implement and, therefore, have been used in these experiments. In addition, the input values must be sufficient to excite the system and generate an observable response. The experiments have been performed on the hand in three different postures with the aim of determining the effect of gravity on the identified model: palm up, palm down, and palm perpendicular to the ground. As a mechanical system, it is subject to a field of conservative forces that affects the desired posture indicated by the behavior. 4.1.2. Identification Results Figure 3shows an example of the signals obtained from the identification experiment, where the time is represented on the X-axis. The lower part of the figure represents the control action in percentage (PWM). The control action is applied with a maximum of +20% and a minimum of − 20%. In addition, the deterministic steps are set every 10%. The upper part represents the response of the system, that is, the finger position. Specifically, it represents the number of counts of an incremental encoder located on the axis of the DC motor that moves the finger. It can be seen that the signal is well-designed (with a range ± 20% of the control action) since it is exciting to the system, and the time ranges allow for setting the dominant trends in the finger dynamics. Mathematics 2024, 12, x FOR PEER REVIEW 9 of 15 Figure 3. Experimental results for the finger position. Up: the encoder counts, in steps, as a function of time. Down: the PWM percentage as a function of time. Steps in the encoder count are defined, such as 250 steps are equivalent to one complete turn (that is, 360 degrees). One of the most important characteristics that can be observed is the fact that the system does not return to zero after the applied excitation. This is related to the fact that the absence of control action paralyzes the movement. This effect indicates that the system has an integrator or is a type 1 system [19] since null control actions do not generate movements in the finger position in a steady state. This effect must be removed [27,28] to make the identification algorithms more efficient, and the integrator must be included after obtaining the model. For that reason, data pre-processing is required to filter the data properly, with the resulting signal displayed in Figure 4. The most important actions that have been carried out on the system are increasing the output and the filtering of the high frequencies. Figure 4. Processed data for linear identification: incremental finger position in degrees (up) and control action in percentage (down). Figure 3. Experimental results for the finger position. Up: the encoder counts, in steps, as a function of time. Down: the PWM percentage as a function of time. Steps in the encoder count are defined, such as 250 steps are equivalent to one complete turn (that is, 360 degrees). Mathematics 2024,12, 3236 9 of 15 One of the most important characteristics that can be observed is the fact that the system does not return to zero after the applied excitation. This is related to the fact that the absence of control action paralyzes the movement. This effect indicates that the system has an integrator or is a type 1 system [ 19 ] since null control actions do not generate movements in the finger position in a steady state. This effect must be removed [ 27 , 28 ] to make the identification algorithms more efficient, and the integrator must be included after obtaining the model. For that reason, data pre-processing is required to filter the data properly, with the resulting signal displayed in Figure 4. The most important actions that have been carried out on the system are increasing the output and the filtering of the high frequencies. Mathematics 2024, 12, x FOR PEER REVIEW 9 of 15 Figure 3. Experimental results for the finger position. Up: the encoder counts, in steps, as a function of time. Down: the PWM percentage as a function of time. Steps in the encoder count are defined, such as 250 steps are equivalent to one complete turn (that is, 360 degrees). One of the most important characteristics that can be observed is the fact that the system does not return to zero after the applied excitation. This is related to the fact that the absence of control action paralyzes the movement. This effect indicates that the system has an integrator or is a type 1 system [19] since null control actions do not generate movements in the finger position in a steady state. This effect must be removed [27,28] to make the identification algorithms more efficient, and the integrator must be included after obtaining the model. For that reason, data pre-processing is required to filter the data properly, with the resulting signal displayed in Figure 4. The most important actions that have been carried out on the system are increasing the output and the filtering of the high frequencies. Figure 4. Processed data for linear identification: incremental finger position in degrees (up) and control action in percentage (down). Figure 4. Processed data for linear identification: incremental finger position in degrees (up) and control action in percentage (down). Table 1presents the results of the identification produced by the various algorithms used. In the first column, the algorithm used is indicated. The second column shows the percentage of agreement between the identified model and the data used to identify the model. The last column gives the degree of agreement between the identified model and the validation data, which give the worst results. The data used to identify the model are the data with the palm of the hand perpendicular to the ground. For validation data, data with the palm facing up were used, which gave a non-linear behavior. Table 1. Percentage of agreement between measured and identified models. Identification Algorithm Id Data Validation Data OE (output error) 71.22% 58.76% ARX 70.37% 70.30% PEM 70.54% 66.64% N4SID 70.87% 65.10% Figure 5shows the agreement between the modeled response (in blue) and the validation data (in gray). With these results, a model is obtained that efficiently represents reality well, a fact that makes it possible to design a control for the system.