Abstract
The problem of virtual sensor design for nonlinear systems under the disturbance is investigated. Two different mathematical techniques are used to solve the problem: the algebra of functions and the logic-dynamic approach. The first one allows obtaining a general solution while the second one produces a solution for nonlinear systems by linear algebra methods. The virtual sensors are designed to be insensitive to the disturbance based on invariant functions. They estimate the prescribed function of the original system state vector. The practical example illustrates theoretical results.
1. Introduction
Modern technical systems are provided by different sensors which are used, in particular, to solve control and fault diagnosis problems. To simplify the solution, one can use the additional physical sensors but this cannot always be realized in practice and may result in extra expenses. Moreover, as usual, such sensors are unreliable. In this case, one can use virtual sensors. Additionally, virtual sensors can replace the faulty physical sensor. Note that the virtual sensors are similar to the reduced-order observers, which estimate some of the system’s state variables. Virtual sensors are constructed to estimate the arbitrary nonlinear function of the system’s state vector.
Different problems in the design and application of virtual sensors are studied [1,2,3,4,5,6,7,8,9,10,11,12,13,14]. The practical applications of such sensors have mainly been for an automotive engine [1], an industrial motor [14], walking robots [6] and aircraft [7], and for fault diagnosis in a bicomponent mixing machine [8]. For remotely deployed sensors, a new architectural paradigm is presented in [10]. The different theoretical and practical aspects of virtual sensor design are considered in [2,4,9,11].
The main contribution of this paper is that virtual sensors which are insensitive or have minimal sensitivity to external disturbances are designed to estimate the prescribed function of the system state vector. Unlike [4], where the procedure to design virtual sensors estimating the entire state was developed for linear systems free of any external disturbances, this present paper considers the systems with non-smooth nonlinearities such as backlash, dry friction, saturation, and hysteresis, estimating the prescribed function of the state vector. Clearly, the use of the virtual sensors of the reduced dimension allows one to diminish the computational complexity and implement more effective control. Such sensors are designed using two different mathematical techniques. The first is the algebra of functions, allowing one to obtain the general solution developed in [15] and used to solve the different problems of nonlinear dynamic systems described by non-smooth nonlinearities. The second is the logic-dynamic approach developed in [16] which produces a solution for nonlinear systems by linear algebra methods. Such sensors estimate the prescribed components of the system state vector and are of the minimal dimension.
Consider the system given by the nonlinear model
Here, is the state vector, is the vector of control, is the vectors of the output; is an unknown function of time and describes the disturbance; f and h are nonlinear functions, and the function f may be non-smooth.
The problem is to design a virtual sensor that is insensitive to the disturbance and estimates the variable for the specified function . The reduced-order model
is used to design such a sensor. Here, is the vector of the state, and are functions to be determined and the variable will be explained below.
We consider two mathematical techniques to design the model (2): the general solution is based on the algebra of functions while the logic-dynamic approach produces a solution for nonlinear systems by methods of linear algebra.
2. General Solution
The general approach to the model (2) design is based on the algebra of functions developed in [15] and used to solve the different problems of system theory [15,17,18,19] and briefly described in Appendix A. The elements of this algebra are the functions determined on X. The algebra of the functions contains: the relation of the partial pre-order ≤, binary operations × and ⊕, binary relation , and operators and .
One assumes that there exists the function such that It follows from (2) that the considered problem is closed to the fault diagnosis problem described in terms of the algebra of functions in [15,17]. The differences are the variable in the function and in the function . The similarity of these problems allows to conclude that the function satisfies the condition [15,17]
where
Note that the function is -invariant and is similar to that used in [20] to solve the different problems of control theory.
The case when the model is insensitive to the disturbance is the best solution. Such a model can be designed as follows. Let be a minimal function (in the sense of the relation ≤) such that is not in . The sequence of functions is defined using the formula
One proves that for some finite k the relation is true [15,19]. Define
Theorem 1
The relation ≤ and the operator mean that the condition (3) implies the existence of the function satisfying the equality
whilst, additionally, it follows from that the function does not contain the disturbance .
To avoid the influence of on , the variable in (2) should not also contain . This means that this variable should be such part of the vector which is insensitive to the disturbance: . Denote .
To design the dynamic part of the model (2), perform the transformation according to (4) of the right hand side of the relation
To design the static part in the form , write down it as follows:
which is equivalent to the functional inequality
If this condition is true for the function , then based on (6) and the relation ≤, the function can be calculated. As a result, the model (2) was designed.
Recall that the function is minimal; this provides the best condition to satisfy (6) but produces the model of maximal dimensions. To simplify the model, one has to find the function satisfying the conditions
Since , then , and can be used instead of .
If the condition (6) is not satisfied, one cannot design the model insensitive to the disturbance. In this case, to design the model weakly sensitive to the disturbance, one has to supplement the function by the maximal (containing the minimal number of independent components) function satisfying the condition
Since the function is ambiguously defined, it should be chosen so that the contribution of the disturbance in the function is minimal.
Remark 1.
If the system is linear and is described by matrix equations, one can formulate the precise definition of the disturbance contribution in the model and then solve the problem to minimize this contribution [21]. Generally, one may call this weak sensitivity.
As a result, the total model is a composition of system (2) being insensitive to the disturbance and new system with the state vector (Figure 1), where function satisfies conditions
The first condition means that the function contains information no less than and can be used in (8) instead of . The second condition is similar to the inequality (3) and describes the dynamic of the second system in Figure 1.
Figure 1.
The total model.
The algorithm below (Algorithm 1) is used to compute the function satisfying the conditions in (9) [15,19].
| Algorithm 1: Computation of the function |
| 1. Set , . |
| 2. Compute the function . |
| 3. If can be expressed via , go to Step 5. |
| 4. Find the function with a minimal number of components satisfying the inequality |
| set and go to Step 2. |
| 5. Set . |
The algorithm does not guarantee that is unique, since different functions (incomparable in the sense of the relation ≤) satisfying the conditions (10) can be chosen at Step 4. More information about the algorithm can be found in [15,19].
3. Logic-Dynamic-Based Solution
3.1. Insensitivity to the Disturbance
When the function is assumed to be nonlinear, the theorem gives a general solution to the problem and demands a complex mathematical technique—the algebra of functions. If one limits a class of functions by linear functions, the solution can be obtained by the logic-dynamic approach [16] which is based on the linear algebra. To use this approach, system (1) should be presented in the form
where A, B, and C are matrices, the matrix D describes the disturbance, the contribution of nonlinear terms G is presented in the form
, …, are nonlinearities, and , …, are the matrices. One assumes that for the prescribed matrix V. System (12) can be obtained from (1) [16].
Note that the nonlinear smooth systems can be studied by geometric approaches [20,23]; in our case, where the systems with non-smooth nonlinearities are considered, these approaches cannot be applied.
As is already known [16], there are three steps in the logic-dynamic approach: at the first step, one removes the nonlinear term from (12); then, the linear model is designed with additional restriction; finally, one transforms the nonlinear term and adds it in the linear model. The linear model at the second step is given by
where ,
As above, the variable in (13) must be insensitive to the disturbance . To obtain such a variable, introduce the matrix of the maximal rank such that ; note that corresponds to the function . Clearly, is insensitive to and for some matrix . Additionally, since is a part of the vector y, then for some matrix . Both equalities result in the equation . The matrices and of maximal rank can be found from the equation
Finally, one set
Recall that for some function in Section 2; here, this function is assumed to be linear and for some matrix . It is known that this function satisfies the condition [16]
Besides one assumes that matrix is in canonical form. In [24], two different forms are considered: identification and Jordan ones; it was shown that, for the continuous-time systems, the Jordan form is preferable from the point of view of stability. The identification of the canonical form with the matrix
has zero eigenvalues, ensuring that the stability is therefore preferable for the discrete-time systems.
The matrices describing system (12) and model (13) meet the following equations based on (15) and (16) [16,24]:
Here, and are i-th rows of matrices and , respectively, Since system (12) contains the nonlinearity and model (13) contains the variable , the matrix should satisfy additional restrictions. The first of them has the form [16]
for some matrix . Here,
the numbers denote nonzero columns in . The equality (17) is solvable if
The second restriction arises from the demand and (13), which imply
This equation is solvable if
The inequalities (18) and (20) are the desired additional restrictions.
The condition guarantees that the model is insensitive to the disturbance; this demand can be presented in the form [21]
where
This equation is solvable if
If it is true, the matrix exists and satisfies the condition (21). Then, the matrix is found and the conditions (18) and (20) are checked; if they are fulfilled, the matrices , , Q, and can be found from (17), (19) and (15), respectively. If (18) or (20) are not fulfilled, another solution of (21) should be found. In what follows, we assume that (18) and (20) are satisfied.
3.2. Sensitive to the Disturbance Solution
If (21) has no solutions or (18) or (20) are not satisfied for all , the nonlinear model insensitive to the disturbance cannot be designed. Here, one has to use the robust method based on the singular value decomposition described in [21].
Consider another approach to obtain a robust solution based on the composition Figure 1. Assume that the matrix is found from (21) and the condition (18) is satisfied while (20) is not. Find all the rows of matrix V for which the condition (20) is satisfied, denote them by , and design the model (the first subsystem in Figure 1) estimating the vector insensitive to the disturbance. The rest of the rows, denoted by , are used to design the model (the second subsystem)
estimating the variable The first row of the matrix such that is found from the equation
for minimal k, where
Then, the matrix is found and the conditions (18) or (20) are checked after replacing the matrices , , and V by , , and , respectively. If these conditions are satisfied, compute the matrices , , , and and the linear model (24) is designed. The nonlinear term has the form
where are numbers of nonzero columns in The rows , …, are found from the equation where
4. Stability of the Model
If , the model is linear and its stability is ensured by the canonical form of the matrix , otherwise, an additional analysis is required. Consider this in detail; define the error
Assume that the error is small and the function is differentiable with respect to z. Initially consider the case when and . Since and , then
where . The function can be transformed as
As a result, the final relation for is given by
If the eigenvalues of the matrix are in the unit circle, the model is stable. Otherwise, one has to use a feedback with the residual where the matrix satisfies the condition for some matrix and [21]. These matrices can be found from the equation
The nonlinear model with the feedback is given by
The equation for the error becomes
This equation implies that the feedback matrix K depends on . This matrix can be constructed as follows: find the characteristic polynomial of the matrix
specify the eigenvalues , obtain the nonlinear equations
and find elements of the matrix K.
If the model has several nonlinearities, one obtains
In practice, the suggested approach can be used for a model of no more than 3–4 dimensions since it results in complex impressions when the determinant is calculated.
5. Practical Example
Consider the control system
Equation (26) constitutes a sampled-data model of the well-known three-tank system. The system consists of three consecutively united tanks. The liquid flows into the first and second tanks and follows from the third one through the pipe. The levels of liquid in the tanks are , , and , respectively, and are coefficients. It is assumed that .
Design the virtual sensor estimation for the variables and , that is . Compute the functions , and . Since , then , and so Since the condition (6) is not satisfied. The natural choice for in (8) is To compute , one uses Algorithm 1 and obtains As a result, the second subsystem in Figure 1 with is given by
Since the first subsystem in Figure 1 is two-dimensional. To reduce this subsystem, one may choose which satisfies the condition (7). As a result, the first subsystem in Figure 1 with is given by
The estimates of the variables and are as follows:
One can check that the model is stable, and therefore, the virtual sensor was designed.
Consider the logic-dynamic way to solve the problem. Clearly, in the model (12). To overcome this difficulty, transform Equation (26) by entering the formal addends and in the first, second, and third equations, respectively. The term refers to the linear part while refers to the nonlinear part; the rest of the formal addends are considered analogously.
As a result, the system is described by matrices and nonlinearities as follows:
Since the variables and are estimated, then
The matrix is found from (14):
and . Equation (21) has a solution with :
One may check that the condition (18) is satisfied, whilst (20) is not. Clearly, and
The solution for with produces the matrices , and . The solution of (17) is
The linear model corresponding to with is given by
and the nonlinear term is of the form
As a result, after inserting this term into the linear model and transforming it, one obtains the nonlinear model (28).
For , Equation (25) has a solution with :
which produces , and The linear model corresponding to with being given by
the nonlinear term is of the form
After inserting this term into the linear model and transforming it, one obtains the nonlinear model (27).
For simulation, consider system (26) and the sensor with the control , , , is a random process evenly distributed on appearing at . Simulation results are shown in Figure 2, where the variables , and their estimates , are presented for the initial conditions . Clearly, whilst the first sensor is sensitive to the disturbance, the second one is not.
Figure 2.
Behavior of variables and and virtual sensors and .
6. Discussion
The problem of virtual sensor design estimating the prescribed function of the state vector of the original system for nonlinear systems described by discrete-time models under the disturbance was studied. Two different mathematical techniques are used to solve the problem: the algebra of functions allows one to obtain a general solution and the logic-dynamic approach produces a solution for nonlinear systems by methods of linear algebra. The relations allowing one to design virtual sensor that is insensitive or that has minimal sensitivity to the disturbance were obtained. The theoretical results were illustrated by a practical example. A future research direction is the virtual sensor design for hybrid nonlinear dynamic systems.
The virtual sensors can be used in addition to the physical sensors in different practical systems or for replacing the faulty physical sensor. In particular, in [25,26], where the fault detection and estimation problems are considered, the additional virtual sensors allow simplifying the obtained solutions. Additionally, the algebra of the functions and the logic-dynamic approach enables one to extend a class of systems studied in [25,26] to systems with non-smooth nonlinearities.
Author Contributions
Conceptualization, O.S. and A.Z. (Alexander Zuev); Formal analysis, O.S., A.Z. (Alexey Zhirabok), I.A.H., A.T.A., A.Z. (Alexander Zuev), V.F., V.T. and I.K.I.; Funding acquisition, I.A.H.; Investigation, A.Z. (Alexey Zhirabok), I.A.H., A.T.A., A.Z. (Alexander Zuev), V.F., V.T. and I.K.I.; Methodology, O.S., A.Z. (Alexey Zhirabok), I.A.H., A.T.A., A.Z. (Alexander Zuev), V.F., V.T. and I.K.I.; Resources, A.Z. (Alexey Zhirabok), I.A.H., A.T.A., V.F., V.T. and I.K.I.; Software, A.Z. (Alexey Zhirabok), V.F. and V.T.; Supervision, O.S. and A.Z. (Alexander Zuev); Validation, O.S., A.Z. (Alexey Zhirabok), I.A.H., A.T.A., V.F., V.T. and I.K.I.; Visualization, A.T.A. and I.K.I.; writing—original draft preparation, O.S. and A.Z. (Alexander Zuev); writing—review and editing, O.S., A.Z. (Alexey Zhirabok), I.A.H., A.T.A., A.Z. (Alexander Zuev), V.F., V.T. and I.K.I. All authors have read and agreed to the published version of the manuscript.
Funding
This research is funded by the Norwegian University of Science and Technology, Norway, and supported by the Russian Scientific Foundation, project no. FZNS-2023-0011 (development of synthesis method) and Sevastopol State University within the framework of an internal grant for attract leading researchers, project identifier 42-01-09/169/2021-5 (development of the observers).
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Not applicable.
Acknowledgments
The authors would like to acknowledge the support of the Norwegian University of Science and Technology for paying the Article Processing Charges (APCs) of this publication. The authors would like to thank Prince Sultan University, Riyadh, Saudi Arabia for their support. Special acknowledgments are given to Automated Systems & Soft Computing Lab (ASSCL), Prince Sultan University, Riyadh, Saudi Arabia.
Conflicts of Interest
The authors declare no conflict of interest.
Sample Availability
Samples of the compounds Not applicable. are available from the authors.
Appendix A. Algebra of Functions
The algebra of functions has four main ingredients: (1) the relation of the partial pre-order ≤; (2) two binary operations × and ⊕; (3) binary relation ; (4) and operators and . These ingredients are defined on the set of vector functions with the domain X
1. Relation of a partial pre-order. For the functions , one writes down , if the function exists such that The definition means that each component of the function can be expressed via components of . If and , the functions and are called equivalent, denoted by .
2. Binary relations. It can be shown that ≅ is reflexive, symmetric and transitive. The set of the functions is divided by the equivalence relation ≅ into the equivalence classes with the equivalent functions. Denote the set of all equivalence classes by . Then, the relation ≤ is a partial order on this set, and is a lattice [27]. Recall that a lattice is a set with a partial order where every two elements and have a unique supremum and an infimum :
These operations define the function up to equivalence.
The rule to calculate the operation × is simple:
The operation ⊕ can be calculated based on differential geometry [15,28]. In simple cases, one can use the direct definition of as the supremum of and .
Consider the simple example. Let ,
Then, and ).
3. Binary relation . For the functions
for all and some function . Binary relation is used to define the operators.
4. Operators and .
Operator is a function satisfying two conditions: (i) ; (ii) if , then .
Operator is a function satisfying two conditions: (i) ; and (ii) if , then .
The last definitions mean: given , is the minimal function, forming a pair with , and given , is the maximal function, forming a pair with ñ .
The properties of the operators and as well as the rules to calculate them are given in [15,28].
References
- Ahmed, Q.; Bhatti, A.; Iqbal, M. Virtual sensors for automotive engine sensors fault diagnosis in second-order sliding modes. IEEE Sens. J. 2011, 11, 1832–1840. [Google Scholar] [CrossRef]
- Albertos, P.; Goodwin, G. Virtual sevrors for control application. Annu. Rev. Control. 2002, 26, 101–112. [Google Scholar] [CrossRef]
- Berkhoff, A.; Hekman, T. Active noise control using finite element-based virtual sensors. In Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Brighton, UK, 12–17 May 2019. [Google Scholar]
- Blanke, M.; Kinnaert, M.; Lunze, J.; Staroswiecki, M. Diagnosis and Fault Tolerant Control; Springer: Berlin, Germany, 2016. [Google Scholar]
- Galavizh, A.; Hassanabadi, A. Designing fuzzy fault tolerant controller for a DC microgrid based on virtual sensor. In Proceedings of the 7th International Conference on Control, Instrumentation and Automation (ICCIA), Tabriz, Iran, 23–24 February 2021. [Google Scholar]
- Hashlamon, I.; Erbatur, K. Joint sensor fault detection and recovery based on virtual sensor for walking legged robots. In Proceedings of the IEEE 23rd International Symposium on Industrial Electronics, ISIE 2014, Istanbul, Turkey, 1–4 June 2014; pp. 1204–1210. [Google Scholar]
- Heredia, G.; Ollero, A. Virtual sensor for failure detection, identification and recovery in the transition phase of a morphing aircraft. Sensors 2010, 10, 2188–2201. [Google Scholar] [CrossRef]
- Jove, E.; Casteleiro-Roca, J.; Quntian, H.; Mendez-Perez, J.; Calvo-Rolle, J. Virtual sensor for fault detection, isolation and data recovery for bicomponent mixing machine monitoring. Informatica 2019, 30, 671–687. [Google Scholar] [CrossRef]
- Luzar, M.; Witczak, M. Fault-tolerant control and diagnosis for LPV system with H-infinity virtual sensor. In Proceedings of the 3rd Conference Control and Fault-Tolerant Systems, Barcelona, Spain, 7–9 September 2016; pp. 825–830. [Google Scholar]
- Trevathan, J.; Read, W.; Sattar, A.; Schmidtke, S.; Sharp, T. The virtual sensor concept. In Proceedings of the 2020 IEEE Sensors, Rotterdam, The Netherlands, 25–28 October 2020. [Google Scholar]
- Wang, Y.; Rotondo, D.; Puig, V.; Cembrano, G. Fault-tolerant control based on virtual actuator and sensor for discrete-time descriptor systems. IEEE Trans. Circuits Syst. 2020, 67, 5316–5325. [Google Scholar] [CrossRef]
- Witczak, M. Fault Diagnosis and Fault Tolerant Control Strategies for Nonlinear Systems; Springer: Berlin, Germany, 2014. [Google Scholar]
- Roy, C.; Roy, A.; Misra, S. DIVISOR: Dynamic virtual sensor formation for overlapping region in IoT-based sensor-cloud. In Proceedings of the 2018 IEEE Wireless Communications and Networking Conference, Barcelona, Spain, 15–18 April 2018. [Google Scholar]
- Hosseinpoor, Z.; Arefi, M.; Razavi-Far, R.; Mozafari, N.; Hazbavi, S. Virtual sensors for fault diagnosis: A case of induction motor broken rotor bar. IEEE Sens. J. 2021, 21, 5044–5051. [Google Scholar] [CrossRef]
- Zhirabok, A.; Shumsky, A. The Algebraic Methods for Analysis of Nonlinear Dynamic Systems; Dalnauka: Vladivostok, Russia, 2018. (In Russian) [Google Scholar]
- Zhirabok, A. Logic-dynamic approach to the fault diagnosis in nonlinear systems. In Fault Diagnosis in Robotic and Industrial Systems; Rigatos, G.G., Ed.; iConcept Press: Hong Kong, China, 2012; pp. 67–88. [Google Scholar]
- Zhirabok, A. Fault isolation in nonlinear systems by functional diagnosis method based on generalized algebraic invariants. Autom. Remote Control 1994, 55, 956–964. [Google Scholar]
- Zhirabok, A. Disturbance decoupling problem: Logic-dynamic approach-based solution. Symmetry 2019, 11, 555. [Google Scholar] [CrossRef]
- Kaldmae, A.; Kotta, U.; Jiang, B.; Shumsky, A.; Zhirabok, A. Faulty plant reconfiguration based on disturbance decoupling methods. Asian J. Control 2016, 8, 858–867. [Google Scholar]
- Isidori, A. The geometric approach to nonlinear feedback control. Lect. Notes Comput. Inf. Sci. 1982, 44, 517–530. [Google Scholar]
- Zhirabok, A.; Shumsky, A.; Solyanik, S.; Suvorov, A. Design of nonlinear robust diagnostic observers. Autom. Remote Control 2017, 78, 1572–1584. [Google Scholar] [CrossRef]
- Misawa, E.; Hedrick, J. Nonlinear observers—A state of the art. Survey. J. Dyn. Syst. Meas. Control. 1989, 111, 344–352. [Google Scholar] [CrossRef]
- Aranda-Brivaire, E.; Kotta, U. A geometric solution to the dynamic disturbance decoupling for discrete-time nonlinear systems. Kybernetika 2004, 40, 197–206. [Google Scholar]
- Zhirabok, A.; Zuev, A.; Filaretov, V.; Shumsky, A.; Kim, C. Jordan canonical form in the diagnosis and estimation problems. Autom. Remote Control 2022, 83, 1355–1370. [Google Scholar] [CrossRef]
- Jiang, X.; Zhao, D. Event-triggered fault detection for nonlinear discrete-time switched stochastic systems: A convex function method. Sci. China Inf. Sci. 2021, 64, 200204. [Google Scholar] [CrossRef]
- Zhang, T.; Deng, F.; Sun, Y.; Shi, P. Fault estimation and fault-tolerant control for linear discrete time-varying stochastic systems. Sci. China Inf. Sci. 2021, 64, 200201. [Google Scholar] [CrossRef]
- Gratzer, G. General Lattice Theory; Akademie-Verlag: Berlin, Germany, 1978. [Google Scholar]
- Shumsky, A.; Zhirabok, A. Unified approach to the problem of full decoupling via output feedback. Eur. J. Control 2010, 16, 313–325. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 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/).