Next Article in Journal
A Novel Sub-Module-Based Line-Commutated Converter That Is Actively Resistant to Commutation Failure
Previous Article in Journal
NPS6D100—A 6D Nanopositioning System with Sub-10 nm Performance in a Ø100 mm × 10 mm Workspace
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research on Deviation Correction Control Method of Full-Width Horizontal-Axis Roadheader Based on PSO-BP Neural Network PID

by
Qinghua Mao
1,2,*,
Shimao Chong
1,2,
Jianquan Chai
1,2,
Song Qin
1,2 and
Fei Zhang
1,2
1
School of Mechanical Engineering, Xi’an University of Science and Technology, Xi’an 710054, China
2
Shaanxi Key Laboratory of Intelligent Detection and Control of Electromechanical Equipment for Mining Mines, Xi’an 710054, China
*
Author to whom correspondence should be addressed.
Actuators 2025, 14(8), 362; https://doi.org/10.3390/act14080362
Submission received: 2 June 2025 / Revised: 18 July 2025 / Accepted: 18 July 2025 / Published: 22 July 2025
(This article belongs to the Section Actuators for Surface Vehicles)

Abstract

Aiming at the problem of a full-width horizontal-axis roadheader being prone to diverge from the preset trajectory of the tunnel, a deviation correction control method based on particle swarm optimization–backpropagation (PSO-BP) neural network proportional–integral–derivative (PID) control is proposed. The track error model of the walking system and the transfer function model of the deviation correction control are established. The PSO-BP PID controller is designed; the beginning weights of BP are enhanced by the PSO, and the BP receives the optimal weights to instinctively adapt the PID parameters. An experiment on deviation correction control of the roadheader was carried out. The experimental results indicate that the maximum steady-state error of PSO-BP PID for deflection angle and angular velocity is reduced by 41.03% and 44.93%, respectively, compared with BP PID, and the average rise time for deflection angle and angular velocity is reduced by 75.76%.

1. Introduction

On 25 February 2020, the Eight Chinese Ministries and Commissions, including the National Development and Reform Commission and National Energy Administration, jointly issued the “Guiding Opinions on Accelerating the Intelligent Development of Coal Mine”. The Opinions point out that coal mines are developing towards intelligence. However, intelligent tunneling is one of the most challenging problems that need to be addressed in the current coal industry [1]. The full-width horizontal-axis roadheader [2] is a crucial device for rapid and smart excavation, and autonomous deviation correction control [3,4,5,6] plays a key role in realizing intelligent tunneling. Due to positioning errors, the external environment, and track self-slip, the actual driving trajectory of the full-width horizontal-axis roadheader will deviate from the middle line of the tunnel. It is necessary to implement deviation correction control to make the roadheader return to the tunnel center line, which can ensure the quality of tunnel forming. Therefore, research on deviation correction control methods for full-width horizontal-axis roadheaders is of great significance for intelligent tunneling.
Scholars have researched the deviation correction control of roadheaders. Ma et al. [7] investigated the deviation correction control approach of walking equipment and developed a deviation correction control method based on roadway excavation technology. Deviation correction control experiments were implemented to verify the effectiveness of the method. Fang et al. [8] presented an intelligent optimization strategy for the dynamic adjustment of a cantilever roadheader and combined it with the collaborative optimization strategy to achieve accurate adjustment of deviation. Qu et al. [9] proposed a machine correction method based on a position and azimuth deviation model, which is feasible through simulation analysis. Ahmadi et al. [10] took the longitudinal slip rate of a tracked vehicle under severe working conditions as the starting point and designed the path following control of a dual-tracked vehicle. Thomas [11] unified and standardized the dynamic evaluation method of mobile robots and completed its deviation correction control. Keiji et al. [12] autonomously tracked the linear and directional movements of a mobile robot based on the method of visual ranging and carried out experimental verification. Shiller et al. [13] proposed a method for calculating the force of a tracked vehicle driving on a horizontal road surface at a predetermined speed and carried out circular trajectory tracking control on both a plane and an inclined plane. Zhang et al. [14] proposed a roadheader autonomous correction method based on a regional grid. A PID controller based on neural networks has a rapid dynamic response and steady-state accuracy. Qu et al. [15] established a position deviation model of the roadheader walking system. The path planning methods of the roadheader were studied, and the results show that the deviation control can be implemented. Zhang et al. [16] designed a deviation correction control system based on vision measurement, which successfully finds a solution for tracing control of a roadheader. Ling [17] proposed a large trajectory planning algorithm for roadheaders, and trajectory studies were conducted based on the optimal control effects. Chen [18] discussed the implementation of automatic steering by controlling the roadheader walking motor and studied the control process of the stepping motor. Fan et al. [19] used a fuzzy BP PID method to regulate the speed of the hydraulic motor. Its response is faster, and the robustness is better, which can more effectively satisfy the speed control requirements of vibration hydraulic motors. Jiang et al. [20] optimized the particle swarm BP. It is used in motor fault diagnosis to check the operation of a shearer. Aiming to enhance the properties of the PID controller of the deviation control system, Wang et al. [21] presented an improved artificial bee colony algorithm to adjust the PID controller’s gain for significant performance, which verified its superiority in convergence, dynamic adjustment, and robustness. Wang et al. [22] proposed a hybrid sparrow search algorithm for PID parameter optimization to improve the stability and safety of industrial robots by suppressing motion-induced jitter.
All in all, the study of deviation correction control of full-width horizontal-axis road-headers [23] is scarce in the academic field. The operational environment of the roadheader is closed. The allowable adjustment angle is limited, which requires higher precision of deviation correction control. BP neural networks demonstrate a superior trade-off between online learning capability and implementation complexity when benchmarked against radial basis function neural networks (RBFNN) [24] and extreme learning machines (ELM) [25]. While ELM offers rapid training, its reliance on random initialization and lack of online adaptation limit its effectiveness in dynamic environments. In contrast, BP’s iterative weight-tuning capability makes it more suitable for real-time calibration, particularly when adjusting to variable geological conditions. RBFNN, which depends on predefined kernel centers, often underperforms in high-noise scenarios, whereas BP’s gradient-based optimization inherently mitigates noise through error backpropagation. Therefore, this study adopts BP neural network. But the empirical selection of its initial weights will significantly affect the convergence speed and control accuracy. To solve the problems, the starting weight parameters of BP are optimized using the PSO algorithm to enhance the convergence speed of BP, and the online self-adjustment of PID parameters is realized through the optimized BP to realize deviation correction control of roadheaders accurately and rapidly.
This study aims to address the high-precision correction control problem of full-width horizontal-axis roadheaders in confined spaces, proposing the application of the PSO-BP PID control algorithm to deviation control tasks. This algorithm enhances the global search and local optimization capabilities of the control system by introducing dynamic inertia weights and a 3-5-3 network structure. At the same time, the controller is deeply coupled with the hydraulic system model of the roadheader, which improves the overall control response performance. A coupled modeling method for kinematics and control systems was used to achieve the joint solution of trajectory error and dynamic response of hydraulic systems. Finally, a system simulation model was constructed based on the Simulink platform, providing a feasible and efficient solution for the high-precision autonomous correction of a roadheader.
The subsequent sections of this article are arranged as follows: Section 2 develops the trajectory error model of the walking system through kinematic analysis; Section 3 establishes the transfer function model of the hydraulic system by analyzing the working mechanism; Section 4 proposes the innovative PSO-BP neural network PID control method, detailing both controller architecture and algorithm implementation; Section 5 comprehensively validates the method’s effectiveness through comparative simulations and experimental tests on an actual roadheader platform; finally, the conclusion summarizes key findings and suggests future research directions.

