Next Article in Journal
Remaining Useful Life Prediction Method for Bearings Based on Pruned Exact Linear Time State Segmentation and Time–Frequency Diagram
Previous Article in Journal
Simulation and Modelling of C+L+S Multiband Optical Transmission for the OCATA Time Domain Digital Twin
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Prediction of Input–Output Characteristic Curves of Hydraulic Cylinders Based on Three-Layer BP Neural Network

1
State Key Laboratory of Crane Technology, Yanshan University, Qinhuangdao 066004, China
2
School of Mechanical Engineering, Yanshan University, Qinhuangdao 066004, China
3
Hebei Provincial Key Laboratory of Heavy Machinery Fluid Power Transmission and Control, Yanshan University, Qinhuangdao 066004, China
*
Author to whom correspondence should be addressed.
Sensors 2025, 25(6), 1949; https://doi.org/10.3390/s25061949
Submission received: 20 February 2025 / Revised: 13 March 2025 / Accepted: 19 March 2025 / Published: 20 March 2025
(This article belongs to the Section Physical Sensors)

Abstract

:
To predict the variation in the displacement position of hydraulic cylinder piston rods, a neural network model is proposed to enhance the displacement control accuracy of hydraulic cylinders. The innovation of this paper is that by calculating the compressibility-induced flow loss of hydraulic fluid, mathematical models for both the internal and external leakage of hydraulic cylinders are established, identifying seven primary factors influencing piston rod displacement. Because there are many influencing factors and complex parameters different from traditional backpropagation (BP) neural network used in previous studies, this paper innovatively proposes a three-layer BP neural network ensemble model for predicting input–output characteristic curves of hydraulic cylinders. In the process of model improvement, a nonlinear adaptive decreasing weight mechanism is introduced to improve the optimization accuracy of the algorithm, facilitating the search for optimal solutions. The most reasonable weight and bias parameters are determined via the iterative training and testing of each BP neural network layer. This model enables the real-time prediction of piston rod displacement output curves after a specified time interval based on external input parameters. The predicted time is utilized to compensate for the response delays caused by directional valve switching and hydraulic fluid buffering, thereby enabling proactive displacement prediction. Validation results demonstrate that the maximum predicted displacement error is reduced to 0.5491 µm, with the model’s maximum runtime being 27.82 ms. The maximum allowable time allocated for directional valve switching and fluid buffering in the hydraulic system is extended to 74.57 ms, achieving the objective of enhancing both displacement control accuracy and operational efficiency.

1. Introduction

Remarkable advancements in electrohydraulic control technologies [1] have substantially diversified the functional capabilities of hydraulic systems [2] in the construction machinery domain. High-precision actuation and superior operational reliability [3] now represent pivotal developmental trajectories in hydraulic technology. The automatic monitoring and diagnosis of system parameters such as flow, pressure, temperature, and oil contamination [4] using electronic components such as sensors supplemented by systematic data analyses and mining by computer systems [5] can significantly improve the control accuracy and operation efficiency of hydraulic systems.
Notably, displacement control precision currently constitutes one of the most stringent performance metrics in high-end hydraulic systems. As the predominant actuation component in such systems [6], the displacement accuracy of hydraulic cylinder piston rods has a deterministic influence on overall system controllability and operational efficacy [7]. Consequently, rigorous investigation into output displacement calibration methodologies for hydraulic cylinders are of paramount importance for advancing precision control paradigms in modern hydraulic systems. The hydraulic cylinder displacement sensor is a critical component of hydraulic systems, designed to accurately measure the displacement of the hydraulic cylinder piston [8]. It primarily encompasses technologies such as magnetostrictive, inductive, capacitive, ultrasonic, and fiber-optic sensors [9]. Despite significant advancements in hydraulic cylinder displacement sensor technology in recent years, the precision of piston rod displacement remains influenced by a multitude of factors, including pressure, flow rate, temperature, hydraulic oil viscosity, density, compressibility, and leakage [10]. Additionally, conventional approaches continue to demonstrate constrained efficacy in meeting the stringent requirements of control accuracy and transient response dynamics. To address these limitations, Wei et al. [11] analyzed the dynamic characteristics of a digital hydraulic cylinder, and they established a mathematical model of the equivalent flow area of the valve port of the primary and secondary throttling slots to allow for an analysis of the initial position of the piston. Ding et al. [12] proposed a hydraulic cylinder system model with three conversion modes to expand the displacement tracking capability of hydraulic cylinders. Kim et al. [13] proposed an adaptive backstepping control (ABSC) scheme to overcome the uncertainty in hydraulic cylinder systems and improve their tracking performance. Batabyal et al. [14] proposed an automatic control method for the mechanical operating position of hydraulic cylinders under digital twins, and it showed that the steady-state displacement error was small under both constant and variable load conditions. Zhang et al. [15] proposed a hydraulic cylinder system model based on a compound velocity feedforward and fuzzy proportional integral derivative (PID) control strategy, achieving a displacement tracking error of 3%. Ding et al. [16] proposed a least mean square (LMS) adaptive filter based on wavelet transform, which has strong ability to track the displacement of the piston rod of hydraulic cylinders. Zhang et al. [17] studied the mechanism of a fuzzy PID controller to improve displacement tracking response performance and realized running speed control. Lin et al. [18] proposed a design method for robust discrete-time sliding mode control, which was experimentally verified to be better in tracking accuracy than PID control. Yan et al. [19] proposed an improved continuous electrohydraulic servo model based on synovium control to solve the problem of buffeting when the electrohydraulic servo system is moving to a near-zero position and tracking the displacement trajectory of the piston rod. Ahn et al. [20] proposed a displacement control method based on an adaptive reverse-control scheme, which also has relatively good tracking accuracy in the case of external interference. Wu et al. [21] proposed an electrohydraulic servo system controlled by the displacement and force coupling of a bidirectional hydraulic press, and they established a corresponding mathematical model that ultimately reduced the overshoot of displacement and increased the degree of freedom of the system.
Although the aforementioned designs of hydraulic cylinder piston rod displacement systems integrate multiple high-precision technologies, such as automatic control, adaptive filtering, and digital twins, their complexity in monitoring and control, coupled with prolonged response times, hinders the accurate acquisition of positional changes in mechanical operational behavior. This presents a significant challenge in enhancing the displacement accuracy of hydraulic cylinders. In contrast to traditional methods such as hydraulic servo closed-loop control, the application of neural networks for predicting hydraulic cylinder input–output curves offers distinct advantages. Neural networks leverage data-driven approaches to simplify control architectures, capture the nonlinear characteristics of hydraulic systems, and exhibit adaptive and real-time predictive capabilities, thereby addressing the limitations of conventional techniques.
Because the traditional BP neural network prediction method does not involve many influential factors, its structure is relatively simple. Differently from previous methods, in this study, we focus on the input–output curves of hydraulic cylinders and address the challenge of controlling displacement accuracy by a three-layer BP neural network based on nonlinear adaptive descending weight to enhance the precision of hydraulic cylinder piston rod displacement. We primarily analyze the factors influencing conventional hydraulic cylinders, such as the effective bulk modulus of the fluid, viscosity, temperature, pressure, flow rate, and contaminants, to identify the parameters that need to be collected under various conditions and operational scenarios. Such parameters include the physical properties of the hydraulic fluid and piston rod displacement. By utilizing the model to predict hydraulic cylinder displacement, the system can anticipate the piston rod’s position at different time points, enabling the early closure of directional valves. This approach compensates for the response time of hydraulic components, thereby improving displacement accuracy and overcoming the inherent delays associated with traditional displacement compensation methods. Automatic parameter optimization in the neural network prediction process is realized. The proposed model demonstrates significant practical value in addressing the issue of fluid motion latency in hydraulic systems.
This paper is organized as follows. Section 1 presents the introduction. In Section 2, we formulate corresponding models for hydraulic cylinders. Building upon the models developed in the preceding section, in Section 3, we design a predictive model for the input and output of hydraulic cylinders. In Section 4, we validate and optimize the predictive model. Finally, Section 5 presents the conclusions.

