Dual-attention mechanism-based proportional valve multi-dimensional flow mapping model construction method and system
By using an LSTM network model with a dual attention mechanism, a multidimensional flow mapping relationship for proportional valves was established, which solved the problem of sensor damage and achieved high-precision flow control, thereby improving the safety and control accuracy of the hydraulic system.
Patent Information
- Application Number
- CN202311456076.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-03
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-11-03
AI Technical Summary
Existing technologies make it difficult to accurately determine the mapping relationship between multidimensional sensor data and flow rate, which makes it difficult to achieve high-precision control of proportional flow control valves. In particular, sensors are prone to damage in harsh environments, increasing maintenance costs and posing safety hazards.
An LSTM network model employing a dual attention mechanism is trained by acquiring a multidimensional sensor dataset to establish a mapping relationship between valve core displacement, valve port pressure, oil temperature, and flow rate. The input data is weighted using inter-variable and self-attention mechanisms, and wavelet denoising and fully connected layers are combined to prevent overfitting, thereby achieving high-precision flow control.
It achieves high-precision real-time control of proportional flow in harsh environments, reduces the risk of sensor damage, and improves system safety and control accuracy.
Smart Images

Figure CN117588463B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of proportional valve flow control, and more specifically, relates to a method and system for constructing a multidimensional flow mapping model for a proportional valve with a dual attention mechanism. Background Technology
[0002] Due to their high power density and large output power, hydraulic systems are widely used in various heavy industries, automobiles, agricultural machinery, and other fields. As the core component of a hydraulic system, the proportional control valve controls the flow and pressure of the system by adjusting the opening of the valve core, and its capacity determines the overall performance of the system.
[0003] In most applications, proportional control valves are used in conjunction with external sensors on the actuators. For example, in a valve-controlled cylinder system, the displacement signal of the hydraulic cylinder is acquired by a displacement sensor and fed back to the controller for closed-loop control. The controller outputs an analog signal to adjust the opening of the proportional control valve. However, due to the harsh working environment of construction machinery, sensors that measure the position information of hydraulic actuators (hydraulic cylinders, hydraulic motors, etc.), such as displacement sensors and rotary encoders, are easily damaged, leading to high additional costs and maintenance expenses, and even serious safety accidents. Therefore, proportional flow control valves that directly control the flow of the system and their high-precision flow control have become an important research topic.
[0004] Proportional flow control valves use the required flow rate for system operation as the control target and the actual flow rate as feedback to form a closed-loop control. However, due to the high cost of flow sensors and the problem of flow signal acquisition delay, using flow sensors to acquire flow feedback signals is not a viable method. Therefore, many researchers are now studying the numerical relationship between flow rate and various factors (such as main valve spool opening, valve orifice pressure drop, oil temperature, etc.) to determine the actual flow rate of the system. However, accurately determining the mapping relationship between multi-dimensional sensor data and flow rate, and thus accurately obtaining real-time flow values based on multi-dimensional sensor data to achieve high-precision flow control of proportional valves, remains a pressing problem to be solved. Summary of the Invention
[0005] In view of the above-mentioned defects or improvement needs of the existing technology, the present invention provides a method and system for constructing a multidimensional flow mapping model of a proportional valve with a dual attention mechanism. The purpose is to determine the accurate mapping relationship between multidimensional sensing data and flow value, and to capture the dynamic changes of flow in the proportional valve with changes of other parameters more accurately and quickly.
[0006] To achieve the above objectives, according to a first aspect of the present invention, a method for constructing a multidimensional flow mapping model for a proportional valve with a dual attention mechanism is proposed, comprising the following steps:
[0007] Obtain a dataset about the proportional valve, which includes multiple sets of data, each containing valve spool displacement, valve orifice pressure, oil temperature, and flow rate;
[0008] The trained dual-attention mechanism LSTM network model is obtained by training the dataset, which is the proportional valve multidimensional flow mapping model.
[0009] The dual-attention mechanism LSTM network model includes an inter-variable attention mechanism module, a variable self-attention mechanism module, and an LSTM network. The LSTM network is used to model the mapping relationship between three input variables and a single output variable. The three input variables are valve core displacement, valve orifice pressure, and oil temperature, and the single output variable is flow rate. The inter-variable attention mechanism module is used to evaluate the influence weight of the three input variables on the flow rate and weights them when the three input variables are input into the LSTM network. The variable self-attention mechanism module is used to weight the time series of each input variable with time weights when the three input variables are input into the LSTM network.
[0010] As a further preferred embodiment, in the inter-variable attention mechanism module, the influence weights are obtained by performing Pearson correlation analysis on the three input variables and the flow rate.
[0011] As a further preferred embodiment, in the variable self-attention mechanism module, the time series weight of each input variable is determined by using a tanh function with time scale scaling.
[0012] As a further preferred embodiment, the LSTM network includes an LSTM layer, a Dropout layer, a fully connected layer, and an output layer connected in sequence.
[0013] As a further preferred option, when training the dual-attention mechanism LSTM network model using a dataset, an adaptive moment estimation algorithm is employed.
[0014] As a further preferred option, a dataset regarding the proportional valve is obtained, including:
[0015] The valve core displacement, valve port pressure, oil temperature, and flow signals of the proportional valve are collected during operation. The collected signals are then processed for noise reduction and normalization to obtain a dataset about the proportional valve.
[0016] As a further preferred option, the signal is denoised by wavelet denoising; and the data of valve core displacement, valve port pressure, and oil temperature are normalized to the [0,1] interval by the max-min normalization method.
[0017] According to a second aspect of the present invention, a system for constructing a proportional valve multidimensional flow mapping model with a dual attention mechanism is provided, comprising a processor for executing the above-described method for constructing a proportional valve multidimensional flow mapping model with a dual attention mechanism.
[0018] According to a third aspect of the present invention, a proportional valve multidimensional flow mapping model is provided, which is constructed using the above-described method for constructing a proportional valve multidimensional flow mapping model with a dual attention mechanism.
[0019] According to a fourth aspect of the present invention, a method for obtaining the flow rate of a proportional valve based on the above-mentioned multidimensional flow mapping model of a proportional valve is provided, comprising the steps of: acquiring the valve core displacement, valve port pressure, and oil temperature data of the proportional valve in real time, and inputting them into the multidimensional flow mapping model of the proportional valve to obtain the flow rate of the proportional valve.
[0020] In summary, compared with the prior art, the above-described technical solutions conceived by this invention mainly possess the following technical advantages:
[0021] 1. This invention proposes a dual-attention mechanism LSTM network as a model to establish a multi-dimensional mapping relationship between flow rate and valve core displacement, valve orifice pressure difference, and oil temperature. The network mapping model established by this invention, combining signal processing and deep learning, better represents the flow rate mapping relationship compared to traditional data fitting methods. While achieving higher accuracy, the introduction of time series concepts allows for more accurate and rapid capture of the dynamic changes in flow rate as other parameters change. This method can be applied to various types of proportional control valves, and accurate real-time flow acquisition lays a solid foundation for precise flow control in hydraulic systems.
[0022] 2. This invention considers the actual physical characteristics of hydraulic proportional valves: 1) the effects of valve core displacement, valve orifice pressure difference, and oil temperature on the proportional valve flow rate are all different; 2) due to the inertia of the fluid in the hydraulic system, the fluid state at the current moment is correlated with the fluid state over a previous period, and this correlation becomes stronger as the time axis distance from the current moment gets closer. The invention proposes combining inter-variable attention mechanisms and variable self-attention mechanisms in the model. Furthermore, the weights of the inter-variable attention mechanism are derived through Pearson correlation analysis, while the weights of the variable self-attention mechanism are obtained using a tanh function with a time scale scaling factor. The introduction of the dual attention mechanism ensures rapid convergence of the LSTM network training and effectively improves the model's accuracy.
[0023] 3. For LSTM networks, since the multidimensional flow mapping relationship is three-to-one, a fully connected layer is added after the LSTM layer for univariate output; and a Dropout layer is set between the LSTM layer and the fully connected layer to prevent overfitting. Furthermore, wavelet denoising is used to reduce noise in the sensor-collected data to improve model training quality. Attached Figure Description
[0024] Figure 1 This is a flowchart illustrating the method for constructing a multidimensional flow mapping model for a proportional valve with a dual attention mechanism according to an embodiment of the present invention.
[0025] Figure 2 This is a hydraulic schematic diagram of the proportional valve testing platform according to an embodiment of the present invention;
[0026] Figure 3 This is a schematic diagram of the dual attention mechanism LSTM network model structure according to an embodiment of the present invention;
[0027] Figure 4 Figures (a) and (b) show the performance of the model trained according to the embodiments of the present invention on the test set. Detailed Implementation
[0028] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. Furthermore, the technical features involved in the various embodiments of this invention described below can be combined with each other as long as they do not conflict with each other.
[0029] This invention provides a method for constructing a multidimensional flow mapping model for a proportional valve with a dual attention mechanism, as shown in the embodiments of the present invention. Figure 1 As shown, it includes the following steps:
[0030] S1: Multidimensional sensor signal acquisition; Acquire the variable signals required to establish the multidimensional flow mapping relationship of the proportional valve, including the proportional valve core displacement signal, valve port differential pressure signal, oil temperature signal, and calibration flow signal;
[0031] S2: Sensing data denoising and normalization; Wavelet denoising is used to denoise the collected valve core displacement, pressure signal, temperature signal and flow signal, then the data is normalized and divided into training set and test set;
[0032] S3: Training of the multidimensional flow mapping model for proportional valves; The training set is used to train the dual attention mechanism LSTM network model to obtain a multidimensional flow mapping model for proportional valves that can represent the mapping relationship between the working flow of the proportional valve and the valve core displacement, valve port pressure difference and oil temperature.
[0033] S4: Proportional valve multidimensional flow mapping model test; The trained proportional valve multidimensional flow mapping model is used on the test set to verify the accuracy of the model.
[0034] Furthermore, in step S1, to meet the requirements of multi-dimensional sensor signal acquisition, the proportional valve test hydraulic principle is designed as follows: Figure 2As shown, a test platform was built based on this, and the flow mapping relationship from the proportional valve inlet (P port) to the working port (A port) was taken as the research object. The sensors required for signal acquisition in the hydraulic circuit are as follows:
[0035] Based on the requirements for valve core displacement signal acquisition, an LVDT position sensor is added to the main valve core of the proportional valve to obtain the position of the main valve core.
[0036] According to the requirements for valve port differential pressure signal acquisition, pressure sensors are set at the P port and A port of the proportional valve to collect pressure signals and calculate the difference to obtain the valve port differential pressure signal.
[0037] According to the oil temperature signal acquisition requirements, an oil temperature signal is set at the working port of the proportional valve to acquire the oil temperature signal;
[0038] Based on the flow signal acquisition requirements, a high-precision, high-response flow meter is installed in the return oil circuit of the test bench to obtain accurate real-time calibration flow signals.
[0039] Specifically, the collected data needs to cover the range of each parameter, and the amount of data must be sufficient to meet the training requirements of the model. Therefore, the main valve core is driven by a drive device to adjust its displacement within the specified range, and the flow rate change signal is obtained when the valve core displacement changes. Furthermore, the pressure differential at the valve port is changed by adjusting the pressure regulating valve located after port A of the test proportional valve, and the flow rate change signal under the pressure differential change is obtained. In addition, the temperature gradually increases with the accumulation of the throttling time at the valve port, and its gradient is related to the throttling state. In some embodiments, the collected dataset contains 500,000 data sets, each containing four values: valve core displacement, valve port pressure, oil temperature, and flow rate.
[0040] Furthermore, in step S2, noise from the time-series signal that is affected by the environment (including electromagnetic interference, vibration, etc.) will affect the training accuracy of the model. Therefore, wavelet denoising is used to denoise the collected valve core displacement, pressure signal, temperature signal and flow signal respectively. Then, the denoised data is divided into training set and test set, and the training set and test set are normalized in order to better train the data and prevent the training process from diverging.
[0041] In some embodiments, wavelet denoising includes the following steps:
[0042] The wavelet basis function is selected as the dB2 wavelet function (a Daubechies wavelet function of length 2);
[0043] Five-level wavelet decomposition was used to decompose the four types of sensor signals layer by layer, decomposing the signals into multiple components (each layer contains high-frequency and low-frequency components).
[0044] For each component of each signal, the detail coefficients and approximation coefficients are calculated to obtain a set of wavelet components and detail components;
[0045] Based on the characteristic that the wavelet decomposition coefficients of the signal noise and the signal itself have different intensity distributions in different frequency bands, the threshold is calculated by the 'VisuShrink' method, and the wavelet coefficients corresponding to the noise in each frequency band are removed by the soft thresholding function, while retaining the wavelet decomposition coefficients of the original signal.
[0046] Wavelet reconstruction is performed on the processed coefficients to obtain the pure signals of the four variables.
[0047] In some embodiments, the noise-reduced data is divided into a training set and a test set in a 4:1 ratio. To better train the data and prevent divergence during training, the training set and the test set are normalized. The displacement, pressure difference and temperature data are scaled to the [0,1] interval. The normalization method is Min-Max Normalization.
[0048] Furthermore, in step S3, such as Figure 3 As shown, the dual attention mechanism LSTM network model includes an inter-variable attention mechanism module, a variable self-attention mechanism module, and an LSTM network.
[0049] In some embodiments, since the effects of valve core displacement, valve orifice pressure difference, and oil temperature on flow rate are different, treating all three as inputs to the network model uniformly would lead to reduced learning efficiency and affect model quality. Therefore, an inter-variable attention mechanism is used to evaluate the impact of the three variables ([x, ΔP, T]) on flow rate (Q), and weighting is performed when the time series data of the three variables are input into the LSTM network. The variable weights (W) are... iv =[w x ,w P ,w T The results were obtained by performing Pearson correlation analysis on the three variables and the flow rate.
[0050] In some embodiments, due to the inertia of the fluid in a hydraulic system, the fluid state at the current moment is correlated with the fluid state over a previous time period, and this correlation becomes stronger as the distance from the current time point on the time axis increases. Therefore, a variable self-attention mechanism is used to process individual variable time series of length N (the length of the LSTM network sequence, such as the valve core displacement sequence x). (N) =
[0051] (x k ,x k+1 , ..., x k+N-1 ), where N is the total length of the sequence, xk The displacement at time point k is weighted by time, and the weights are derived from the tanh function with time scaling (e.g., the weight of the nth sequence in the valve core displacement sequence: w). xn =tanh(n / τ), where n∈(0,N), and τ is the time scale scaling factor.
[0052] In some embodiments, an LSTM network is used to model the three-input-single-output mapping relationship. The LSTM network is an improvement on the recurrent neural network (RNN) by introducing a memory unit, which improves the gradient explosion and vanishing problems that occur in the long sequence learning process of the RNN network.
[0053] In an LSTM network, the memory unit at time t-1 (c (t-1) ) to the hidden layer external state (h) at time t (t) The system transmits information, which includes memory information from the beginning of the sequence up to time t-1. The information transmission path is determined by three gates: the input gate (i), the forget gate (f), and the output gate (o). The input gate controls the current information. Input; forget gate controls historical information (c (t -1) Does it need to be reset? The output gate controls the information stored at the current time (c) (t) The output of the multidimensional flow mapping is calculated. Since the multidimensional flow mapping relationship is three-to-one, a fully connected layer is added after the LSTM layer for univariate (flow Q) output. Furthermore, to prevent overfitting, a Dropout layer is placed between the LSTM layer and the fully connected layer, and an early termination strategy is introduced during training.
[0054] Furthermore, the parameters that the dual attention mechanism LSTM network model needs to train are the weight matrix and the bias vector. The optimal values of these parameters are obtained recursively through the adaptive moment estimation (Adam) algorithm. The learning rate, the number of training epochs, and the batch size (bath-size) of the optimization method can be obtained through manual parameter tuning or grid tuning.
[0055] Finally, after obtaining the optimal multidimensional traffic mapping model based on the dual-attention LSTM network, the trained model was used on the test set, and the test results are as follows. Figure 4 As shown. Figure 4 To compare the flow signals collected by actual flow meters in the test set with the flow values obtained by the flow mapping model, it can be seen that the errors are all within ±2L / min, which is 1.25% of the maximum flow value (160L / min), and most of the error values are within ±1L / min, which is 0.625% of the maximum flow value. The flow mapping model proposed in this invention has high accuracy and can achieve accurate real-time flow acquisition through other sensor signals.
[0056] Those skilled in the art will readily understand that the above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for constructing a multidimensional flow mapping model for a proportional valve with a dual attention mechanism, characterized in that, Includes the following steps: Obtain a dataset about the proportional valve, which includes multiple sets of data, each containing valve spool displacement, valve orifice pressure, oil temperature, and flow rate; The trained dual-attention mechanism LSTM network model is obtained by training the dataset, which is the proportional valve multidimensional flow mapping model. The dual attention mechanism LSTM network model includes an inter-variable attention mechanism module, a variable self-attention mechanism module, and an LSTM network. The LSTM network is used to model the mapping relationship between three input variables and a single output variable. The three input variables are valve core displacement, valve port pressure, and oil temperature, and the single output variable is flow rate. The inter-variable attention mechanism module is used to evaluate the influence weights of the three input variables on the traffic and to weight them when the three input variables are input into the LSTM network; specifically, the influence weights are obtained by performing Pearson correlation analysis between the three input variables and the traffic. The variable self-attention mechanism module is used to perform time-weighted summation of the time series of each of the three input variables when they are input into the LSTM network; specifically, for each input variable, a time-scaled summation is applied. The function determines the time series weights of the input variables.
2. The method for constructing a multidimensional flow mapping model for a proportional valve with a dual attention mechanism as described in claim 1, characterized in that, The LSTM network comprises an LSTM layer, a Dropout layer, a fully connected layer, and an output layer connected in sequence.
3. The method for constructing a multidimensional flow mapping model for a proportional valve with a dual attention mechanism as described in claim 1, characterized in that, When training the dual-attention LSTM network model using a dataset, an adaptive moment estimation algorithm is employed.
4. The method for constructing a multidimensional flow mapping model for a proportional valve with a dual attention mechanism as described in any one of claims 1-3, characterized in that, Obtain the dataset about proportional valves, including: The valve core displacement, valve port pressure, oil temperature, and flow signals of the proportional valve are collected during operation. The collected signals are then processed for noise reduction and normalization to obtain a dataset about the proportional valve.
5. The method for constructing a multidimensional flow mapping model for a proportional valve with a dual attention mechanism as described in claim 4, characterized in that, The signal is denoised by wavelet denoising; the valve core displacement, valve port pressure, and oil temperature data are scaled to the [0,1] interval by the minimax normalization method.
6. A system for constructing a multidimensional flow mapping model for a proportional valve with a dual attention mechanism, characterized in that, Includes a processor for executing the proportional valve multidimensional flow mapping model construction method of the dual attention mechanism as described in any one of claims 1-5.
7. A multidimensional flow mapping model for a proportional valve, characterized in that, It is constructed using the proportional valve multidimensional flow mapping model construction method with dual attention mechanism as described in any one of claims 1-5.
8. A method for obtaining the flow rate of a proportional valve based on the proportional valve multidimensional flow mapping model as described in claim 7, characterized in that, The steps include: acquiring the valve core displacement, valve port pressure, and oil temperature data of the proportional valve in real time, and inputting them into the multidimensional flow mapping model of the proportional valve to obtain the proportional valve flow rate.
Citation Information
Patent Citations
Digital proportional valve flow control system and method
CN111352450A
Network traffic prediction method of LSTM model based on attention mechanism
CN111970163A
Related network flow prediction method based on multi-head attention mechanism
CN115146732A