2. Establishing the Error Model of the Trajectory of the Roadheader Walking System

The full-width horizontal-axis roadheader is presented in Figure 1. The driving and correction of the roadheader can be regarded as the directional driving process of steering and correction of slow, large tracked vehicles. Therefore, the roadheader’s motion can be converted into a two-dimensional sports problem in the horizontal tunnel space.
In the operation process, due to the internal slippage of the roadheader and the influence of changes in the external environment, the actual route will be far from the preset trajectory, affecting the working process and operation efficiency. Therefore, some specific control measures can be taken to monitor the position and posture of the roadheader center in real time. By actively adjusting the linear speed and angular speed of the roadheader, the error between the real route and the preset trajectory can be reduced, which allows the roadheader to automatically move along the desired trajectory and maintain consistency with the virtual target track. The consistency includes position, posture, linear velocity, and angular velocity on the preset trajectory.
Figure 2 is a schematic tracking diagram of the trajectory tracking of the roadheader. The roadheader on the right is the target position. It is a virtually nonexistent roadheader, which always follows a trajectory path MN set within the global reference frame. At any time, its position and posture always match the preset values. Within the framework of the global coordinate system, the position and posture of the target roadheader are expressed as P B ( x B , y B , θ B ) , and the linear velocity and angular velocity are indicated ( v B , ω B ) . The roadheader deviates from the preset trajectory MN and arrives at point OA. At this point, the position and posture of the actual roadheader are represented as P A ( x A , y A , θ A ) , and the linear and angular velocities are expressed as ( v A , ω A ) .
According to Figure 2, the posture error equation of the target and actual roadheader is solved by Equation (1).
P e = x e y e θ e = P B P A = 0 t v B cos ( θ B ) d t 0 t v A cos ( θ A ) d t 0 t v B sin ( θ B ) d t 0 t v A sin ( θ A ) d t 0 t ω B d t 0 t ω A d t
where P B is the location and attitude of the target roadheader. P A is the location and attitude of the actual roadheader.
Equation (1) is the posture error equation under the global coordinate system. Under the local reference frame, the trajectory error is presented in Equation (2).
P e = x e y e θ e = cos θ A sin θ A 0 sin θ A cos θ A 0 0 0 1 x B x A y B y A θ B θ A
where x e is the horizontal error of the roadheader in the tunnel. y e is the vertical error. θ e is the angular error of the roadheader. The position error is presented in Equation (3).
P e = x e y e θ e = ω A y e v A + v B cos θ e ω A x e + v B sin θ e ω B ω A
where ω A is the angular velocity of the roadheader in the real position. v A is the linear velocity of the roadheader in the real position. v B and ω B are the linear and angular speed of the roadheader in the target position, and the corner error is θ e = θ B θ A .
According to the analysis presented, the track tracking of the roadheader can be termed as the problem of moving the roadheader to the target position by finding the appropriate v A and ω A under the action of the control law, that is, P e = 0 .

3. Modeling of Roadheader Correction Control System

3.1. Working Principle of the Hydraulic System of the Roadheader Walking Mechanism

As a vital part of the roadheader, the walking mechanism implements the advancement, retreat, and turning of the entire machine and equipment [26]. The walking mechanism is mainly driven by two hydraulic motors. When the left and right motors are turning or reversing together, the machine drives forward or returns behind, and steering is achieved. The walking mechanism is powered by two identical, independent hydraulic systems, as illustrated in the schematic diagram of the full-width horizontal-axis hydraulic system in Figure 3.
The role of the quantitative pump is to provide power sources. The role of the overflow valve is to control the pressure on the main flow path. The role of the one-way valve is to prevent the inversion of oil. The role of the proportional directional valve is to drive the hydraulic motor to run. When the valve core is on the left of the direction valve, the hydraulic motor is transferred to achieve the forward movement of the roadheader. When the valve core is on the right side of the direction valve, the hydraulic motor reverses to implement the back movement of the roadheader. When the valve core is in the middle position, the hydraulic motor is in the static state. On the other hand, according to the magnitude of the control signal, the ratio direction valve can also adjust the valve opening and adjust the speed control of the roadheader by changing the flow of the hydraulic motor flow.