2. Establishment of Hydraulic Cylinder-Related Model

2.1. Oil Expansion and Contraction Loss

2.1.1. Compressible Flow Loss Model

To illustrate the pressure distribution within the non-rod chamber during the extension motion of a double-acting single-piston-rod hydraulic cylinder, a schematic diagram is presented in Figure 1. The red region represents the hydraulic fluid that instantaneously enters the non-rod chamber. Due to the extremely short time interval, the pressure in this region can be assumed to remain constant. During the extension of the piston rod, external loads typically exhibit fluctuations or even significant variations, causing the hydraulic fluid in the blue region of the non-rod chamber to undergo compression or expansion. This results in displacement errors in the motion of the piston rod. Therefore, it is necessary to establish a mathematical model for the volume of fluid compressed or expanded per unit time and analyze it precisely. To facilitate calculations, the displacement error of the piston rod caused by fluid compressibility is quantified in terms of flow loss.
When the pressure of a liquid changes, its volume changes, and this property is called compressibility, which is described with β , as shown in Equation (1):
β = Δ V β V β Δ p β
Here V β is the volume of the fluid, Δ V β is the decrease in volume, and Δ p β is the increase in pressure.
The reciprocal of the compression coefficient is called the bulk elastic modulus [22], as shown in Equation (2):
E = 1 β = V β Δ p β Δ V β
It is assumed that the bottom area of the double-acting single piston rod is S 0 . At time t 0 , the movement distance of the piston rod is x 0 . At time t 0 + Δ t , the pressure change is Δ p 1 , the distance change of the piston rod is Δ x , time Δ t is very small, and the pressure and temperature of the oil do not change much. It is considered that the effective bulk elastic modulus of the oil during this period is a fixed value, that is, E e . During this time interval, the oil flow loss of the non-rod chamber of the hydraulic cylinder is Q 0 , as shown in Equation (3):
Q 0 = Δ V β Δ t = S 0 x 0 + Δ x Δ p 1 E e Δ t
If x 0 + Δ x = x 1 , Δ p 1 Δ t = p ˙ is set, the equation for the flow loss becomes:
Q 0 = S 0 x 1 E e p ˙
Here, p ˙ is the oil pressure change rate of the non-rod chamber. S 0 is a constant value, E e is proportional to the pressure of the oil and inversely proportional to the temperature, so Q 0 is mainly affected by the displacement of the piston rod, non-rod chamber oil pressure change rate, oil pressure, and temperature.

2.1.2. Thermal Expansion Flow Loss Model

Thermal expansibility is a property referring to an increase in the temperature and volume of liquid [23], and it is represented by α V , as shown in Equation (5):
α V = 1 V α Δ V α Δ T α
Here, Δ T α is the change in the liquid temperature and V α is the change in the liquid volume.
The expansion coefficient of liquid varies little under pressure, and it is believed that it depends only on the temperature of the liquid [24]. The external temperature is set to 298 K (25 °C), and the expansion coefficient of the L-HL hydraulic oil [25] is 6.2 × 10−4 1/K. It is supposed that the value in Equation (5) is 1 K after derivation and calculation, as shown in Equation (6):
6.2 × 10 4 = 1 V α Δ V α Δ T α = 1 × S 0 Δ x S 0 x 0 × 1 = Δ x x 0
For the hydraulic oil in the hydraulic cylinder, the volume of oil lost or gained due to thermal expansion can be negligible.

2.2. Hydraulic Cylinder Leakage

2.2.1. Effect of Working Environment on Dynamic Viscosity

The dynamic viscosity of oil is significantly affected by temperature change. The dynamic viscosity value decreases with an increase in temperature [26] and the hydrodynamic viscosity changes with temperature, as shown in Equation (7):
μ t = μ 0 e λ ( T T 0 ) λ
Here, μ t is the dynamic viscosity when the temperature is T °C, μ 0 is the dynamic viscosity when the temperature is T 0 °C [27], and λ is the viscose-temperature coefficient. For hydraulic oil, this can be 0.018–0.036 (1/°C), and 0.025 is taken in this study. The unit of μ t and μ 0 is P a s .
High pressure has a large effect on the viscosity of hydraulic oil, while low pressure has less of an effect [28]. The viscosity of the oil fluid varies with the pressure, as shown in Equation (8):
μ p = μ 1 e α p
Here, μ p is the viscosity when the pressure is p , μ 1 is the viscosity when the pressure is 0.1 MPa, and α is the viscosity coefficient, the size of which depends on the physical properties of the liquid and can be approximated as (2–3) × 10−8 Pa [29]. The unit of μ 1 and μ p is P a s .
The amount of air in the oil depends on the nature of the oil, the degree of contact between the oil and the air, and the disturbance state [30]. An increase in the amount of air mixed into the oil will leads to a sharp decline in the effective bulk elastic modulus coefficient of the oil [31]. The dynamic viscosity of the oil increases linearly according to Equation (9):
μ B = μ 2 ( 1 + 0.015 B )
Here, B is the percentage of mixed air, μ B is the dynamic viscosity of the oil when the proportion of mixed air is B , and μ 2 is the dynamic viscosity of the oil without mixing air, which is a fixed value.
Based on the empirical formula of the influence of the oil pressure, temperature, and gas amount on the dynamic viscosity, the dynamic viscosity of the oil in the actual pipeline can be obtained, as shown in Equation (10):
μ C = μ 3 ( 1 + 0.015 B ) λ e α p λ ( T T 0 )
Here, μ C is the dynamic viscosity of the oil with pressure p , temperature T , and mixed gas amount B ; μ 3 is the pure oil dynamic viscosity when the pressure is 101.03 KPa, the temperature is T 0 , and no gas is mixed; and λ is the viscosity temperature coefficient, which can be 0.018–0.036 (1/°C) for hydraulic oil [32]. The unit of μ C and μ 3 is Pa s .
The influence of the change in the dynamic viscosity of the hydraulic oil on leakage is simplified into coefficient factor K a , as shown in Equation (11):
K a = 1 μ 3 ( 1 + 0.015 B ) λ e ( λ ( T T 0 ) α p )
In summary, the coefficient factor K a is primarily influenced by the temperature T and pressure p of the hydraulic fluid in the non-rod chamber at different time points. As T 0 is a fixed value, the neural network utilizes either T T 0 or T to predict the specific value of K a .

2.2.2. Hydraulic Cylinder Internal and External Leakage Model

