Introduction

The hydraulic support is the primary support device for controlling the stability of surrounding rock in mining areas. The support force and posture of the hydraulic support directly influence the stabilization efficacy of the surrounding rock mass. In recent years, with the rapid development of a new generation of intelligent sensing and automatic control technologies1,2,3, there’s an increasing recognition of the importance of the support posture of the hydraulic support in controlling the surrounding rock. Consequently, the exploration of adaptive control techniques, predicated on the autonomous perception and exact computation of the support’s posture and elevation, has incrementally progressed. However, the efficient and accurate calculation of the support posture and height of the hydraulic support remains an unresolved challenge4. This is also a challenging issue in the development of intelligent equipment for coal mining.

To achieve automatic sensing and precise calculation of the support height and posture of the hydraulic support, existing technology primarily involves installing a tilt sensor on various components of the hydraulic support, such as the canopy, caving shield, connecting rod, base, and tail beam. Subsequently, a height-measuring sensor is positioned at the foremost extremity of the hydraulic support’s canopy. The data from these five sensors are integrated and analyzed to determine the support height and posture of the hydraulic support5,6. Due to the current bottlenecks in intelligent sensing technology, the existing sensing techniques for support posture calculation exhibit several shortcomings:

  1. (1)

    Field measurements indicate that the stability of tilt sensors exhibit substandard stability. Even when the hydraulic support is stationary, there are still unwarranted fluctuations in the readings from the tilt sensors, which is not conducive to data collection.

  2. (2)

    Current inclinometers poorly adapt to scenarios with large angles. Especially when the angle of inclination surpasses 60°, such as on the caving shield, four-link rods, and tail beam of the hydraulic support, the sensing accuracy drops significantly and the data fluctuation range increases noticeably.

  3. (3)

    Given that each hydraulic support requires the installation of five sensors, the location and quality of installation will significantly affect monitoring outcomes. This not only drives up the investment and maintenance costs but also intensifies the maintenance workload.

  4. (4)

    There exists a need to calibrate the time axis for all five sensors. Errors from each sensor can impact calculation results, leading to large accumulated errors. The data processing becomes complex and challenging, resulting in relatively low accuracy in the calculated outcomes.

To heighten the sensing accuracy and accelerate calculation speed of the support posture and height of hydraulic support, domestic and foreign scholars have conducted extensive and in-depth research. In the references7,8, some scholars employed batch estimation methods and adaptive weighting methods to fuse sensory data from multiple tilt sensors. By optimizing the installation position of the tilt sensors, they derived a calculation method for the support posture and height of hydraulic support. However, the results are still affected by the sensing accuracy of multiple tilt sensors and data fluctuations. In the references9,10,11, some scholars utilized machine vision techniques to monitor the support posture and height information of hydraulic support. They constructed an image recognition measurement model for the support posture of hydraulic support and employed Unity3D for simulating the support parameters of hydraulic support, exploring simulation control strategies based on the support posture. However, due to the confined spaces in coal mines, low illumination, and high dust operating environment, it’s challenging for machine vision methods to achieve comprehensive sensing of the support posture of hydraulic support, ensuring both imaging quality and calculation accuracy. Kong et al.12 proposed a sensor optimal placement method based on a discrete particle swarm optimization algorithm for optimizing the placement of sensors in hydraulic control systems. Chen et al.13 developed a multi-sensor fusion-based attitude monitoring system for advanced hydraulic supports in harsh underground environments, achieving high accuracy and stability with minimal root mean square errors in distance, roll angle, and yaw angle measurements. Zhang et al.14 proposed an adaptive sliding mode control method for the hydraulic support pushing mechanism in coal mine backfill operations, significantly improving system stability through decoupling analysis and simulation validation. Jiao et al.15 proposed a digital twin-driven intelligent decision-making method for the self-adjustment of the position and attitude of hydraulic support groups, enabling virtual decision-making and real-time control. In the references16,17,18,19, some scholars employed various filtering and compensation algorithms to analyze the sensing data from tilt sensors, aiming to reduce the impact of data fluctuations on calculation results. They also endeavored to improve the sensing accuracy of tilt sensors in scenarios with large angles. However, the sensing accuracy of tilt sensors is not only influenced by the calculation method but is also constrained by physical components. The issue of irregular fluctuations in the sensing data from tilt sensors remains a challenge that needs to be effectively addressed.