3.2. Modeling of the Hydraulic System of the Roadheader Walking Mechanism

3.2.1. The Relationship Between the Voltage of the Electric Hydraulic Steering Valve and the Valve Core Displacement

According to Kirchhoff’s voltage law, the voltage incremental equation of the electromagnet can be obtained in the direction of the proportional direction, which can be presented in Equation (4):
Δ U C = L d Δ i d t + ( R + r p c ) Δ i + K e d Δ y d t
where U C is the increased voltage of the electromagnet coil. L d i d t is the self-sensing anti-electromotive force of the electromagnet coil. i is the increment of the solenoid coil current; L is the inductance of the electromagnet coil. ( R + r p c ) i is the voltage drop of the electromagnet coil; R and r p c are the internal resistance and amplifier internal resistance of the electromagnet coil. K e d y d t is the anti-electromotive force generated during the iron movement, and y is the electromagnet displacement increment. K e is the coefficient of the reaction electric momentum.
Ignoring the influence of liquid power, according to the principle of the synthesis of force, the incremental equation of electromagnet thrust in the proportional direction is presented in Equation (5).
m d 2 Δ y d t 2 + D d Δ y d t + K S Δ y = Δ F m
where m d 2 y d t 2 is the force of the armature itself. m is the quality of the armature. D d y d t 2 is the interference force caused by the damping. D is the damping coefficient. K s y is the spring force. K s is the spring rate of the armature. F m is the electromagnetic thrust increment.
The Laplace Transform of Equation (5) is presented in Equation (6).
m s 2 Y ( s ) + D s Y ( s ) + K S = F m ( s )
The relationship between the current increment of the solenoid coil and the displacement increment of the solenoid spool is presented in Equation (7).
Y ( s ) I ( s ) = K I m s 2 + D s + ( K S + K Y )
where K I is the voltage-to-current gain. K Y is the current-to-displacement gain.
The relationship between the voltage increment applied to the electrohydraulic proportional solenoid coil and the spool displacement increment is presented in Equation (8).
Y ( s ) U C ( s ) = K I ( m s 2 + D s + K S + K Y ) ( L s + R + r p c ) K e s

3.2.2. The Flow Equation of Hydraulic Motors

The liquid flow entering the hydraulic motor is mainly composed of three parts: traffic, total leakage flow, oil compression, and total flow required to promote the motor movement. The liquid flow is presented in Equation (9).
Q L = D m d θ d t + C m P L + V m 4 β e d p L d t
where Q L is the load flow. D m is the theoretical radian displacement of the hydraulic motor. θ is the corner of the hydraulic motor shaft. C m is the total leakage coefficient. P L is the working pressure. V m is the total volume of the two cavities. β e is the system-valid volume elastic coefficient. D m d θ d t is the flow required to promote motor motion. C m P L is a total leakage. V m 4 β e d P L d t is the total flow rate required for oil compression and deformation in the chamber.
The Laplace Transform of Equation (9) is presented in Equation (10).
Q L ( s ) = D m s θ ( s ) + C m + V m 4 β e s p L ( s )
ω m = d θ d t
where ω m is the hydraulic motor shaft angular velocity.
The Laplace Transform of Equation (11) is presented in Equation (12).
ω m ( s ) = s θ m ( s )

3.2.3. The Torque Equation of the Hydraulic Motor

Considering the motor shaft and load mass, including the inertial force, damping force, elastic force in motion, and the action of the external load force, the balance equation between piston thrust and load force is obtained based on Newton’s second law, which is presented in Equation (13).
T g = D m ( p 1 p 2 ) = D m p L = J m d θ 2 d t 2 + B m d θ d t + G θ + T L
where J m d θ 2 d t 2 is the inertial force. B m d θ d t is the viscous damping force. G θ is the elastic force. T g is the theoretical torque. J m is the total inertia. B m   is the internal viscosity damping coefficient. G is the load torque rigidity. T L refers to the load torque.
The Laplace Transform of Equation (13) is presented in Equation (14).
T g = D m p L ( s ) = ( J m s 2 + B m s + G ) θ ( s ) + T L ( s )
Ignoring elastic loads, fluid leakage, and adhesive damping, the transmission function of the input voltage and hydraulic motor angle speed of the electric hydraulic ratio direction valve can be obtained by Equation (15).
ω m ( s ) = k q D m Y ( s ) k c + C m D m 2 [ 1 + V m 4 β e ( k c + C m ) s ] T L ( s ) V m J m 4 β e D m 2 s 2 + [ J m ( k c + C m ) D m 2 + B m V m 4 β e D m 2 ] s + 1

4. Correction Control Method for Roadheaders

4.1. BP Neural Network

The determination of conventional PID parameters mainly relies on a large number of repeated experiments, which not only increases experimental time but also cannot guarantee accuracy [27]. The BP neural network features nonlinear mapping and adaptive learning capabilities. It is well-suited to address issues that have intricate inner workings. The layout of the BP neural network is presented in Figure 4. It [28] includes an input layer, a hidden layer, and an output layer. Considering the characteristics of the roadheader, the total number of neurons in the hidden layer is 5, and the neural network structure of “3-5-3” is used for analysis.
Set the input layer’s input to match its output: r k , y k , e r r o r k = [ O 1 1 , O 2 2 , O 3 3 ] where r k refers to the projected driving speed, y(k) refers the current driving speed, error(k) denotes the discrepancy between the feedback of the system output and the anticipated value. The inputs and outputs are presented in Equations (16) and (17).
x i ( 2 ) ( k ) = j = 1 3 w i j ( 1 ) O j ( 1 ) ( i = 1 , 2 , , 5 )
y i ( 2 ) ( k ) = f [ x i ( 2 ) ( k ) ] ( i = 1 , 2 , , 5 )
where x i ( 2 ) refers to the input of the activation function for the ith hidden layer neuron. w i j ( 1 ) refers to the link weight. O j ( 1 ) refers to the activation value of the jth neuron. y i ( 2 ) refers to the output of the ith neuron.
The activation function of the hidden layer adopts the hyperbolic tangent function presented in Equation (18).
f ( x ) = e x e x e x + e x
The input and output functions of the output layer are presented in Equations (19) and (20)
x h ( 3 ) ( k ) = i = 1 5 w h i ( 2 ) y i ( 2 ) ( k ) ( h = 1 , 2 , , 5 )
y h ( 3 ) ( k ) = g ( x h i ( 3 ) ( k ) ) ( h = 1 , 2 , , 5 )
where x h ( 3 ) refers to the input of the hth neuron. w h i ( 2 ) refers to the link weight. y h ( 3 ) refers to the output of the hth neuron.