As illustrated in Figure 2, internal leakage in the hydraulic cylinders refers to the process by which hydraulic oil flows from the high-pressure region to the low-pressure region through the gap between the piston and the cylinder wall [33]. However, the causes of internal leakage in hydraulic cylinders are multifaceted, including factors such as the wear, aging, and deformation of sealing components; the contamination of the hydraulic oil by gases, water, and particulate matter; the rationality of the structural design, and the precision of component machining and assembly [34].
During the operation of a double-acting single-piston-rod hydraulic cylinder, the pressure within the internal chambers typically exhibits an initial gradual increase, followed by a period of stability or continuous variation. Suspended air bubbles or vapor chambers in the hydraulic fluid significantly influence the effective bulk modulus of the liquid [35]. Thus, the effective bulk modulus E B is employed to calculate the leakage volume as a function of pressure changes.
It is assumed that upon the occurrence of leakage, the temperature and pressure between the air bubbles and the hydraulic oil have reached equilibrium. The impact of hydraulic oil pressure changes on its volume can be calculated using the following empirical Equation (12):
q p = q 0 ( 1 + p a p b E B )
Here, q p is the amount of oil leakage when considering the influence of pressure, q 0 is the theoretical amount of oil leakage without considering the influence of pressure, p a is the pressure value after the pressure change, p b is the pressure value before the pressure change, and E B is the effective bulk elastic modulus of the oil with air proportion B .
Based on Equations (11) and (12), a mathematical model for the internal leakage flow of the hydraulic cylinders can be derived, as shown in Equation (13):
Q 1 = K s ( p n p r ) μ 3 ( 1 + 0.015 B ) λ e ( λ ( T t T i ) α p n ) ( 1 + ( p n p r ) E B )
Here, Q 1 is the internal leakage flow of the hydraulic cylinder when the temperature is T t and the mixed air concentration is B . K s is the structural coefficient of the hydraulic cylinder gap leakage, p n is the pressure of the non-rod chamber, p r is the pressure of the rod end chamber, and T i is the initial temperature of the hydraulic oil.
The internal leakage coefficient of the hydraulic cylinder is K 1 and the pressure difference between the two chambers of the hydraulic cylinder is Δ p q ; thus, the mathematical model of the internal leakage of the hydraulic cylinder can be simplified to Equation (14):
Q 1 = K 1 Δ p q 1
The physical quantities that affect the leakage of the hydraulic cylinder are the non-rod chamber pressure p n , rod end chamber pressure p r and temperature T t .
The external leakage of the hydraulic cylinder generally comes from the two oil ports and the gap between the piston rod and the inner wall of the cylinder; thus, the external leakage mathematical model of the hydraulic cylinder only considers the external leakage oil flow loss caused by the oil outlet, the piston rod, and the inner wall [36]. The mathematical model is shown in Equation (15):
Q 2 = K 2 p q 2
Here, Q 2 is the external leakage flow loss of the hydraulic cylinder and K 2 is the external leakage coefficient of the hydraulic cylinder.
The physical factors that affect the external leakage of the hydraulic cylinder are the pressure p r and temperature T t of the rod end chamber.

2.2.3. Hydraulic Cylinder Displacement Flow Model

Taking the extension action of the hydraulic cylinder of the double-acting single piston rod as the research object, a flow–displacement equation is established. The positive direction of the shaft is taken as the direction of the piston rod extension, and the initial position of the piston rod when it is not working is taken as zero to establish the number axis. A flow–displacement equation of the non-rod chamber of the differential cylinder is obtained, as shown in Equation (16):
q A Q 1 Q 2 S 0 x 1 E B p ¨ = S 0 x ˙
Here, q A is the flow rate of the non-rod chamber oil inlet of the differential cylinder and x ˙ is the speed of the piston rod.
We set x ˙ = x 1 x 0 / t 1 t 0 and p ¨ = p n p r / t 1 t 0 , and we substituted the mathematical models of Q 1 and Q 2 together into Equation (16). After calculation, Equation (17) is obtained:
x 1 = E B [ ( t 1 t 0 ) ( q A K 1 Δ p q 1 K 2 p q 2 ) + S 0 x 0 ] S 0 E B + S 0 ( p n p r )
In Equation (17), the seven physical parameters that affect the displacement of the piston rod of the hydraulic cylinder are the pressure of the non-rod chamber at time t 1 , the pressure of the rod end chamber, the pressure difference between the two chambers, the temperature of the non-rod chamber, the oil flow rate and pressure difference of the non-rod chamber at times t 1 and t 0 , and the displacement at time t 0 .

3. Hydraulic Cylinder Input and Output Prediction Model

3.1. Data Acquisition

In the experimental setup, the pressure in the hydraulic cylinder is determined by the external load. Therefore, the external load acting on the piston rod must be continuously varied during the experiment. Additionally, it is essential to ensure that the direction of the external load remains aligned with the central axis of the piston rod in order to avoid experimental errors. To achieve this, a secondary hydraulic system equipped with a pressure-regulating circuit is designed. In this configuration, the piston rod of the secondary hydraulic cylinder is positioned opposite to that of the experimental hydraulic cylinder. By adjusting the set pressure of the relief valve in the pressure-regulating circuit, the system pressure can be modulated, thereby enabling precise and flexible control over the magnitude of the external load applied to the experimental hydraulic cylinder.
In the experimental data measurement process, five sensors were used: two MIK-P300 pressure sensors, one DN6 turbine flow sensor, one pull rope displacement sensor, and one KX-WZP-131 temperature sensor. Data were collected and processed using a data acquisition card and the data acquisition management software DMC, version 1.0.
The experimental time of day and the time interval of each experiment should be strictly controlled to prevent different indoor temperatures and system heating from interfering with the hydraulic oil temperature in the experiment. Based on the principal diagram of the experimental hydraulic system shown in Figure 3, the specific experimental steps are as follows:
(1)
Check each component of the system, open valves 8 and 9, make sure that each sensor and valve connector are reliably connected without being loose, and make sure that the hydraulic cylinder is in the back state.
(2)
Release the two overflow valves, start hydraulic pump 3, observe pressure gauges 4 and 21, adjust overflow valves 23 and 25, adjust the pressure to 12 MPa, and adjust valves 7 and 17 so that the two hydraulic cylinders extend and redraft several times. This is carried out to inspect the system and ensure that the hydraulic chamber is filled with hydraulic oil.
(3)
Connect the DC power supply to each sensor, connect the data acquisition system, twist the knob of overflow valve 23, set its pressure to 12 MPa through pressure gauge 4, control the opening degree of reversing valve 7 and throttle valve 9, and check whether the sensor works normally through the DMC interface feedback information.
(4)
Determine whether hydraulic cylinder 12 is retractable, adjust pressure gauge 21 to adjust overflow valve 25 to 1.5 MPa, and control reversing valve 17 so that the piston rod of hydraulic cylinder 16 is extended until the piston rod of hydraulic cylinder 12.
(5)
Reversing valve 7 extends hydraulic cylinder 12, controls throttle valve 9, makes the flow rate of the hydraulic cylinder oil inlet reach 6 L/min, and records the pressure, flow, temperature, and displacement data.
(6)
When hydraulic cylinder 12 completely stops moving, after completing the whole process, control reversing valve 7 so that hydraulic cylinder 12 can quickly return through the check valve element of the speed control valve.
(7)
Adjust the pressure of overflow valve 25 to 2 MPa, repeat steps (4), (5), and (6), and keep the flow rate stable at 6 L/min by adjusting the button of the speed control valve during the experiment.
(8)
Repeat step (7) and increase the pressure by 1 MPa each time by adjusting the knob of overflow valve 25. At the same time, fine-tune the knob of the speed control valve to maintain the stability of the hydraulic cylinder oil inlet flow.
(9)
Through the above experimental steps, experimental data under the same temperature, the same flow, and different pressures can be obtained. Repeat the experiment continuously by following these 8 test steps, and increase the pressure of the relief valve 25 by 0.5 MPa in each test until the pressure data collected reaches 10 MPa.
(10)
Adjust throttle valve 9, reduce the flow rate of the oil inlet of the hydraulic cylinder by 1 L/min each time, repeat the above 8 experimental steps, and record the data at the same time. When the flow rate is reduced to less than 3 L/min, close throttle valve 9 and use only speed control valve 8 to control the speed of the hydraulic cylinder.
During the above experimental process, keep the oil temperature of the system stable. After all 10 steps are completed, use heater 2 to increase the oil temperature, ensure that the oil temperature rises by 1 °C each time, and continue to record the test data until the temperature reaches 53 °C.
After following the above experimental steps, the experiment is completed, and a displacement dataset under different pressures, flow rates, and temperatures is obtained. After integrating the experimental data, 2500 sets of data were finally obtained, with 42 tables in each group. The table data include the sensor signal data of the non-rod chamber pressure, rod end chamber pressure, hydraulic oil inlet flow rate, temperature, and displacement. The data were subjected to a series of preprocessing steps, which included the imputation of missing values, the detection and treatment of outliers, and the removal of duplicate entries. These data cleansing procedures were implemented to ensure the accuracy and consistency of the dataset. Subsequently, data normalization was carried out, scaling the data to a uniform numerical range in order to eliminate the dimensional disparities among different features, thereby enhancing the model’s learning efficiency and predictive accuracy. Ultimately, the dataset was partitioned into three subsets in a 6:2:2 ratio, designated as the training, validation, and test sets, respectively. A comprehensive flowchart delineating the predictive process of the three-layer BP neural network is presented in Figure 4.