This paper distinguishes itself by addressing the limitations of these existing methods. Based on the structural parameters and kinematic relationships of comprehensive mechanized hydraulic supports, it was determined that at least four tilt sensors and one height-measuring sensor are traditionally required for accurate calculations. To overcome the challenges of sensor limitations, this study introduces a novel algorithm that reduces the number of sensors from five to three by replacing tilt sensors with travel sensors. This algorithm focuses on the movement of front and rear legs and tail beam cylinders, enabling efficient and precise posture and height calculations in real-time. The proposed algorithm reduces data: Reduces data fluctuations and cumulative errors associated with tilt sensors. Lowers investment and maintenance costs. Improves computational efficiency and accuracy by simplifying data fusion. These innovations highlight the study’s unique contributions, setting it apart from existing research. The findings provide theoretical foundations and technical solutions for the precise control of hydraulic supports, advancing intelligent management of mining equipment.

Hydraulic support skeleton model

The hydraulic support is mainly composed of a canopy, a caving shield, a tail beam, lemniscate link, a base, front legs, rear legs, and tail beam cylinders, as shown in Fig. 1. After establishing the model and structural parameters of the hydraulic support based on the requirements for controlling the surrounding rock in the mining area, the posture and height of the hydraulic support are primarily influenced by the travels of the front leg, rear leg, and tail beam cylinder20,21. That is, there exists a one-to-one mapping relationship between the posture and height of the hydraulic support and the travels of the front leg, rear leg, and tail beam cylinder.

Fig. 1
Fig. 1
Full size image

Main structure of the comprehensive mechanized hydraulic support.

The support posture of the hydraulic support can be categorized into relative support posture and absolute support posture. The relative support posture refers to the relative positional relationship between various components of the hydraulic support, while the absolute support posture pertains to the positional relationship of the hydraulic support components relative to the ground’s horizontal reference plane. By monitoring the relative positional relationship between the base of the hydraulic support and the ground’s horizontal plane, the absolute support posture can be derived from the relative posture of the hydraulic support. Therefore, this paper primarily focuses on the algorithm for the relative support posture of the hydraulic support.

Using the upper surface of the hydraulic support’s canopy as a reference plane, vertical projections of the hinge points of the front leg, rear leg, and canopy are made onto the canopy’s upper surface. Furthermore, the hinge point where the canopy and caving shield intersect is also projected vertically onto the canopy’s upper surface. Using the upper surface of the hydraulic support’s caving shield as a reference plane, vertical projections are made for the hinge points of the four-link mechanism, tail beam, and tail beam cylinder onto the caving shield’s upper surface. Furthermore, the hinge point where the canopy and caving shield intersect is also projected vertically onto the caving shield’s upper surface. Using the bottom surface of the base as a reference, vertical projections are made of the hinge points of the front leg, rear leg, and the four-link mechanism onto the bottom surface of the base. These projections construct the skeletal model of the four-leg chock-shielded hydraulic support in comprehensive mechanized mining, as illustrated in Fig. 2.

Fig. 2
Fig. 2
Full size image

Skeleton model of the comprehensive mechanized mining hydraulic support.

To facilitate description, the hinge points of the hydraulic support’s skeletal model are labeled with letters. Specifically: Point A: the hinge point between the front leg and the canopy. Point B: the hinge point between the rear leg and the canopy. Point C: the hinge point between the canopy and the caving shield. Point D: the hinge point between the front link rod and the caving shield. Point E: the hinge point between the rear link rod and the caving shield. Point F: the hinge point between the front leg and the base. Point G: the hinge point between the rear leg and the base. Point H: the hinge point between the front link rod and the base. Point I: the hinge point between the rear link rod and the base. Point J: the hinge point between the tail beam cylinder and the caving shield. Point K: the hinge point between the caving shield and the tail beam. Point L: the hinge point between the tail beam cylinder and the tail beam.

Considering the ZF10000/23/45D type of the four-leg chock-shielded hydraulic support, applied by Henan Energy Chemical Group Co., Ltd., as an example: once the model and structural parameters of the hydraulic support have been determined, there are only three variables for the hydraulic support. Moreover, the support height and support posture of the hydraulic support are solely controlled by these three variables, which are the travel of the front leg, the travel of the rear leg, and the travel of the tail beam cylinder. By surveying and mapping the main structural parameters of the ZF10000/23/45D hydraulic support in the field and constructing its skeletal model using the aforementioned method, a rectangular coordinate system is established for the sake of subsequent analysis and calculation. The projection of the base’s bottom surface onto the coordinate plane serves as the x-axis, and the projection line of point P1 at the front end of the canopy onto the x-axis, when the hydraulic support is at its maximum support height (and the canopy is parallel to the base), serves as the y-axis. The parameters of the hydraulic support’s skeletal model are illustrated in Fig. 3 and Table 1.

Fig. 3
Fig. 3
Full size image

Structural parameters and skeletal model of the ZF10000/23/45D hydraulic support.

Table 1 Skeletal model parameters of the ZF10000/23/45D hydraulic support.

Support posture and height analysis method

Mathematical expression for the algorithm of support posture and height