4.2. PSO Algorithm

The PSO initializes a group of particles. The paper assumes that there are n particles, and the location and speed of the ith particle are represented as X i = ( x i 1 , x i 2 , , x i d ) , V i = ( v i 1 , v i 2 , , v i d ) .
During each iteration, the particles update their velocities and positions through the specific extreme value p b e s t and the aggregate extreme value g b e s t with the following update formula:
v i d k + 1 = ω v i d k + c 1 r 1 ( p i d k x i d k ) + c 2 r 2 ( p g d k x i d k )
x i d k + 1 = x i d k + v i d k + 1
where ω is the inertia weight. k is the total iterations. P i and P g are the domestic and overall best locations, respectively. c 1 and c 2 are the learning factors. r 1 and r 2 are the arbitrary variables in the range [0, 1].

4.3. Design of PID Controller Based on PSO-BP Neural Network

The operating environment of the roadheader is closed, and the allowed adjustment angle is limited, which requires higher precision of deviation correction control. The PID algorithm cannot meet the requirements of control accuracy. BP control can deal with the complex problem. It can adapt the controller parameters. PSO is capable of addressing the initial parameter selection issue for BP [29], which improves the control performance and robustness of the system and makes the effect of deviation correction control reach its best level [30]. The PSO-BP neural network framework follows Tang et al.’s methodology [31], where particle swarm optimization dynamically initializes BP network weights. For PID control implementation, we adopt the PSO-BP hybrid algorithm proposed by Si et al. [32], which synergizes PSO’s global optimization with BP’s gradient descent for enhanced control stability. The full-width horizontal-axis roadheader PID controller framework involving PSO-BP is presented in Figure 5.
The PSO algorithm first optimizes the initial weight parameters of the BP network, ensuring a more effective starting point for training. These refined weights are then passed to the BP network, which dynamically adjusts the three PID parameters in real time.
As a population-based stochastic optimization technique, PSO exhibits strong global search capabilities. It employs a linear decreasing inertia weight strategy to balance global exploration and local exploitation [33], with symmetrically configured learning factors that ensure rapid convergence while maintaining optimization precision. This approach significantly improves the algorithm’s efficiency.
The BP network adaptively generates PID parameters by minimizing prediction error via gradient descent. While traditional BP networks suffer from slow convergence and sensitivity to initial weights [34], the integration of PSO-optimized initialization mitigates these issues. By providing near-optimal starting weights, the hybrid PSO-BP framework accelerates convergence and enhances generalization, preventing suboptimal local minima.
The combined PSO-BP approach ensures rapid initial parameter optimization through PSO, followed by adaptive fine-tuning via the BP network. This dual-stage mechanism delivers high-precision deviation correction control, meeting the stringent requirements of roadheader operation.
The following describes the sequence of the algorithm and the selection of some parameters for the PSO-BP. A flow diagram of PSO-BP PID is presented as Figure 6.
(1) Selection of the parameters of the PSO algorithm
The dimension D of the particle is presented in Equation (23).
D = ( H × I ) + ( O × H ) = ( 5 × 3 ) + ( 3 × 5 ) = 30
where H, I, and O represent the counts of hidden, input, and output layers. The population size, denoted by n, equals 50; the total number of iterations is 80; the learning factor is chosen as c1 = c2 = 1.49. The weight is presented in Equation (24).
ω = ω max m × ω max ω min M
where the inertia weights of the particle are between 0.4 and 0.9, and m is the count of the present iteration.
(2) Constructing the fitness function
To measure the effect of particle swarm optimization on the full-width horizontal-axis roadheader, the output variance of BP and the expected value are used as a fitness function to evaluate the quality of the particle position.
f i t n e s s = 1 N j = 1 N y j y j 2
(3) Each particle moves with the individual finest location and the team’s finest location as the target, and the speed and location of the particle are regularly updated to obtain the initial weight parameters.
(4) The BP calculates the output signal based on the input signal and weight information to obtain the best parameters. The BP tunes the linking weights through backpropagation to realize the automatic online update of the PID parameters of the roadheader.

5. Experimental Validation and Analysis of Deviation Correction Control of Roadheaders

5.1. Simulation Model of Deviation Correction Control System

To investigate the performance of the PSO-BP PID algorithm, simulation experiments were conducted in Simulink, and the model of deviation correction control is presented in Figure 7.
The controller employs a PID algorithm optimized via PSO-BP, where the PSO component is configured with a dimension of 30, a population size of 50, learning factors c1 = c2 = 1.49, and an inertia weight adopting a linear decreasing strategy (0.9–0.4) to achieve a smooth transition from global exploration to local convergence. The BP neural network features a three-layer 3-5-3 structure, with the input layer receiving the desired value, current value, and error signal and the output layer generating PID parameters K p , K i , and K d . The simulation solver utilizes the variable-step ode45 method, with a maximum step size set to 0.01 s and a relative tolerance of 1 ×   10 3 to meet control accuracy requirements. Key parameters of the hydraulic system strictly adhere to the measured data listed in Table 1 and are precisely configured in each Simulink submodule, ensuring the accuracy of the system dynamics modeling. This design comprehensively considers system dynamic response characteristics, algorithm convergence requirements, and actual engineering conditions, enabling a complete representation of system performance under typical input signals such as step, sinusoidal, and square waves.