3.2. Model Structure Design

In practical applications, most flow sensors have a certain signal delay. The sensor structure, the signal processing circuit, and other factors may cause signal delays [37]. In practical applications, it is necessary to predict the flow value at the starting time point. According to the principle of the predicted displacement and the reason for the flow sensor delay, the internal structure of the predicted model is a nested three-layer BP neural network.
The first layer of the network predicts traffic data at the starting time point. In this layer network, the data transmitted by various sensors at the current moment are used as the input parameters of the model, and the initial flow value is predicted in real time. The second layer of the network predicts the parameters of the next time point. The traffic value predicted by the first layer of the network and other data from the same time point are taken as input data to predict the data at the next moment. The third layer of the network predicts the next time shift. All types of data predicted by the second layer of the network are input into the layer network model, and finally, the hydraulic cylinder displacement data at the next time point are obtained. The structure of the three-layer neural network is shown in Figure 5. The formula of the neural network is as follows:
y = Θ k = 1 n 3 w k l Θ j = 1 n 2 v j k Θ i = 1 n 1 u ij x i + u 0 i + v 0 j + w 0 k
Here, n is the number of nodes in the hidden layers; x i is the input vector; u ij is the weight from x i to the first hidden layer neuron a n ; v j k is the weight of neuron a n from b n to the second hidden layer; w k l is the weight from b n to the third hidden layer neuron c n ; u 0 i is the bias of a n ; v 0 j is the offset of b n ; w 0 k is the bias of c n ; Θ is the activation function for each hidden layer; and y is the output vector.
The activation function for all neurons in the hidden layers of the neural network is designated as the sigmoid function:
f x = 1 1 + e x
Figure 6 is a schematic diagram of the neural network architecture. Given the strong fitting capability of the three-layer neural network, to prevent the occurrence of “overfitting” after multiple training iterations [38], this study implemented dropout in each hidden layer to enhance the model’s generalization ability. Specifically, dropout involves actively deactivating a number of nodes in the multilayer perceptron, rendering them temporarily inactive [39].
The current moment is set to t 0 and the predicted next moment is set to t 1 . The displacement of the piston rod of the hydraulic cylinder at time t 0 is x 0 , the displacement of the piston rod of the hydraulic cylinder at time t 1 is x 1 , the displacement difference of the piston rod of the hydraulic cylinder at the two moments is Δ x , the time interval is Δ t , and the piston area of the inner wall of the hydraulic cylinder is S 0 ; thus, the theoretical flow rate of the hydraulic cylinder at the current moment, temperature, and pressure is Q L , and the calculation equation is as follows:
Q L = Δ x S 0 Δ t
The response time of a typical proportional control valve a and reversing valve is approximately 10 ms to 70 ms [40], so the total prediction time is set to 100 ms.

3.3. The First Layer of the BP Neural Network Model

The completed data need to be normalized in order to prevent gradient explosion in the training process [41]. The specific calculation method is shown in Equation (21):
x = x x min x max x min
The input values of the first layer of the BP neural network are the pressure p of the non-rod chamber, the temperature T of the non-rod chamber, the pressure difference Δ p between the non-rod and rod end chambers, the displacement difference Δ x , and the time difference Δ t . The output value is the actual flow rate of the oil inlet Q S .
In model training, 60% of the data in each dataset were selected as the training set and the remaining data were selected as the test set. Because the neural network model is prone to overfitting, the fitting effect on the training set was much better than that on the test set. Therefore, 20% of the data in the training set were selected as the verification set in the training process, and 10-fold cross-validation was adopted according to the amount of experimental data: 10-fold cross-validation can effectively prevent the occurrence of underfitting and overfitting, and so was carried out within the training and verification sets. The test set is never involved in cross-validation and is only used in the final evaluation of the model. The specific steps are as follows:
(1)
The data should be randomly and evenly divided into 10 subsets. The data distribution of each subset should be consistent with the original data as much as possible. The data division should be randomized to avoid order deviation.
(2)
Cross-validation rounds, training the model with the training set, and evaluating the model performance on the verification set.
(3)
The validation results of each round are recorded, and the average value of 10 validation results is used as the generalization performance estimation of the model.
The number of hidden layers is set to 1, and the range of nodes is calculated by using empirical equation m + n + A , where m and n are the numbers of nodes in the input and output layers, respectively. The value range of A is 1 to 10 and the number of nodes in the hidden layer is 4 to 13. The process of evaluating the predictive performance of the network model is shown in Figure 7.
After data preprocessing, the maximum displacement at time t 0 is 239.746 mm and the minimum displacement is 6.104 mm. Supposing that the maximum allowable error data of prediction is x m and that the true value is x n , the calculation equation is shown as Equation (22):
x m 6.104 239.746 6.104 x n 6.104 239.746 6.104 = x m x n 233.642
The final displacement prediction error should be within 1 µm. The final iteration error normalization value is 0.233642. The maximum number of iterations is set to 2000, the learning rate is set to 0.03, and the initial weights and biases are set to random numbers from 0 to 1.
There are prediction errors in every cross-validation, and there are 10 average prediction errors after 10 cross-validations. Figure 8 shows the change curve of the average prediction error value corresponding to ten cross-validations of a single node.
By cycling the above process 10 times, the average prediction error of 10-fold cross-validation corresponding to each node can be obtained, and the results are shown in Figure 8. As can be seen in Figure 9, when the numbers of nodes are 11, 12, and 13, the average prediction error is less than 0.001 mm. The number of nodes corresponding to the minimum prediction error is 12 and the error value is 0.4005699; therefore, the number of nodes selected for the first layer of the neural network is 12.
Some numerical errors are added to the part where the output parameters of the second and third layers of the BP neural network model coincide with the input parameters of the first layer of the BP neural network model, and the prediction accuracy of the second and third layers of the BP neural network model is judged based on the error accuracy of the output displacement.
This is because in the design of the three-layer BP neural network model, although dropout is introduced, it remains necessary to test whether the model relies on redundant information or multipath processing to correct errors. We evaluated the tolerance of subsequent network layers to input perturbations in order to determine whether they over-depended on specific patterns in the training data. By introducing artificial errors, the robustness, fault tolerance, and parameter sensitivity of the three-layer BP neural network model can be systematically assessed, providing a basis for model optimization. If the second and third layers maintain stable outputs despite input parameter errors, this demonstrates strong adaptability and validates the effectiveness of the hierarchical design. Conversely, if errors significantly degrade the output, further refinement of the neural network training strategy is required.
The error values are added in the range of ±0.1, ±0.01, and ±0.001, and the error values are added as a random function. The prediction verification cycle was carried out 100 times, the average of the difference between the predicted and actual data in each table was taken, and a data error scatterplot was output.
Figure 10, Figure 11 and Figure 12 present scatterplots of the average predicted displacement error values of 100 cycles corresponding to random errors of ±0.1, ±0.01, and ±0.001 respectively. The average values of 100 points corresponding to random errors of ±0.1, ±0.01, and ±0.001 are 0.06780, 0.00727, and 0.00074, respectively. Therefore, the prediction error of the second and third layers of the BP neural network is ±0.001.