To facilitate the calculation of the hydraulic support’s posture and height, the following assumptions are made:

  1. (1)

    It is assumed that the hinge points between the various components of the hydraulic support are rigidly connected, the influence of the assembly clearance between the pin shaft and pin hole on the hydraulic support’s posture is neglected.

  2. (2)

    It is assumed that there is no significant deformation of the hydraulic support during the support process, the deformation of the hydraulic support material’s influence on the support posture is disregarded.

  3. (3)

    The support is treated as a plane mechanism.

Existing algorithms primarily employ tilt sensors to monitor the angles of the canopy, caving shield, or four-link mechanism, base, and tail beam. The posture of the hydraulic support is then determined based on the angular relationships between these components. The calculation process involves extensive trigonometric calculations, leading to significant cumulative errors22. Some researchers have attempted to construct a kinematic relationship model of the hydraulic support based on the geometric relationships of its structural components’ movements, aiming to determine the hydraulic support’s support posture. However, since the number of kinematic equations is less than the number of unknown parameters, obtaining an effective analytical solution proves challenging23.

This study introduces an algorithm for calculating the posture and height of hydraulic supports based on a skeletal model and its geometric parameters. The algorithm utilizes a system of equations derived from the distance relationships among the coordinates of various hinge points in the model. By computing these coordinates, the hydraulic support’s posture and height are accurately determined. This method not only reduces the need for multiple sensors but also minimizes computational errors common in trigonometric solutions. For the ZF10000/23/45D hydraulic support model, the coordinate position relationship equations for each hinge point are established based on their distance relationships.

$$\left\{\begin{array}{c}{({x}_{1}-{f}_{1})}^{2}+{({y}_{1}-{f}_{2})}^{2}={l}_{1}^{2}\\ {({x}_{2}-{g}_{1})}^{2}+{({y}_{2}-{g}_{2})}^{2}={l}_{2}^{2}\\ {({x}_{1}-{x}_{2})}^{2}+{({y}_{1}-{y}_{2})}^{2}={l}_{3}^{2}\\ {({x}_{2}-{x}_{3})}^{2}+{({y}_{2}-{y}_{3})}^{2}={l}_{4}^{2}\\ {({x}_{1}-{x}_{3})}^{2}+{({y}_{1}-{y}_{3})}^{2}={l}_{5}^{2}\\ {({x}_{3}-{x}_{4})}^{2}+{({y}_{3}-{y}_{4})}^{2}={l}_{6}^{2}\\ {({x}_{4}-{x}_{5})}^{2}+{({y}_{4}-{y}_{5})}^{2}={l}_{7}^{2}\\ {({x}_{3}-{x}_{5})}^{2}+{({y}_{3}-{y}_{5})}^{2}={l}_{8}^{2}\\ {({x}_{4}-{h}_{1})}^{2}+{({y}_{4}-{h}_{2})}^{2}={l}_{9}^{2}\\ {\left({x}_{5}-{i}_{1}\right)}^{2}+{\left({y}_{5}-{i}_{2}\right)}^{2}={l}_{10}^{2}\\ {\left({x}_{7}-{x}_{3}\right)}^{2}+{\left({y}_{7}-{y}_{3}\right)}^{2}={l}_{11}^{2}\\ {\left({x}_{7}-{x}_{5}\right)}^{2}+{\left({y}_{7}-{y}_{5}\right)}^{2}={l}_{12}^{2}\\ {\left({x}_{6}-{x}_{3}\right)}^{2}+{\left({y}_{6}-{y}_{3}\right)}^{2}={l}_{13}^{2}\\ {({x}_{6}-{x}_{4})}^{2}+{\left({y}_{6}-{y}_{4}\right)}^{2}={l}_{14}^{2}\end{array}\right.$$
(1)

In the equation, (\({x}_{1}\),\({y}_{1}\)), (\({x}_{2}\),\({y}_{2}\)), ……, (\({x}_{7}\),\({y}_{7}\)) are the coordinate values for points A, B, C, D, E, J, and K, respectively. The coordinate values vary with the travels of the front and rear legs. (\({f}_{1}\),\({f}_{2}\)), (\({g}_{1}\),\({g}_{2}\)), (\({h}_{1}\),\({h}_{2}\)), (\({i}_{1}\),\({i}_{2}\)) are the fixed known coordinate values for points F, G, H, and I, respectively.

Based on the field monitoring results, by substituting the front leg travel value (\({l}_{1}\)) and the rear leg travel value (\({l}_{2}\)) into Eq. (1), the coordinates of points A, B, C, D, E, J, and K can be determined.

By independently analyzing the canopy skeletal model of the hydraulic support and considering the structural design requirements of the hydraulic support, there are potentially two scenarios regarding the vertical distance from the hinge points of the front leg, rear leg, and canopy to the upper surface of the canopy, as shown in Fig. 4.

Fig. 4
Fig. 4
Full size image

Different support states of the hydraulic support’s canopy.

(1) If \({l}_{16}\ge {l}_{15}\), the canopy state of the hydraulic support can be divided into the following three situations, as shown in Fig. 4(a).

Case 1: The vertical coordinate value of point A is not less than the vertical coordinate value of point B (\({y}_{1}\ge {y}_{2}\)). In this scenario, the canopy of the hydraulic support presents a significant “high angle” state. Based on the geometric relationship between the coordinates, the inclination angle α of the canopy relative to the base can be determined:

$$\alpha =arctan\frac{{y}_{1}-{y}_{2}}{{x}_{2}-{x}_{1}}+arcsin\frac{{l}_{16}-{l}_{15}}{{l}_{3}}$$
(2)

Case 2: The vertical coordinate value of point A is less than the vertical coordinate value of point B (\({y}_{1}<{y}_{2}\)), and \({y}_{1}-{y}_{2}\le {l}_{16}-{l}_{15}\), In this scenario, the canopy of the hydraulic support presents a slight “high angle” state, or the canopy is parallel to the base. The inclination angle α of the canopy relative to the base is determined as:

$$\alpha =arcsin\frac{{l}_{16}-{l}_{15}}{{l}_{3}}-arctan\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}$$
(3)