5.2. Simulation Verification and Analysis of Deviation Correction Control

The parameter graph of PSO-BP PID control is presented in Figure 8. The PSO-BP can tune proportional, integral, and differential parameters to converge rapidly and remain stable in a short time. It has been demonstrated that the PSO-BP has reliable tuning ability.
To confirm the efficiency of the PSO-BP PID algorithm, the step signal, sinusoidal signal, and square wave signal are input into it. The PSO-BP PID is contrasted with the PID and BP PID algorithms.
The step response curves of three PID algorithms are presented in Figure 9. The error curves of the step signal response are presented in Figure 10. The traditional PID control reaches a stable state after 0.63 s. When BP PID is used, the system stabilizes at 0.40 s. When the PSO-BP PID is used, the system stabilizes at 0.35 s. PSO-BP PID reduces steady-state time by 44.44% and overshoot by 83.47% compared to PID. PSO-BP PID decreases steady-state time by 12.50% and overshoot by 58.76% compared to BP PID.
The sinusoidal response curves of three PID control algorithms are presented in Figure 11. The error curves of the sinusoidal signal response are presented in Figure 12. The PSO-BP PID control still maintains good tracking and control performance under the sinusoidal signal. The steady-state response time of PSO-BP PID control is 66.96% and 41.54% less than that of PID and BP PID control. The overshoot is reduced by 89.47% and 42.86%, respectively.
The square wave response curves of three PID control algorithms are presented in Figure 13. The error curves of the square wave signal response are presented in Figure 14. The PID reaches a stable state after 0.77 s, which is a slow response. The regulation time of the system with PSO-BP PID is 0.34 s, which is shorter than the time required for the PID and BP PID control to reach the steady state. The overshoot of PSO-BP PID control is reduced by 87.11% and 49.12%, respectively.
The comparative results of three PID control algorithms are presented in Table 2. PSO-BP PID control has a shorter response time, which can rapidly and accurately realize deviation correction control.

5.3. Experimental Verification of Roadheader Deviation Correction Control

To demonstrate the performance of the PSO-BP PID control algorithm in deviation correction control, a roadheader is used as an experimental subject, with a length of 11.6 m, a width of 5 m, and a height of 2.6 m. The tunnel center line is set as the reference trajectory for roadheader movement. According to our team’s previous research [35], the initial declination angle of −2° is taken as an example to implement the experiment.
(1) Construction of a walking mechanism control system for the experimental prototype of the roadheader
The experimental platform consists of strapdown inertial navigation, displacement sensor, remote intelligent industrial control machine, onboard PLC, electrical control cabinet, and pushing cylinder, which are presented in Figure 15. The information to be collected in this experiment includes the spatial coordinates, deflection angle, and angular velocity of the roadheader.
The system structure is shown in Figure 16. The onboard PLC communicates with the remote intelligent industrial control computer through Ethernet, and the neural network PID correction control algorithm is imported into the upper computer for PLC compilation. Then, a connection is established between the upper computer and the S7-200 SMART CPU, and control instructions are downloaded to the onboard PLC controller to control the movement of the tunneling machine.
The control instructions configured by the upper computer are analyzed by the PLC to adjust the hydraulic servo system of the tunneling machine in real time, driving it to move on the preset trajectory. The closed-loop control of state variables is realized.
The real-time operation data of the roadheader is collected by sensors and uploaded to the upper computer. The system dynamically compares it with the target value set internally by the controller and calculates the error amount.
The system outputs new PID control parameters based on real-time error results, achieving online adaptive adjustment of the excavation process. The control effect will be applied in the next control cycle, thus achieving a closed loop of self-learning and self-optimization correction control.
With the target declination angle, the roadheader steering is controlled based on the angle deviation to adjust the roadheader’s declination angle. Finally, the deviation correction control is implemented.
(2) Analysis of experimental results
Based on the strategy of control, when the roadheader is misaligned with the center line of the tunnel, it is necessary to deflect a certain angle to make the roadheader return to the center line. Firstly, when the roadheader is in the initial position, its left and right tracks move in reverse to perform in situ steering at an angle of 2°. The change in the deflection angle and the change in the angular velocity of the roadheader are presented in Figure 17 and Figure 18.
Figure 17 illustrates that, after the deviation correction control, the angle deviation of the roadheader gradually decreases, and the angle deviation of the roadheader generates a certain overshoot. The fluctuation in the process of deviation correction is due to the instability of the fuselage and the interference of external factors such as inertial guidance accuracy. The BP PID control needs 0.77 s to stabilize the error at around 0°, and its rise time is too long. However, the PSO-BP PID control only needs 0.29 s and has a shorter rise time. Figure 18 illustrates that the angular velocity increases rapidly at the beginning and then decreases rapidly after receiving the stop control signal until the deflection angle is stabilized at about 0°. Regarding response speed and error variation, although effective deviation correction can be implemented by using BP PID control, the delay of angular velocity adjustment is larger, and the adjustment time is longer. Therefore, PSO-BP PID control is more effective. The data are presented in Table 3.

6. Conclusions