3.4. The Second Layer of the BP Neural Network Model

The training process of the second layer of the neural network model is analogous to that of the first layer of the neural network model. The difference is that the second layer of the hidden layer network model performs cycle training prediction for each node combination model.
The input value of the second layer of the BP neural network is the non-rod chamber pressure p n at time t 0 , the rod end chamber pressure p r , the pressure difference between the two chambers Δ p , the temperature of the non-rod chamber T , the actual flow rate of the oil inlet Q S , and time t 1 . The output is the non-rod chamber pressure p n at time t 1 , the rod end chamber pressure p r , the pressure difference between the two chambers Δ p , the temperature of the non-rod chamber T , and the actual flow rate of the oil inlet Q S .
The combinations of nodes that meet the precision requirements for predicting the influencing factors, along with their corresponding mean prediction errors, are presented in Table 1. As can be observed, the node combinations (9, 10), (11, 13), and (12, 9) all satisfy the criteria. However, a model with fewer nodes is simpler and requires a shorter computational time. Therefore, the node combination (9, 10) is selected for the hidden layer of the second layer of the BP neural network model.

3.5. The Third Layer of the BP Neural Network Model

The input factors of the third layer of the BP neural network are the pressure p n of the non-rod chamber at time t 1 , the pressure p r of the rod end chamber, the pressure difference between the two chambers Δ p , the temperature T of the non-rod chamber, the actual flow rate of the oil inlet Q S , the pressure difference Δ p 1 of the non-rod chamber at time t 1 and time t 0 , the displacement x 0 at time t 0 , and time t 1 . The predicted value is the piston rod displacement x 1 at time t 1 . The network training process is consistent with that of the first and second layers of the BP neural networks. The node prediction error of the obtained neural network is shown in Figure 13.
As can be seen in Figure 13, when the number of nodes is 8, the prediction error is the smallest, 0.00059 mm, which is within the error range of 0.001. Therefore, the number of nodes of the third layer of the BP neural network is set to 8.

4. Prediction Model Validation and Optimization

To evaluate the accuracy of the model’s predictions, this study employed the mean absolute error (MAE), root mean square error (RMSE), and the coefficient of determination (R2), which are standard metrics for assessing the performance of predictive models. The computational formulas are as follows:
M A E = 1 N i = 1 N ( y i y ^ i )
R M S E = 1 N i = 1 N ( y i y i ^ ) 2
R 2 = 1 i = n N ( y i y ^ i ) 2 i = n N ( y i y ¯ i ) 2
Here, N represents the total number of test data points, y i and y i ^ denote the actual and predicted values of the i data point, respectively, and y ¯ is the mean of the actual values.
The experimental data were input into both the BP neural network prediction model and the three-layer BP neural network prediction model. As can be discerned from the predictive performance evaluation metrics presented in Table 2, the MAE and RMSE values of the three-layer BP neural network prediction model are both lower than those of the BP neural network prediction model. In a comparative assessment of R2, the three-layer BP neural network prediction model exhibits a closer proximity to 1, indicating a superior fit and a closer alignment with the actual displacement values. Consequently, an analysis of Table 2 substantiates that the three-layer BP neural network prediction model achieves higher predictive accuracy. A scatterplot illustrating the displacement prediction errors of the three-layer BP neural network predictive model is presented in Figure 14.
When the number of datasets is within 50, the error of the prediction model is lower and more concentrated. When the number of datasets is between 50 and 100, the error of the prediction model begins to increase, but the displacement prediction error is concentrated in the range of 0–0.0009 mm. When the number of datasets is greater than 150, the prediction error begins to rapidly increase, the prediction data become increasingly more discrete, and the prediction error exceeds the maximum allowable error: the maximum error even reaches 1.1736 µm.
The maximum operation time for each group is collected using the loop function, as shown in Table 3.
As can be observed in Table 3, the computational time of the prediction model is the longest at the initial time point, with a duration of 60.58 ms. The calculation time of the other prediction time is basically the same, being in accordance with the calculation rule of the model. However, the maximum time that can be reserved for the sum of the reversing time of the reversing valve in the hydraulic system and the buffer time of the oil in the hydraulic cylinder is only 44.07 ms.
When 50 and 150 datasets are taken as the dividing lines, the prediction accuracy of the model clearly decreases. It can be seen in Table 4 that the median of the test factors increases with the increase in the number of datasets, and the medians of the flow, temperature, and pressure of the experimental data after 150 datasets are basically higher than those of other data. Therefore, the change in the average error value of the prediction model is related to the size of the input factor value.
In the continuous operation of a hydraulic cylinder, under high-flow and high-pressure conditions, impurities will inevitably occur in the oil, and the high-frequency vibration [42] generated by the motor due to the high load will also affect the displacement of the hydraulic cylinder and the physical and chemical properties of the oil. Furthermore, these external factors will affect the prediction accuracy of the model. Therefore, if the physical value of the experimental factors increases to a certain extent, the prediction accuracy of the model will be affected.
The prediction model was optimized according to Figure 15. Firstly, three sets of weights and biases were obtained through training. Each of these three sets of weights and biases was consistent with the dimensions of the weights and biases in the original prediction model. After the prediction model is completed, when the test data are used for testing, various pressure, temperature, flow and other parameters of the data line should be logically judged to determine which type of input data belongs to the model. Then, it should be input into the corresponding weight and bias function, and output errors will be obtained after the main program is run.
By modulating the weights, the precision and computational efficiency of the algorithm can be altered, thereby aiding in the pursuit of the optimal solution. A novel approach is proposed, which introduces a nonlinear adaptive decreasing weight mechanism to enhance the optimization accuracy of the algorithm. The corresponding formula is as follows:
ω ( t ) = ω max ( ω max ω min ) / ( 1 + e 5 t / T max )
Here, ω represents the weighting coefficient, ω max denotes the maximum value of the weighting coefficient, and ω min signifies the minimum value of the weighting coefficient.
Next, 66 sets of data were taken from the test sets of each of the three prediction models and input into the prediction model. After training the three-layer BP neural network, the weight and bias were obtained for each of the three prediction models. The three subgraphs in Figure 16 present the displacement error values output from the three models.
As can be seen in Figure 16, the average error point distribution of each table is below 4.5 × 10−4 mm, and the average error of data error points in the three subgraphs is 1.8909 × 10−4 mm, 1.8911 × 10−4 mm, and 2.024 × 10−4 mm, respectively. The accuracy of the three prediction models is within the expected range, and they are more accurate than the prediction model before optimization. Finally, the weight and bias of the updated three prediction models were output.
Figure 17 shows the displacement prediction errors of each group output by the optimized prediction model. A comparison of Figure 14 and Figure 17 shows that the prediction accuracy of the optimized prediction model for different data samples is significantly improved, and the average prediction error of 250 datasets is 0.1691 μm. The maximum displacement prediction error in the test set is 0.5491 μm.
The maximum operation time for each group is collected using the loop function, as shown in Table 5.
As can be seen in Table 5, the maximum operation time of the optimized prediction model is only 27.82 ms. The maximum time that can be reserved for the sum of the reversing time of the reversing valve in the hydraulic system and the oil buffer time in the hydraulic cylinder is 74.57 ms.

5. Conclusions