Case 3: The vertical coordinate value of point A is less than the vertical coordinate value of point B (\({y}_{1}<{y}_{2}\)), and \({y}_{1}-{y}_{2}>{l}_{16}-{l}_{15}\). In this scenario, the canopy of the hydraulic support presents a “downtilt” state. The inclination angle α of the canopy relative to the base is determined as:

$$\alpha ={90}^{\circ}-arctan\frac{{x}_{2}-{x}_{1}}{{y}_{2}-{y}_{1}}-arcsin\frac{{l}_{16}-{l}_{15}}{{l}_{3}}$$
(4)

(2) If \({l}_{16}<{l}_{15}\), the canopy state of the hydraulic support can be divided into the following three situations, as shown in Fig. 4(b).

Case 1: The vertical coordinate value of point A is greater than the vertical coordinate value of point B (\({y}_{1}>{y}_{2}\)), and \({y}_{1}-{y}_{2}\ge {l}_{15}-{l}_{16}\). In this scenario, the canopy of the hydraulic support presents a “high angle” state, or the canopy is parallel to the base. Based on the geometric relationship between the coordinates, the inclination angle α of the canopy relative to the base can be determined:

$$\alpha ={90}^{\circ}-arctan\frac{{x}_{2}-{x}_{1}}{{y}_{1}-{y}_{2}}-arcsin\frac{{l}_{15}-{l}_{16}}{{l}_{3}}$$
(5)

Case 2: The vertical coordinate value of point A is greater than the vertical coordinate value of point B (\({y}_{1}>{y}_{2}\)), and \({y}_{1}-{y}_{2}<{l}_{15}-{l}_{16}\). In this scenario, the canopy of the hydraulic support presents a slight “downtilt” state. The inclination angle α of the canopy relative to the base is determined as:

$$\alpha =arcsin\frac{{l}_{15}-{l}_{16}}{{l}_{3}}-arctan\frac{{y}_{1}-{y}_{2}}{{x}_{2}-{x}_{1}}$$
(6)

Case 3: The vertical coordinate value of point A is less than or equal to the vertical coordinate value of point B (\({y}_{1}\le {y}_{2}\)). In this scenario, the canopy of the hydraulic support presents a “downtilt” state. The inclination angle α of the canopy relative to the base is determined as:

$$\alpha =arctan\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}+arcsin\frac{{l}_{15}-{l}_{16}}{{l}_{3}}$$
(7)

By jointly analyzing the skeletal model of the caving shield, four-link mechanism, base, and tail beam of the hydraulic support, as shown in Fig. 5. According to the coordinates of points D and E, we can derive the expression for the angle \(\upbeta\) between the caving shield and the negative direction of the x-axis. Based on the coordinates of points D and H, we can determine the expression for the angle \(\upgamma\) between the front linkage and the positive direction of the x-axis. By analyzing the coordinates of points E and I, we can calculate the angle \(\updelta\) between the rear linkage and the positive direction of the x-axis, as follows:

Fig. 5
Fig. 5
Full size image

Skeletal model of the caving shield, four-link mechanism, and base.