To address the issue of trajectory deviation in full-width horizontal-axis roadheaders under complex and variable tunnel conditions, a PSO-BP PID-based deviation correction control method is proposed. The conclusions from simulations and experimental analyses indicate the following:
(1) The kinematic analysis of the roadheader walking mechanism is carried out, and a trajectory error model of the walking system is established. Combined with the hydraulic system of the roadheader walking mechanism, the transfer function of the hydraulic system is solved. The PSO-BP PID controller’s architecture is in place.
(2) Three different signals are input to the control system for simulation verification. The findings demonstrate that the PSO-BP PID can realize deviation correction control with faster speed and higher accuracy. The control effect surpasses both BP PID and PID control.
(3) Taking a full-width horizontal-axis roadheader as the experimental object, a deviation correction control experiment was carried out. The experiment concluded that the PSO-BP PID control mechanism achieves a maximum steady-state error of 0.23° in deflection angle and 0.0038 rad/s in angular velocity. This control mechanism can better accommodate the deviation correction control needs of the roadheader.
The current experimental validation was conducted in a controlled environment, but future studies should implement underground field tests to evaluate the system’s performance under real mining conditions with complex geological factors such as uneven road surfaces and rock fragmentation interference. This study enhances roadheader safety through real-time collision risk correction, optimizes resource utilization by minimizing over-excavation and under-excavation via precise control, and advances the development of unmanned tunneling technology.

Author Contributions

Conceptualization, Q.M. and S.C.; methodology, S.C. and F.Z.; software, S.C.; validation, S.C., J.C., F.Z. and S.Q.; formal analysis, S.C. and S.Q.; investigation, S.C., J.C. and S.Q.; resources, Q.M.; data curation, J.C. and S.Q.; writing—original draft preparation, S.C.; writing—review and editing, Q.M. and F.Z.; visualization, S.C. and S.Q.; supervision, Q.M.; project administration, Q.M.; funding acquisition, Q.M. and S.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China, grant number 52174150; the National Key Research and Development Program of China, grant number 2023YFC2907600; and the Key Research and Development Projects of Shaanxi Province, grant number 2023-LL-QY-03.

Data Availability Statement