In this study, we propose a predictive model based on a three-layer BP neural network. The first layer of the BP neural network takes the data transmitted by various sensors at the current moment as input parameters to predict the initial flow value in real time. The second layer of the BP neural network utilizes the flow value predicted by the first neural network, along with other concurrent data, as input to forecast the data of the next time step. The third layer of the BP neural network inputs the various data predicted by the second layer into its network model to obtain the hydraulic cylinder displacement data of the subsequent time step. The initial experimental results exhibited significant errors. By proposing a nonlinear adaptive decreasing weight mechanism to enhance the optimization accuracy of the algorithm, the search for optimal solutions is facilitated, ultimately leading to algorithm optimization.
The experimental results demonstrate that the optimized hydraulic cylinder displacement prediction model achieves significant improvements in precision, computational efficiency, and system responsiveness. The maximum predicted displacement error is reduced to 0.5491 μm, thereby improving the accuracy by approximately 53% compared with the original prediction error of 1.1736 μm. This enhancement translates directly into a higher precision of displacement control. The maximum run time of the predictive model is reduced to 27.82 ms, which improves the real-time processing capability of the model in a dynamic environment. The maximum allowable time allocated for reversing valve switching and hydraulic oil buffering in the system is extended by nearly 1.7 times. A greater time margin is provided for the system actuator to respond to predicted displacement changes. The nonlinear adaptive weight mechanism effectively addresses nonlinearities and transient dynamics in hydraulic systems, minimizing the cumulative errors caused by fluid compressibility and leakage. By refining the weight optimization strategy, redundant computational paths are eliminated, accelerating convergence during neural network training.
The proposed prediction model demonstrates robust adaptability to hydraulic cylinder control under heterogeneous types, operational conditions, and service durations by dynamically adjusting its weights and biases through the collection of diversified experimental datasets. Furthermore, an in-depth analysis of the input–output curves generated by the model enables an accurate assessment of the hydraulic cylinder operational status, as well as the reliability and wear progression of internal components. The experimental findings presented in this study hold both theoretical and practical significance for advancing cost-effective and high-precision automated control strategies in hydraulic cylinder systems. However, actual leakage scenarios may involve turbulent flow conditions, including rapid pressure fluctuations, large-scale leakage defects, high-viscosity fluids, or significant pressure differentials. Under these fault conditions, the prediction model proposed in this study exhibits certain limitations. It is also worth considering how the system responds to adhesion and sliding conditions. Future improvements may focus on optimizing the neural network architecture and hyperparameters or integrating advanced neural network optimizers to further elevate the model’s predictive accuracy.
In the future, hydraulic cylinder displacement sensors are anticipated to evolve towards higher precision, enhanced environmental adaptability, and reduced costs. Concurrently, with the integration of artificial intelligence and big data technologies, these sensors are expected to exhibit advanced capabilities in data analysis and predictive functionalities, thereby providing robust support for the intelligentization of hydraulic systems.

Author Contributions

Conceptualization, W.C. and Y.Z.; methodology, Y.Z.; software, S.G.; validation, S.G., R.G. and Y.Z.; resources, J.Z.; data curation, W.C.; writing—original draft preparation, Y.Z.; writing—review and editing, S.G.; visualization, J.Z.; supervision, R.G.; project administration, J.Z.; funding acquisition, W.C. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the National Natural Science Foundation of China (grant numbers 52405073, 12173054 and 52075469) and the Young Elite Scientists Sponsorship Program of CAST (grant number 2023QNRC001).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

According to the confidentiality of the funding project, the codes and data supporting the survey results of this paper are not disclosed at present because the research has not been completed. You can request a copy from the author at zyr894416121@163.com.

Acknowledgments

The authors wish to thank the reviewers for their useful and constructive comments.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
BPbackpropagation
ABSCadaptive backstepping control
PIDproportional integral derivative
LMSleast mean square
VariableMeaning
β compressibility
E bulk elastic modulus
Q 0 oil flow loss of the non-rod chamber of the hydraulic cylinder
α V thermal expansibility
μ t dynamic   viscosity   when   the   temperature   is   T   °C
μ 0 dynamic   viscosity   when   the   temperature   is   T 0   °C
μ p viscosity when the pressure is p
μ 1 viscosity when the pressure is 0.1 MPa
μ B dynamic viscosity of oil when the proportion of mixed air is B
μ 2 dynamic viscosity of oil without mixing air, which is a fixed value
μ C dynamic viscosity of the oil with pressure p , temperature T , and mixed gas amount B
μ 3 dynamic   viscosity   when   the   pressure   is   101.03   KPa ,   the   temperature   is   T 0 , and no gas is mixed
K a coefficient factor
q p amount of oil leakage when considering the influence of pressure
Q 1 internal   leakage   flow   of   the   hydraulic   cylinder   when   the   temperature   is   T t , and the mixed air concentration is B
Q 2 external leakage flow loss of a hydraulic cylinder
Q L theoretical flow rate of the oil inlet
Q S actual flow rate of the oil inlet