$$\left\{\begin{array}{c}\beta ={90}^{\circ}-(arctan\frac{{x}_{5}-{x}_{4}}{{y}_{4}-{y}_{5}}+arcsin\frac{{l}_{17}-{l}_{18}}{{l}_{7}})\\ \gamma =arctan\frac{{y}_{4}-{h}_{2}}{{x}_{4}-{h}_{1}}\\ \delta =arctan\frac{{y}_{5}-{i}_{2}}{{x}_{5}-{i}_{1}}\end{array}\right.$$
(8)

Given the coordinates of points J and K, and the travel of the tail beam cylinder \({l}_{19}\), which can be obtained from field measurements, the angle φ between the tail beam and the negative direction of the x-axis can be calculated.

$$\varphi =90-(\uptheta +\text{arccos}\frac{{l}_{20}^{2}+{l}_{21}^{2}-{l}_{19}^{2}}{2\cdot {l}_{20}\cdot {l}_{21}}-arctan\frac{{x}_{7}-{x}_{6}}{{y}_{7}-{y}_{6}})$$
(9)

Based on the coordinates of points P1, P2, and A, the protective height (Hc) of the front end of the hydraulic support canopy can be calculated. Specifically, this refers to the vertical projection distance from the front end of the canopy at point P1 to the bottom surface of the base. The calculation primarily involves three scenarios:

Case 1: The canopy exhibits a “high angle” position or the canopy is parallel to the base (\(\alpha \ge 0\)):

$${H}_{c}={l}_{22}\times sin\alpha +{l}_{16}\times cos\alpha +{y}_{1}$$
(10)

Case 2: The chock beam exhibits a “downtilt” status (\(\alpha \ge 0\)) and \(\left|\alpha \right|\le \tau\):

$${H}_{c}={y}_{1}-{l}_{22}\times \text{sin}\left(-\alpha \right)+{l}_{16}\times cos\tau$$
(11)

Case 3: The chock beam exhibits a “downtilt” status (\(\alpha \ge 0\)) and \(\left|\alpha \right|>\uptau\):

$${H}_{c}={y}_{1}-{l}_{16}/\text{sin}(-\alpha )\times \text{sin}(-\alpha -\tau )$$
(12)

From the analysis above, we can deduce that based on the stroke lengths of the front and rear legs, and the geometric relationship of the hydraulic support, the coordinates of each hinge point of the hydraulic support can be determined. Further, by utilizing the stroke length of the tail beam cylinder and the hydraulic support’s geometric relationship, a mathematical representation of the hydraulic support’s posture and height can be derived.

Solution based on the Newton–Raphson method

Based on the stroke of the hydraulic support’s front leg, the stroke of the rear leg, the stroke of the tail beam cylinder, and the geometric relationship, we obtained the mathematical expression for the posture and height of the hydraulic support. However, it is challenging to solve the coordinates of each pivot point of the hydraulic support using a multivariate polynomial equation system. Consequently, we adopted the Newton–Raphson method24,25 for the computation. The aforementioned Eq. (1) is represented by the vector function \(F(x)\) and expanded at the point \({x}^{(k)}\) using the Taylor series. To simplify the equation system’s solution process, only the linear part of the Taylor series expansion is considered, as follows:

$$F\left(x\right)=\left\{\begin{array}{c}{f}_{1}\left({x}_{1},{x}_{2},\dots ,{x}_{12}\right)=0\\ \vdots \\ {f}_{12}\left({x}_{1},{x}_{2},\dots ,{x}_{12}\right)=0\end{array}\right.$$
(13)
$$F\left(x\right)\approx F\left({x}^{\left(k\right)}\right)+{F}^{\prime}({x}^{\left(k\right)})(x-{x}^{(k)})$$
(14)

where, \({F}^{\prime}\left(x\right)\) is the Jacobian matrix of \(F(x)\), as follows:

$${F}^{\prime}\left(x\right)=\left(\begin{array}{ccc}\frac{\partial {f}_{1}(x)}{\partial {x}_{1}}& \cdots & \frac{\partial {f}_{1}(x)}{\partial {x}_{12}}\\ \vdots & \cdots & \vdots \\ \frac{\partial {f}_{12}(x)}{\partial {x}_{1}}& \cdots & \frac{\partial {f}_{12}(x)}{\partial {x}_{12}}\end{array}\right)$$
(15)

Based on the structural parameters and the operational height range of the hydraulic support, the coordinate values of points A, B, C, D, E, J, and K can be determined as the constraint conditions for the equation set. It can be proven that the equation set converges within this interval, implying the existence of a unique analytical solution. The iterative solution process is as follows:

$${x}^{(k+1)}={x}^{(k)}-{F}^{\prime}{\left({x}^{\left(k\right)}\right)}^{-1}F({x}^{(k)})$$
(16)

For convenience in obtaining the initial iteration parameters \({x}^{(0)}\), one can take the coordinates of each point obtained when the hydraulic support is at its highest support position in the coordinate system shown in Fig. 3 as the initial parameters \({x}^{(0)}\). Based on the actual support requirements of the field working face, the support posture error of the hydraulic support should be less than 2°, and the support height error should be less than 0.1 m. Therefore, the termination condition \(\varepsilon\) for iteration can be determined as:

$$\frac{\Vert {x}^{(k+1)}-{x}^{(k)}\Vert }{{x}^{(k)}}<\varepsilon$$
(17)

To facilitate the calculation of the support posture and height of the hydraulic support, an algorithm based on the Newton–Raphson method was developed using Python software. This algorithm was tested and verified on the ZF10000/23/45D hydraulic support to analyze the calculation precision and speed. The front leg travel of the hydraulic support was adjusted to 1837 mm, the rear hydraulic leg travel to 1811.7 mm, and the tail beam cylinder travel to 873.7 mm. The actual state of the hydraulic support’s skeletal model is shown in Fig. 6. The above algorithm ran on a computer with a Win10 system, i7-7700 processor, and 32 GB RAM, and the calculation results are shown in Table 2.

Fig. 6
Fig. 6
Full size image

Actual support posture of the hydraulic support.

Table 2 Results from the Newton–Raphson method.

After analyzing the computation results, it was observed that the deviation of the computed hydraulic support posture from the skeletal model’s measured value was only 0.58°. The discrepancy between the computed support height and the measured value from the skeletal model was only 1.6 mm. The computation process took only 0.89 s. This implies that the hydraulic legosed computation algorithm is both accurate and efficient, meeting the precision requirements of field engineering applications.

Solution based on the Secant method

The Newton–Raphson method requires the computation of the Jacobian matrix \({F}^{\prime}\left(x\right)\) for the system of equations. To reduce the need for differentiating the system of equations, the Jacobian matrix \({F}^{\prime}\left(x\right)\) in the Taylor expansion can be replaced by finite differences26,27. This leads to a modification of Eq. (14) as follows:

$$F\left(x\right)\approx F\left({x}^{\left(k\right)}\right)+\frac{F\left({x}^{\left(k\right)}\right)-F\left({x}^{\left(k-1\right)}\right)}{{x}^{\left(k\right)}-{x}^{\left(k-1\right)}}(x-{x}^{(k)})$$
(18)

Consequently, the solution method for the posture of the hydraulic support based on the Secant method can be established as follows:

$${x}^{(k+1)}={x}^{(k)}-{\left(\frac{F\left({x}^{\left(k\right)}\right)-F\left({x}^{\left(k-1\right)}\right)}{{x}^{\left(k\right)}-{x}^{\left(k-1\right)}}\right)}^{-1}F\left({x}^{\left(k\right)}\right)$$
(19)

The Secant method based solution algorithm for the posture and height of the hydraulic support was developed using the Python software. The algorithm was run on the same computer, employing the following stroke values: 1837 mm for the front hydraulic leg, 1811.7 mm for the rear hydraulic leg, and 873.7 mm for the tail beam cylinder. The solution outcomes and computation speed of the Secant method are shown in Table 3.

Table 3 Results of the Secant method solution.

After analyzing the computed results, it’s clear that the outcomes from the Secant method closely match those from the Newton–Raphson method, meeting the accuracy needs for field engineering applications. However, the computational duration of approximately 13.57 s limits the solution’s efficiency, posing challenges for real-time calculations.

Solutions based on the Broyden method

To avoid the derivation of the Jacobian matrix \({F}^{\prime}\left(x\right)\) n the Newton–Raphson method, a constant matrix Ak can be constructed to replace the Jacobian matrix \({F}^{\prime}\left(x\right)\), as follows:

$${x}^{(k)}={x}^{(k-1)}-{\left({A}_{k}\right)}^{-1}F({x}^{(k-1)})$$
(20)

Let \({s}^{(k)}={x}^{(k)}-{x}^{(k-1)}\) and \({y}^{(k)}=F\left({x}^{\left(k\right)}\right)-F\left({x}^{\left(k-1\right)}\right)\), then:

$${A}_{k}{s}^{(k)}={y}^{(k)}$$
(21)

Based on the Sherman-Morrison formula28,29, the inverse of the matrix \({A}_{k}\) can be obtained as follows:

$${A}_{k}^{-1}={A}_{k-1}^{-1}+\frac{({s}^{\left(k\right)}-{A}_{k-1}^{-1}{y}^{(k)}){s}^{\left(k\right)T}{A}_{k-1}^{-1}}{{s}^{\left(k\right)T}{A}_{k-1}^{-1}{y}^{(k)}}$$
(22)

The iterative solution process based on the above relationship is determined as follows:

$${x}^{(k+1)}={x}^{(k)}-{A}_{k}^{-1}F({x}^{(k)})$$
(23)

A software program was developed using Python to implement the Broyden method for solving the posture and height of the comprehensive mechanized mining hydraulic support system. The program was executed on the same computer with the same input values for the front leg stroke, rear leg stroke, and tail beam cylinder stroke (1837 mm, 1811.7 mm, and 873.7 mm, respectively). The results obtained using Broyden method and the computation speed are presented in Table 4.

Table 4 Results of the Broyden method calculation.

After analyzing the calculation results, it was found that the solutions obtained using Broyden method are essentially the same as those using the Newton–Raphson method. They meet the precision requirements for field engineering calculations. However, the calculation process took about 4.83 s, making its efficiency lower than the Newton–Raphson method but slightly higher than the Secant method.

Results and discussion

Field measurement analysis

To validate the robustness and reliability of the described comprehensive methods for determining the posture and height of the hydraulic support, and to assess the effect of the gaps between pinholes and pin shafts on the calculation results, an field measurement analysis of the ZF10000/23/45D hydraulic support was carried out in the manufacturing workshop of Ningxia Tiandi Support Co., Ltd. The strokes of the front leg, rear leg, and tail beam cylinders of the hydraulic support were adjusted. Consequently, the hydraulic support was positioned such that the canopy was essentially parallel to the base, in a “high angle” position, and in a “downtilt” position, as depicted in Fig. 7.

Fig. 7
Fig. 7
Full size image

Field measurement of hydraulic support in different support positions.

External tension sensors measured the travels of the front leg, rear leg, and tail beam cylinder of the hydraulic support, facilitating the calculation of its posture and height. Fix both ends of the sensor to the fixed section and the movable section of the leg, respectively, to measure the elongation of the leg. Additionally, an angle measuring instrument assessed the angles of the canopy, protective beam, front linkage, rear linkage, and tail beam in relation to the base. For vertical distance measurements from the front end of the canopy to the base’s bottom surface, a laser rangefinder was employed. A comparison between theoretical calculations and actual field measurements is presented in Fig. 8.

Fig. 8
Fig. 8
Full size image

Calculation results of different support states of the hydraulic support.

Through the analysis of the calculation results, it was found that all three algorithms demonstrate high precision in determining the support posture and height of the hydraulic support. Each of the three algorithms exhibited good robustness and stability. The measurements indicate that the assembly gap between the pin shaft and pinhole of the hydraulic support has little impact on the calculation results, and it meets the precision requisites for field engineering. Among the three algorithms, the Newton–Raphson method has the highest calculation speed, with an average computation time of less than 1 s, satisfying the field engineering requirements for calculation speed.

Analysis of the impact of initial parameters

Through the analysis of the solution principles of the three algorithms, it was found that the initial coordinate parameters \({x}^{(0)}\) in the solving process of Eq. (1) might affect the calculation precision and speed. Therefore, three sets of initial coordinate parameters were selected: For the first set (\({x}^{(0-1)}\)), the initial coordinates were chosen randomly, but it should be ensured that Eq. (13) is differentiable. For the second set (\({x}^{(0-2)}\)), the initial coordinates corresponded to the hydraulic support at a support height of 4.2 m. For the third set (\({x}^{(0-3)}\)), the initial coordinates were from the hydraulic support at its lowest support height. The stroke values for the front and rear legs, as well as the tail beam cylinder, were still chosen based on the three sets of field measurements. The results of the calculations are shown in Table 5.

Table 5 Calculation results for different initial coordinate parameters.

By analyzing the calculation results of different initial coordinate parameters, it was found that the selection of initial coordinate parameter values influences both the computational accuracy and velocity. For the first set (\({x}^{(0-1)}\)), where initial coordinates were chosen randomly, the selected values were quite different from the final calculated coordinates. Furthermore, there was no correlation between various coordinate points, leading to a significant decrease in both precision and speed of the Newton–Raphson method. The Secant method and Broyden method both experienced calculation errors and memory overflow, failing to produce valid analytical solutions. For the second (\({x}^{(0-2)}\)) and third (\({x}^{(0-3)}\)) sets, where initial coordinates corresponded to the actual coordinates of the hydraulic support in its highest and lowest support states respectively, the results obtained from both initial coordinate sets were basically the same. The results from all three algorithms were consistent, though there was a noticeable difference in calculation speed. Since the gap between the third set (\({x}^{(0-3)}\)) initial coordinates and the final target coordinate values was smaller, it achieved the fastest calculation speed.

Comparative analysis of calculation methods

The Newton–Raphson method, the Secant method, and the Broyden method were used to calculate the coordinate values of the hinge points of the main components of the integrated hydraulic support. Based on the mathematical expressions for the support posture and height of the hydraulic support, the angles between the canopy, protective beam, front linkage, rear linkage, tail beam, and base, as well as the support height from the front end of the canopy to the bottom surface of the base, were derived. A comparative analysis of the three algorithms indicated that the Newton–Raphson method exhibited the superior robustness and stability. Even when initial coordinates were chosen randomly, it still produced results in a relatively short time. When the initial coordinates were set to the actual values at the maximum or minimum support heights of hydraulic support, the results from all three algorithms were nearly indistinguishable, underscoring high precision in calculations. However, noticeable differences existed in the calculation speeds, as illustrated in Fig. 9.

Fig. 9
Fig. 9
Full size image

Comparative analysis results of calculation speeds.

The comparative analysis of the three algorithms clearly indicates that the Newton–Raphson method achieves the fastest calculation speed. Specifically, when initial coordinates correspond to actual values at the hydraulic support’s extremal heights, the method completes calculations in less than 1 s. In contrast, the Secant method, while generally slower and less stable, can occasionally achieve faster calculation speeds. The Broyden method, on the other hand, operates more quickly than the Secant method but does not equal the Newton–Raphson method in speed. The analysis identifies two major factors affecting calculation speed: the number of iterations and the duration of each iteration. The random selection of initial coordinate values often requires numerous iterative calculations to approximate the solution coordinates to the target coordinates closely. Field measurements of the hydraulic support’s three operational statuses, being closer to the minimum height, require fewer iterations. Consequently, setting initial coordinates at the minimum support height enhances iteration speed compared to using the maximum support height. Nevertheless, for practical field engineering applications, it is advisable to select initial coordinates within the range of heights most frequently utilized by the hydraulic support.

The comparative analysis underscores the superiority of the Newton–Raphson method over the other two methods in calculating the posture and height of hydraulic supports. It demonstrates enhanced robustness, stability, and a faster computation speed. Consequently, the Newton–Raphson method has been selected as the preferred calculation approach for determining the posture and height of hydraulic supports. To reduce the computational iterations, it is recommended to choose a support posture that falls within the actual mining height range of the working face. Utilizing the coordinate values from this specific posture as the initial parameters can significantly enhance calculation efficiency.

The algorithm introduced in this paper calculates the hydraulic support’s posture and height based on the strokes of the hydraulic legs and tail beam cylinders. This approach not only reduces the number of required sensors but also guarantees stable monitoring values, as the strokes typically exhibit minimal fluctuation. Employing the Newton–Raphson method to determine the main structure’s coordinate values effectively minimizes cumulative errors from trigonometric calculations. This provides a new approach for monitoring the support posture and height of hydraulic support.

While the proposed method offers significant advantages in speed and stability, future research will focus on optimizing the algorithm to enhance its adaptability to complex mining environments. For instance, in conditions with dust interference, low light, or extreme temperatures, sensor performance can be further validated and improved. Advanced data fusion techniques could be explored to integrate multiple sensor inputs, including machine vision or infrared sensing, for more comprehensive posture monitoring. Additionally, extending the algorithm to handle dynamic changes in support posture and real-time load adjustments will further strengthen its applicability in highly variable mining conditions. Future work will also explore the integration of digital twins to simulate and validate the algorithm in diverse operational scenarios, offering theoretical and practical advancements for intelligent mining systems.

Conclusions

  1. (1)

    The stroke values of the hydraulic legs and tail beam cylinders of the hydraulic support have a unique mapping relationship with the support posture. By extracting the skeletal structure parameter model of the hydraulic support, a method for calculating the support posture and height of the hydraulic support based on the hydraulic leg stroke and tail beam cylinder stroke is proposed. This yields the mathematical expressions for the angles between the hydraulic support’s canopy, protective beam, connecting rods, tail beam, and base, as well as the method for calculating the support height at the front end of the canopy.

  2. (2)

    Algorithms based on the Newton–Raphson method, Secant method, and Broyden method for solving the support posture and height of the hydraulic support have been developed. When an appropriate initial coordinate parameter \({x}^{(0)}\) is selected, all three algorithms have high accuracy in solving the support posture and height of the hydraulic support. However, the Newton–Raphson method exhibits better robustness and reliability than the other two algorithms and has a faster solution speed.

  3. (3)

    The initial coordinate parameter \({x}^{(0)}\) can affect the iteration path and the number of iterations during the solution process, thereby influencing the accuracy and speed of the algorithm. The initial coordinate parameter \({x}^{(0)}\) should be selected as the real coordinate values of the support posture that the hydraulic support uses most frequently during the mining process. This can effectively reduce the number of iterations and improve the solution accuracy and speed.

  4. (4)

    The Newton–Raphson method-based algorithm has better accuracy, speed, robustness, and stability than the other two algorithms. It also has a stronger adaptability to the initial coordinate parameter \({x}^{(0)}\). The deviation between the calculated support posture and the actual value is less than 1°, and the deviation in support height is less than 50 mm. The single solution time does not exceed 1 s, which can meet the engineering requirements of coal mine sites.