The original contributions presented in the study are included in the article, and further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Ge, S.R.; Hao, S.Q.; Zhang, S.H.; Zhang, X.F.; Zhang, L.; Wang, S.; Wang, Z.B.; Bao, J.S.; Yang, X.L.; Yang, J.J. Status of intelligent coal mining technology and potential key technologies in China. Coal Sci. Technol. 2020, 48, 28–46. [Google Scholar] [CrossRef]
  2. Yang, J.J.; Zhang, Q.; Wang, C.; Chang, B.S.; Wang, F.; Wang, X.L.; Wu, M. Status and development of robotization research on roadheader for coal mines. J. China Coal Soc. 2020, 45, 2995–3005. [Google Scholar] [CrossRef]
  3. Wang, C.; Ma, H.; Xue, X.; Mao, Q.; Song, J.; Wang, R.; Liu, Q. Research on the Deviation Correction Control of a Tracked Drilling and Anchoring Robot in a Tunnel Environment. Actuators 2024, 13, 221. [Google Scholar] [CrossRef]
  4. Dong, Z.; Zhang, X.; Yang, W.; Lei, M.; Zhang, C.; Wan, J. Ant colony optimization-based method for energy-efficient cutting trajectory planning in axial robotic roadheader. Appl. Soft Comput. 2024, 163, 111965. [Google Scholar] [CrossRef]
  5. Wang, S.; Wang, D.; Ma, A.; Yan, X.; Zhao, S. Intelligent Robust Control of Roadheader Based on Disturbance Observer. Actuators 2025, 14, 36. [Google Scholar] [CrossRef]
  6. Yin, Z.; Qi, Y.; Zhang, K.; Zheng, R.; Du, M.; Zhang, Z.; Tian, S.; Liu, Y.; Sun, L.; Wang, Z. Research on integrated positioning and monitoring system of roadheader based on inertial navigation/laser perception. Measurement 2025, 247, 116718. [Google Scholar] [CrossRef]
  7. Ma, Y.; Chen, H.; Yang, W.; Zhang, D.; Chen, H. Pose Detection and Automatic Deviation Correction Control Strategy of Crawler Walking Equipment in Coal Mines. Appl. Sci. 2022, 12, 12072. [Google Scholar] [CrossRef]
  8. Fang, L.; Liu, Z.; Wu, M. Intelligent optimal control considering dynamic posture compensation for a cantilever roadheader. Robotica 2022, 40, 583–598. [Google Scholar] [CrossRef]
  9. Qu, Y.Y.; Cheng, X. Path correction of the boom road-header in coal mining based on state estimation. Math. Probl. Eng. 2019, 2019, 1–13. [Google Scholar] [CrossRef]
  10. Ahmadi, M.; Polotski, V.; Hurteau, R. Path tracking control of tracked vehicles. In Proceedings of the IEEE International Conference on Robotics and Automation, San Francisco, CA, USA, 24–28 April 2000; pp. 2938–2943. [Google Scholar] [CrossRef]
  11. Thueer, T.; Siegwart, R. Mobility Evaluation of Wheeled All-Terrain Robots. Robotics Auton. Syst. 2010, 58, 508–519. [Google Scholar] [CrossRef]
  12. Keiji, N.; Daisuke, E.; Kazuya, Y. Improvement of the odometry accuracy of a crawler vehicle with consideration of slippage. In Proceedings of the 2007 IEEE International Conference on Robotics and Automation, Rome, Italy, 10–14 April 2007; pp. 2752–2757. [Google Scholar] [CrossRef]
  13. Shiller, Z.; Serate, W. Trajectory planning of tracked vehicles. In Proceedings of the IEEE International Conference on Robotics and Automation, Atlanta, GA, USA, 2–6 May 1993; pp. 796–801. [Google Scholar] [CrossRef]
  14. Zhang, M.J.; Cai, X.H.; Lv, F.Y.; Zong, K.; Wu, M. Research on roadheader auto rectification in limited roadway space based on regional grid. Chin. J. Sci. Instrum. 2018, 39, 62–70. [Google Scholar] [CrossRef]
  15. Qu, Y.; Song, L.; Ji, X.; Wu, M. Study on path planning and tracking of the underground mining roadheader. Int. J. Min. Sci. Technol. 2020, 5, 194–202. [Google Scholar] [CrossRef]
  16. Zhang, X.H.; Zhao, J.X.; Yang, W.J.; Zhang, C. Vision-based navigation and directional heading control technologies of boom-type roadheader. J. China Coal Soc. 2021, 46, 2186–2196. [Google Scholar] [CrossRef]
  17. Ling, Y.F. Trajectory Planning During Shield Tunneling Process. Master’s Thesis, Dalian University of Technology, Dalian, China, 2009. [Google Scholar]
  18. Chen, J.S. Research on Intelligentized Control of Driving and Cutting of Caterpillar Roadheader. Master’s Thesis, Xi’an University of Science and Technology, Xi’an, China, 2006. [Google Scholar]
  19. Fan, Z.Y.; Li, L.J.; Li, Y.H.; Lv, H.; Fu, X.H. Fuzzy neural network PID control of valve-controlled hydraulic motor for Camellia Fruit Picking Machine. Chin. Hydraul. Pneum. 2021, 45, 76–85. [Google Scholar]
  20. Jiang, L.; Ye, S.C.; Li, F.L. Research on fault diagnosis of shearer motor based on PSO-BP neural network. Min. Process. Equip. 2020, 48, 59–64. [Google Scholar] [CrossRef]
  21. Wang, H.; Du, H.; Cui, Q.; Song, H. Artificial bee colony algorithm based PID controller for steel stripe deviation control system. Sci. Prog. 2022, 105, 00368504221075188. [Google Scholar] [CrossRef]
  22. Wang, P.; Feng, T.; Song, C.; Li, J.; Yang, S.X. A study of the stability of an industrial robot servo system: PID control based on a hybrid sparrow optimization algorithm. Actuators 2025, 14, 49. [Google Scholar] [CrossRef]
  23. Mao, J.; Dong, Y.F.; Lu, J.N.; Li, Y.Q.; Zhang, H.Y.; Xie, M.; Wu, X.; Liu, Z.X.; Wang, H.; Tian, B. Research status and prospect of advanced technology of roadway excavation cutting and drilling equipment. J. China Coal Soc. 2021, 46, 2084–2099. [Google Scholar] [CrossRef]
  24. Jin, X.; Lü, S.; Yu, J. Adaptive NN-Based Consensus for a Class of Nonlinear Multiagent Systems with Actuator Faults and Faulty Networks. IEEE Trans. Neural Netw. Learn. Syst. 2021, 33, 3474–3486. [Google Scholar] [CrossRef]
  25. Jin, X.; Lü, S.; Qin, J.; Zheng, W.X.; Liu, Q. Adaptive ELM-Based Security Control for a Class of Nonlinear-Interconnected Systems With DoS Attacks. IEEE Trans. Cybern. 2023, 53, 5000–5012. [Google Scholar] [CrossRef]
  26. Zhou, K.P. Study on Crawler Walking Power of EBZ220 Cantilever Roadheader. Coal Mine Mach. 2022, 43, 42–44. [Google Scholar] [CrossRef]
  27. Tang, G.; Lei, J.; Du, H.; Yao, B.; Zhu, W.; Hu, X. Proportional-integral-derivative controller optimization by particle swarm optimization and back propagation neural network for a parallel stabilized platform in marine operations. J. Ocean Eng. Sci. 2025, 10, 1–10. [Google Scholar] [CrossRef]
  28. Zhang, M.J.; Cheng, R.; Zhu, Y.; Zhang, M.; Zang, F.Y.; Wu, M. Study on roadheader rectification running performance and control in the in-cline coalmine roadway. China Coal Soc. 2021, 46, 549–557. [Google Scholar] [CrossRef]
  29. Mulumba, D.M.; Liu, J.; Hao, J.; Zheng, Y.; Liu, H. Application of an Optimized PSO-BP Neural Network to the Assessment and Prediction of Underground Coal Mine Safety Risk Factors. Appl. Sci. 2023, 13, 5317. [Google Scholar] [CrossRef]
  30. Tian, J.; Li, Y.; Zhang, L.; Liu, Z. Adaptive control of temporary support force based on PSO-BP neural network. Ind. Min. Autom. 2023, 49, 67–74. [Google Scholar] [CrossRef]
  31. Tang, X.; Shi, L.; Wang, B.; Cheng, A. Weight Adaptive Path Tracking Control for Autonomous Vehicles Based on PSO-BP Neural Network. Sensors 2023, 23, 412. [Google Scholar] [CrossRef]
  32. Si, R.; Li, J.; Sui, X.; Wang, S.; Wang, Z.; Che, M.; Li, Z. Optimizing the PID Control Algorithm of BP Neural Network Using Particle Swarm Optimization Algorithm. In Proceedings of the 2024 7th International Conference on Intelligent Robotics and Control Engineering (IRCE), Xi'an, China, 7–9 August 2024; IEEE: Piscataway, NJ, USA, 2024; pp. 27–31. [Google Scholar] [CrossRef]
  33. Huang, H.; Qiu, J.; Riedl, K. On the Global Convergence of Particle Swarm Optimization Methods. Appl. Math. Optim. 2023, 88, 30. [Google Scholar] [CrossRef]
  34. Wang, L.; Ye, W.; Zhu, Y.; Yang, F.; Zhou, Y. Optimal Parameters Selection of Back Propagation Algorithm in the Feedforward Neural Network. Eng. Anal. Bound. Elem. 2023, 151, 575–596. [Google Scholar] [CrossRef]
  35. Mao, Q.; Zhang, F.; Zhang, X.; Xue, X.; Wang, L. Deviation correction path planning method of full-width horizontal axis roadheader based on improved particle swarm optimization algorithm. Math. Probl. Eng. 2023, 2023, 3373873. [Google Scholar] [CrossRef]