References

  1. Li, W.; Zhang, Z.; Liu, T.; Cao, H.; Ni, T.; Wang, Y. Analysis of and Experimental Research on a Hydraulic Traction System Based on a Digital Hydraulic Transformer. Sensors 2022, 22, 3624. [Google Scholar] [CrossRef] [PubMed]
  2. Liu, M.S.; Sun, Z.Y.; Li, M.P. Application of improved wavelet denoising method in low-frequency oscillation analysis of power system. J. Phys. Conf. Ser. 2020, 1633, 012115. [Google Scholar] [CrossRef]
  3. Ye, Y.; Yin, C.-B.; Li, X.-D.; Zhou, W.-J.; Yuan, F.-F. Effects of Groove Shape of Notch on the Flow Characteristics of Spool Valve. Energy Convers. Manag. 2014, 86, 1091–1101. [Google Scholar] [CrossRef]
  4. Amirante, R.; Vescovo, D.; Lippolis, A. Evaluation of the Flow Forces on an Open Centre Directional Control Valve by Means of a Computational Fluid Dynamic Analysis. Energy Convers. Manag. 2005, 13, 47. [Google Scholar] [CrossRef]
  5. Wang, L.; Wu, X.; Zhang, C.; Shi, H. Hydraulic system fault diagnosis method based on a multi-feature fusion support vector machine. J. Eng. 2019, 13, 215–218. [Google Scholar] [CrossRef]
  6. Tognetti, S.; Guilherme, O. Robust state feedback-based design of PID controllers for high-order systems with time-delay and parametric uncertainties. J. Control Autom. Electr. Syst. 2022, 33, 382–392. [Google Scholar]
  7. Kogler, H. High dynamic digital control for a hydraulic cylinder drive. Proc. Inst. Mech. Eng. Part I J. Syst. Control Eng. 2022, 236, 382–394. [Google Scholar]
  8. Liu, J.; Yuan, C.; Matias, L.; Bowen, C.; Dhokia, V.; Pan, M.; Roscow, J. Sensor Technologies for Hydraulic Valve and System Performance Monitoring: Challenges and Perspectives. Adv. Sens. Res. 2024, 3, 2300130. [Google Scholar] [CrossRef]
  9. Liu, J.; Huang, Y.; Helian, B.; Nie, Y.; Chen, Z. Flow match and precision motion control of asymmetric electro-hydrostatic actuators with complex external force in four-quadrants. J. Frankl. Inst. 2024, 361, 1025–1039. [Google Scholar]
  10. Yang, C.; Yao, F.; Zhang, M.; Zhang, Z.; Wu, Z.; Dan, P. Adaptive sliding mode PID control for underwater manipulator based on Legendre polynomial function approximation and its experimental evaluation. Appl. Sci. 2020, 10, 1728. [Google Scholar] [CrossRef]
  11. Wei, L.; Wang, L.; Zhan, P.; Shan, L.; Du, Z. Dynamic Characteristics Analysis of Digital Hydraulic Cylinder Controlled by Non-circular Opening Slide Valve. Chin. Hydraul. Pneum. 2024, 48, 1–9. [Google Scholar]
  12. Ding, R.; Yin, H.; Cheng, M.; Li, G.; Xu, B. The Design and Analysis of a Hydro-pneumatic Energy Storage Closed-circuit Pump Control System with a Four-chamber Cylinder. J. Energy Storage 2024, 79, 10076. [Google Scholar] [CrossRef]
  13. Kim, M.; Park, H.; Song, H.; Kim, J.S. Robust position control of electro-hydraulic actuator systems using the adaptive back-stepping control scheme. Proc. Inst. Mech. Eng. Part I J. Syst. Control Eng. 2010, 224, 737–746. [Google Scholar] [CrossRef]
  14. Batabyal, T.; Welle, D.; Kapu, J.; Acton, S.T. Efficient learning of transform domain LMS filter using graph Laplacian. IEEE Trans. Neural Netw. Learn. Syst. 2023, 34, 7608–7620. [Google Scholar] [CrossRef] [PubMed]
  15. Zhang, S.; Zhang, X.; Zheng, X.; Liu, X.; Liu, Y. Direet-driven Pump-controlled Three-chamber Cylinder System Using Feedforward Fuzzy PID Control. Chin. Hydraul. Pneum. 2023, 47, 79–87. [Google Scholar]
  16. Ding, Z.; Liu, K.; Qiang, H.; Kang, S.; Zhu, Y.; Yin, P. Design of adaptive filter for dynamic displacement signal of heavy—Load hydraulic cylinder. Mach. Tool Hydraul. 2024, 52, 110–116. [Google Scholar]
  17. Zhang, Y.; Lv, H. Study on PID controller based on fuzzy RBF neural network in rolling mill hydraulic AGC system. In Proceedings of the 2016 Chinese Control and Decision Conference, Yinchuan, China, 28–30 May 2016; pp. 4616–4620. [Google Scholar]
  18. Lin, Y.; Shi, Y.; Burton, R. Modeling and robust discrete-time sliding-mode control design for a fluid power electrohydraulic actuator system. IEEE/ASME Trans. Mechatron. 2011, 18, 1–10. [Google Scholar] [CrossRef]
  19. Yan, H.; Li, J.; Cai, C.; Ren, Y. Numerical investigation of erosion wear in the hydraulic amplifier of the deflector jet servo valve. Appl. Sci. 2020, 10, 1299. [Google Scholar] [CrossRef]
  20. Ahn, K.; Nam, C.; Jin, M. Adaptive backstepping control of an electrohydraulic actuator. IEEE/ASME Trans. Mechatron. 2013, 19, 987–995. [Google Scholar] [CrossRef]
  21. Wu, Z.; Yang, G.; Li, B.; Gan, R. High-precision Displacement-force Dual-variable Coupling Control Method for Bidirectional Hydraulic Press. Chin. Hydraul. Pneum. 2024, 48, 25–32. [Google Scholar]
  22. Yang, M.; Chen, J.; Zhang, M.; You, S. Simulation research on sliding mode PID control of buck converters with improved approaching law. J. Phys. Conf. Ser. 2022, 2369, 012055. [Google Scholar] [CrossRef]
  23. Zheng, W.; Chen, Y.; Wang, X.; Lin, M.; Guo, J. Robust fractional order PID controller synthesis for the first order plus integral system. Meas. Control 2023, 56, 202–214. [Google Scholar] [CrossRef]
  24. Haack, S. The Future of Industrial Hydraulics: From “a Dinosaur” to “a Golden Unicorn”. Chin. Hydraul. Pneum. 2023, 47, 1–7. [Google Scholar]
  25. Marouf, M. Digital intake valve based CFD investigations of a single cylinder spark ignition engine to improve its performance and emissions characteristics. Energy Power 2020, 10, 31–39. [Google Scholar]
  26. Pan, W.-H.; Feng, Y.-W.; Liu, J.; Lu, C. Operation reliability monito-ring towards fault diagnosis of airplane hydraulic system using quick access recorder flight data. Meas. Sci. Technol. 2023, 34, 697–703. [Google Scholar] [CrossRef]
  27. Du, X.; Li, J.; Guo, X.; Zhang, J. Research on model identification and compound control of vibration mirror swing scan system. Meas. Control 2023, 56, 982–988. [Google Scholar] [CrossRef]
  28. Kogler, H.; Schoberl, M.; Scheidl, R. Passivity-based control of a pulse-width mode operated digital hydraulic drive. Proc. Inst. Mech. Eng. Part I J. Syst. Control Eng. 2019, 233, 656–665. [Google Scholar] [CrossRef]
  29. Zhao, C.; Yu, C.; Yao, J. Dynamic Decoupling Based Robust Synchronous Control for a Hydraulic Parallel Manipulator. IEEE Access 2019, 7, 30548–30562. [Google Scholar] [CrossRef]
  30. Wang, X.; Zhang, T.; Wu, X.; Qin, W.; Li, L.; Shen, M. RBFNN-based Event-triggered MFAC for Discrete-time Nonlinear Systems with Disturbances and Data Quantization. In Proceedings of the 2022 34th Chinese Control and Decision Conference, Heifei, China, 15–17 August 2022; IEEE: Piscataway Township, NJ, USA, 2022; pp. 4042–4047. [Google Scholar]
  31. Deng, W.; Yao, J.; Ma, D. Robust Adaptive Precision Motion Control of Hydraulic Actuators with Valve Dead-zone Compensation. ISA Trans. 2017, 70, 269–278. [Google Scholar] [CrossRef]
  32. Wang, X.; Shi, C.; Wang, S. Extended State Observer-based Motion Synchronization Control for Hybrid Actuation System of Large Civil Aircraft. Int. J. Syst. Sci. 2017, 48, 2212–2222. [Google Scholar] [CrossRef]
  33. Huang, H.; Zou, X.; Li, L.; Li, X.; Liu, Z. Energy Saving Design Method for Hydraulic Press Drive System with Multi Motor-pumps. Int. J. Precis. Eng. Manuf. Green Technol. 2019, 6, 223–234. [Google Scholar] [CrossRef]
  34. Zhu, Y.; Jiang, W.; Kong, X.; Zheng, Z. Study on Nonlinear Dynamics Characteristics of Electrohydraulic Servo System. Nonlinear Dyn. 2015, 8, 723–737. [Google Scholar] [CrossRef]
  35. Ge, L.; Quan, L.; Li, Y.; Zhang, X.; Yang, J. A Novel Hydraulic Excavator Boom Driving System with High Efficiency and Potential Energy Regeneration Capability. Energy Convers. Manag. 2018, 166, 308–317. [Google Scholar] [CrossRef]
  36. Gong, J.; Zhang, D.; Guo, Y.; Tang, Z.; Liu, C.; Hu, P.; Zhao, Y.; Quan, W.; Jin, Y. Potential Energy Recovery Method Based on Alternate Recovery and Utilization of Multiple Hydraulic Cylinders. Autom. Constr. 2020, 112, 103105. [Google Scholar]
  37. Ma, T.; Guo, X.; Su, G.; Deng, H.; Yang, T. Research on Synchronous Control of Active Disturbance Rejection Position of Multiple Hydraulic Cylinders of Digging-Anchor-Support Robot. Sensors 2023, 23, 4092. [Google Scholar] [CrossRef] [PubMed]
  38. Cinkelj, J.; Kamnik, R.; Cepon, P.; Mihelj, M.; Munih, M. Closed-loop Control of Hydraulic Telescopic Handler. Autom. Constr. 2010, 19, 954–963. [Google Scholar] [CrossRef]
  39. Shi, H.; Yang, H.; Gong, G.; Liu, H.; Hou, D. Energy Saving of Cutterhead Hydraulic Drive System of Shield Tunneling Machine. Autom. Constr. 2014, 37, 11–21. [Google Scholar] [CrossRef]
  40. Xia, L.; Quan, L.; Ge, L.; Hao, Y. Energy Efficiency Analysis of Integrated Drive and Energy Recuperation System for Hydraulic Excavator Boom. Energy Convers. Manag. 2018, 156, 680–687. [Google Scholar] [CrossRef]
  41. Liu, Y.; Xu, Z.; Hua, L.; Zhao, X. Analysis of Characteristic and Working Performance of Novel Energy Controllable Hydraulic Accumulator with Simulation and Experimental Methods. Energy Convers. Manag. 2020, 221, 113–196. [Google Scholar] [CrossRef]
  42. Yang, C.; Zhou, L.; Wang, J.; Xu, T.; Yang, C.; Ye, G. Research on Energy Saving System of Hydraulic Excavator Based on Three-chamber Accumulator. J. Energy Storage 2023, 72, 108571. [Google Scholar] [CrossRef]