Figure 1. Full-width horizontal-axis roadheader.
Figure 1. Full-width horizontal-axis roadheader.
Actuators 14 00362 g001
Figure 2. Trajectory error model of roadheader; G—target position; F—real position; MN—preset trajectory.
Figure 2. Trajectory error model of roadheader; G—target position; F—real position; MN—preset trajectory.
Actuators 14 00362 g002
Figure 3. Schematic diagram of the traveling hydraulic system of the roadheader; M1—hydraulic motor; Q—ratio directional valve; E—one-way valve; L—overflow valve; M—electric motor.
Figure 3. Schematic diagram of the traveling hydraulic system of the roadheader; M1—hydraulic motor; Q—ratio directional valve; E—one-way valve; L—overflow valve; M—electric motor.
Actuators 14 00362 g003
Figure 4. The layout of BP.
Figure 4. The layout of BP.
Actuators 14 00362 g004
Figure 5. The full-width horizontal-axis roadheader PID controller structure for PSO-BP.
Figure 5. The full-width horizontal-axis roadheader PID controller structure for PSO-BP.
Actuators 14 00362 g005
Figure 6. Flow diagram of PSO-BP PID.
Figure 6. Flow diagram of PSO-BP PID.
Actuators 14 00362 g006
Figure 7. Simulation model of deviation correction control.
Figure 7. Simulation model of deviation correction control.
Actuators 14 00362 g007
Figure 8. The parameter graph of PSO-BP PID.
Figure 8. The parameter graph of PSO-BP PID.
Actuators 14 00362 g008
Figure 9. Step signal response curve.
Figure 9. Step signal response curve.
Actuators 14 00362 g009
Figure 10. Step signal response error curve.
Figure 10. Step signal response error curve.
Actuators 14 00362 g010
Figure 11. Sinusoidal signal response curve.
Figure 11. Sinusoidal signal response curve.
Actuators 14 00362 g011
Figure 12. Sinusoidal signal response error curve.
Figure 12. Sinusoidal signal response error curve.
Actuators 14 00362 g012
Figure 13. Square wave signal response curve.
Figure 13. Square wave signal response curve.
Actuators 14 00362 g013
Figure 14. Square wave signal response error curve.
Figure 14. Square wave signal response error curve.
Actuators 14 00362 g014
Figure 15. Experimental platform of roadheader.
Figure 15. Experimental platform of roadheader.
Actuators 14 00362 g015
Figure 16. Structural diagram of control system for experimental prototype of roadheader.
Figure 16. Structural diagram of control system for experimental prototype of roadheader.
Actuators 14 00362 g016
Figure 17. Variation curve of deflection angle of roadheader.
Figure 17. Variation curve of deflection angle of roadheader.
Actuators 14 00362 g017
Figure 18. Variation curve of angular velocity of roadheader.
Figure 18. Variation curve of angular velocity of roadheader.
Actuators 14 00362 g018
Table 1. Parameters of roadheader hydraulic system.
Table 1. Parameters of roadheader hydraulic system.
NameUnitValue
Weight   m kg15,000
Proportional valve coil
Inductance   L
H0.1
Proportional valve coil
internal   resistance   R a
Ω12
Proportional valve flow
amplification   factor   K c
m 2 / s 1.4   ×   10 4
Proportional   valve   flow   pressure   coefficient   K q ( m 2 /s)/Pa 2.4   ×   10 4
Load   damping   factor   B m - 4   ×   10 4
Load   spring   stiffness   K kg · s 2 100
Hydraulic   cylinder   chamber   volume   V e m 3 0.001
The effective area of the
piston
m 2 1200
Theoretical   displacement   of   the   motor   V m m 3 /rad 4.7   ×   10 6
Motor   rotation   inertia   J m kg · m 2 1.5   ×   10 3
System effective volume elastic modulus βePa 7   ×   10 8
Density of hydraulic oil kg / m 3 850
Matlab R2018b software was used for the simulation. The roadheader is considered as the simulation target. Its parameters of the hydraulic system are presented in Table 1.
Table 2. The comparative results of three control algorithms.
Table 2. The comparative results of three control algorithms.
Control AlgorithmIncoming SignalSteady-State Response TimeOvershoot
PIDstep signal0.63 s0.242
sinusoidal signal0.23 s0.038
square signal0.77 s0.225
BP-PIDstep signal
sinusoidal signal
square signal
0.40 s
0.13 s
0.37 s
0.097
0.007
0.057
PSO-BP-PIDstep signal0.35 s0.040
sinusoidal signal0.076 s0.004
square signal0.34 s0.029
Table 3. Comparison of experimental results between two control models.
Table 3. Comparison of experimental results between two control models.
Control MethodAverage Rise TimeMaximum Steady-State Error of Deflection AngleMaximum Steady-State Error
of Angular Velocity
BP-PID0.33 s0.39°0.0069 rad/s
PSO-BP-PID0.08 s0.23°0.0038 rad/s
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

Mao, Q.; Chong, S.; Chai, J.; Qin, S.; Zhang, F. Research on Deviation Correction Control Method of Full-Width Horizontal-Axis Roadheader Based on PSO-BP Neural Network PID. Actuators 2025, 14, 362. https://doi.org/10.3390/act14080362

AMA Style

Mao Q, Chong S, Chai J, Qin S, Zhang F. Research on Deviation Correction Control Method of Full-Width Horizontal-Axis Roadheader Based on PSO-BP Neural Network PID. Actuators. 2025; 14(8):362. https://doi.org/10.3390/act14080362

Chicago/Turabian Style

Mao, Qinghua, Shimao Chong, Jianquan Chai, Song Qin, and Fei Zhang. 2025. "Research on Deviation Correction Control Method of Full-Width Horizontal-Axis Roadheader Based on PSO-BP Neural Network PID" Actuators 14, no. 8: 362. https://doi.org/10.3390/act14080362

APA Style

Mao, Q., Chong, S., Chai, J., Qin, S., & Zhang, F. (2025). Research on Deviation Correction Control Method of Full-Width Horizontal-Axis Roadheader Based on PSO-BP Neural Network PID. Actuators, 14(8), 362. https://doi.org/10.3390/act14080362

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