Figure 1. Non-rod chamber oil pressure division area schematic diagram.
Figure 1. Non-rod chamber oil pressure division area schematic diagram.
Sensors 25 01949 g001
Figure 2. Hydraulic cylinder leakage position diagram.
Figure 2. Hydraulic cylinder leakage position diagram.
Sensors 25 01949 g002
Figure 3. Experimental hydraulic system schematic diagram.
Figure 3. Experimental hydraulic system schematic diagram.
Sensors 25 01949 g003
Figure 4. Flowchart of three-layer BP neural network prediction process.
Figure 4. Flowchart of three-layer BP neural network prediction process.
Sensors 25 01949 g004
Figure 5. Structure diagram of three-layer BP neural network.
Figure 5. Structure diagram of three-layer BP neural network.
Sensors 25 01949 g005
Figure 6. Internal logic of three-layer BP neural network architecture.
Figure 6. Internal logic of three-layer BP neural network architecture.
Sensors 25 01949 g006
Figure 7. Schematic diagram of predictive performance of the evaluation network model.
Figure 7. Schematic diagram of predictive performance of the evaluation network model.
Sensors 25 01949 g007
Figure 8. Average prediction error per node.
Figure 8. Average prediction error per node.
Sensors 25 01949 g008
Figure 9. The corresponding error of each node of the neural network.
Figure 9. The corresponding error of each node of the neural network.
Sensors 25 01949 g009
Figure 10. ±0.1 Random error value.
Figure 10. ±0.1 Random error value.
Sensors 25 01949 g010
Figure 11. ±0.01 Random error value.
Figure 11. ±0.01 Random error value.
Sensors 25 01949 g011
Figure 12. ±0.001 Random error value.
Figure 12. ±0.001 Random error value.
Sensors 25 01949 g012
Figure 13. Prediction error corresponding to each node.
Figure 13. Prediction error corresponding to each node.
Sensors 25 01949 g013
Figure 14. Scatterplot of test set displacement prediction error.
Figure 14. Scatterplot of test set displacement prediction error.
Sensors 25 01949 g014
Figure 15. Predictive model optimization scheme training process.
Figure 15. Predictive model optimization scheme training process.
Sensors 25 01949 g015
Figure 16. (a) Model 1 predicts the scatterplot of displacement errors, (b) model 2 predicts the scatterplot of displacement errors, and (c) model 3 predicts the scatterplot of displacement errors.
Figure 16. (a) Model 1 predicts the scatterplot of displacement errors, (b) model 2 predicts the scatterplot of displacement errors, and (c) model 3 predicts the scatterplot of displacement errors.
Sensors 25 01949 g016
Figure 17. Scatterplot of the displacement error predicted by the optimized prediction model.
Figure 17. Scatterplot of the displacement error predicted by the optimized prediction model.
Sensors 25 01949 g017
Table 1. Nodes and average errors that meet the prediction accuracy requirements of five influencing factors.
Table 1. Nodes and average errors that meet the prediction accuracy requirements of five influencing factors.
Node CombinationAverage Error of p (10−4)Average Error of p1 (10−4) Average   Error   of   p (10−4)Average Error of T (10−4)Average Error of QS (10−4)
(6, 13)65.73895.4363.7864.338946.963
(7, 5)65.9638.73922.9282.28153.36
(7, 6)48.96813.32848.64458.75612.65
(7, 7)2.896616.5366.868892.94840.5
(8, 12)12.68958.694223.65522.635423.6652
(9, 10)6.895.4863.4582.25338.714
(11, 11)6.0425312.36662.36655.1469.3645
(11, 11)5.517332.23343.8893.6585.1526
(12, 9)5.662.3364.3651.3366.5361
Table 2. Comparison of each evaluation index of prediction model.
Table 2. Comparison of each evaluation index of prediction model.
Prediction ModelEvaluation Index
MAERMSER2
BP neural network1.4021.5870.909
Three-layer BP neural network0.9121.0760.935
Table 3. Maximum operation time of data prediction model.
Table 3. Maximum operation time of data prediction model.
Interval of the DatasetMaximum Operation Time for Each Group of Prediction Model (ms)
(0–50)60.5860.5860.5660.5760.56
(51–100)56.0655.9655.9755.9755.98
(101–150)55.9955.9755.9555.9355.95
(151–200)55.9555.9755.9755.9555.94
(210–250)55.9555.9655.9355.9555.94
Table 4. The median of each input factor of the sensor.
Table 4. The median of each input factor of the sensor.
Number of DatasetsNon-Rod Chamber Pressure (MPa)Rod End Chamber Pressure (MPa)Temperature (°C)Flow Rate (L/min)
<502.60.15242.3
>50 and <1506.60.18404.1
>15080.26465.3
Table 5. Maximum operation time of the optimized data prediction model.
Table 5. Maximum operation time of the optimized data prediction model.
Interval of the DatasetMaximum Operation Time for Each Group of Prediction Model (ms)
(0–50)27.8227.7827.7527.7327.73
(51–100)25.4825.4725.4825.4525.43
(101–150)25.4725.4925.4725.4625.45
(151–200)25.4525.4425.4525.4825.43
(210–250)25.4525.4625.4925.4525.44
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.

Share and Cite

MDPI and ACS Style

Cai, W.; Zhang, Y.; Zhang, J.; Guo, S.; Guo, R. Prediction of Input–Output Characteristic Curves of Hydraulic Cylinders Based on Three-Layer BP Neural Network. Sensors 2025, 25, 1949. https://doi.org/10.3390/s25061949

AMA Style

Cai W, Zhang Y, Zhang J, Guo S, Guo R. Prediction of Input–Output Characteristic Curves of Hydraulic Cylinders Based on Three-Layer BP Neural Network. Sensors. 2025; 25(6):1949. https://doi.org/10.3390/s25061949

Chicago/Turabian Style

Cai, Wei, Yirui Zhang, Jianxin Zhang, Shunshun Guo, and Rui Guo. 2025. "Prediction of Input–Output Characteristic Curves of Hydraulic Cylinders Based on Three-Layer BP Neural Network" Sensors 25, no. 6: 1949. https://doi.org/10.3390/s25061949

APA Style

Cai, W., Zhang, Y., Zhang, J., Guo, S., & Guo, R. (2025). Prediction of Input–Output Characteristic Curves of Hydraulic Cylinders Based on Three-Layer BP Neural Network. Sensors, 25(6), 1949. https://doi.org/10.3390/s25061949

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop