Attitude Optimization Control of Unmanned Helicopter in Coal Mine Using Membrane Computing

Unmanned helicopter for mission inspection has good application value in intelligent coal mining, and attitude control is important. In this paper, membrane computing is introduced to realize attitude optimization control of an unmanned helicopter. First, we give the application scenarios of unmanned helicopters in coal mines. Secondly, we establish a dynamic model of an unmanned helicopter with environmental participation, and the attitude model of the helicopter is deduced based on this model. Further, the cellular membrane system suitable for the attitude model of an unmanned helicopter under the control parameters of environment mapping is constructed, and the cellular membrane controller based on the characteristics and operation rules of the membrane system is designed. ,e robust performance of the controller is proved theoretically, and by the semiphysical experiments, the performance of trajectory tracking is almost consistent and attitude angle control is less than ±1°, in the range of ±2° by wind disturbance. Compared with the linear feedback controller in the same experimental environment, the performance of the membrane controller is improved by nearly 0.4026 on average. It shows that the cellular membrane controller constructed has good effectiveness and robustness.,is will provide a good application value for membrane computing in the field of accurate coal mining.

Aiming at the characteristics of the underactuated system of an unmanned helicopter, especially in the aspect of controller design and optimization, domestic and foreign scholars and scientific research institutions have done a lot of theoretical research and practical exploration, and many relevant control theories and methods proposed have been applied and good research results have been obtained. For example, traditional control methods such as PID control [3], H ∞ control [4], and LQR control [5,6] have been proposed and applied successively. e authors in [7,8] used the adaptive method to improve the helicopter attitude control. Oktay et al. [9] proposed a stochastic optimization method to improve the autonomous performance of the helicopter extent. e attitude control and position tracking of an unmanned helicopter by nonlinear control algorithms have been studied in [10,11]. e authors in [12,13] used backstepping control theory, neural network [14,15], and reinforcement learning [16,17] to design the attitude controller of an unmanned helicopter. e constraint model predictive control through physical modeling was done in [18]. e authors in [19][20][21] achieved good results in improving the helicopter flight performance through power consumption, cost, and other aspects. e above control algorithms and control strategies are concentrated on linear and nonlinear control and intelligent control [22,23], and both have good performance in terms of control performance and control effect. However, there is still room for improvement in terms of uncertain control stability or external disturbances, especially in the complex environment of the coal mine; in view of the complex dynamic characteristics of the unmanned helicopter, it is necessary to establish an accurate mathematical model suitable for the underground environment, build a controller model suitable for the underground environment of the coal mine, and apply an effective matching algorithm. It is a challenging research topic.
Membrane computing is inspired by the structure and function of biological cells. It is a new branch of natural computing. It abstracts the structure and function of cells into formal processes and fuses each process. erefore, a new computing mode under membrane computing is generated. Membrane computing was proposed by Pȃun in 1998, who is the member of the Romanian Academy of Sciences and the European Academy of Sciences [24]. Membrane computing is closely built around the construction of a membrane computing model, which is compared with the standard model. In terms of theoretical research, it analyzes the generality of calculation and compares the calculation efficiency and calculation ability of the model. In the aspect of application research, practical application problems are solved by applying a membrane algorithm [25]. e cellular membrane system model has a clear structure, good hierarchy, and feature distributed and parallel computing. e collection and operation (evolution) rules of the representation objects are flexible, and the membrane algorithm under the system has powerful optimization capabilities; with the universality of Turing machines and the efficiency of computing power, it has its own advantages in the field of optimal control. In this paper, the optimal control of the helicopter attitude is achieved by better using membrane computing. e main contributions are as follows: (1) e unmanned helicopter is applied to coal mines for mission inspection. (2) Analyzing the complex environment under the coal mines that is used as an application scenario to implement helicopter attitude modeling. (3) Combining the motion characteristics of the helicopter, the cellular membrane system is constructed and the attitude membrane controller is designed. rough theoretical analysis and experimental verification, the feasibility, effectiveness, and stability of the cellular membrane system for helicopter attitude control are proved. (4) Membrane computing has been expanded in theoretical research, and it has provided new ideas for the precise mining engineering practice of coal mines. e rest of this paper is organized as follows: Section 2 describes the application scenarios of unmanned helicopters in the coal mine. e method and modeling of unmanned helicopter attitude control under membrane computing are described in Section 3, and the stability analysis is given in theory. In Section 4, the feasibility of the membrane controller is verified through an experimental platform, and it was compared with the linear feedback control to further prove the effectiveness and stability of the membrane controller. Finally, in Section 5, conclusion and future work are presented.

Application Scenario of an Unmanned Helicopter in Coal Mines
Unmanned helicopter has a wide range of applications and can be applied to agriculture, detection, power inspection, environmental testing, road inspection, and other fields. However, in the coal mines, the application is in infancy. After all, the high level of intelligence required for coal mining is the prerequisite for intelligent coal mining. Robots have played an important role [26]. However, realizing the coal mines' mission inspection with dust, humidity, and wind, an unmanned helicopter has more advantages than a robot, especially in the aftermath of a coal mine disaster, the search and rescue capabilities of a robot are at least far worse than a helicopter. erefore, the application of a helicopter in coal mines has good development prospects, and the specific application scenario is shown in Figure 1. e structure of a coal mine can be divided into a roadway model and a working face model; the working environment of unmanned helicopters engaged in mission inspection is divided into normal and postdisaster environments, and the postdisaster working environment changes randomly. erefore, the unmanned helicopter's coal mine inspection process goes through three main stages: underground environment representation, identification, and decision-making. e specific characteristics are as follows: (1) Constructing a contextual representation based on the characteristics of the coal mine system. (2) Based on the perception of the environment by an unmanned helicopter, this paper uses a lidar and depth camera and the depth camera includes inertial sensors. It is that the establishment of a mathematical model of the underground environment of coal mines is the basis for autonomous decision-making of unmanned helicopters. While satisfying the above characteristics, it should also have the following: (l) Real-time scenes of the coal mines.
(2) Data (parameters) collection, processing, and analysis. Unmanned helicopters must have their own recognition and perception of the flying environment when flying under the coal mine, whether it is the inspection under normal circumstances or search and rescue after the disaster, and the helicopter itself is relied upon to complete the environmental modeling process, including data collection and processing. e designed membrane algorithm and necessary airborne computers and various sensors such as lidar and depth camera are utilized, and the specific equipment and parameters are shown in Table 1. erefore, only the unmanned helicopter modeling in line with the coal mine environment can ensure the flight performance and safety of the helicopter and better complete the various mission inspection of the unmanned helicopter.

Attitude Dynamics Model.
Establishing the correct coordinate system and the conversion relationship between the coordinate systems are the premises of characterizing the movement state of the unmanned helicopter. To achieve attitude control of an unmanned helicopter in a nonlinear system, the attitude angle needs to be controlled, that is, three Euler angles (φ, θ, and ψ) relative to the ground coordinate system (O-X E Y E Z E ). To achieve the purpose of controlling the tilt angle and the deflection angle of the unmanned helicopter relative to the ground coordinate system, it is necessary to ensure the correctness of the conversion relationship between the body coordinate system (O-XYZ) and the ground coordinate system, as shown in Figure 2 [27]. Each of the three Euler angle rotates around an axis, that is, the corresponding pitch angle θ, roll angle φ, and yaw angle ψ. In Figure 2, the projection of the rotational angular velocity on the body axis is p, q, and r and the projection of the helicopter velocity on the body axis is u, v, and w. Marks υ and w represent the coordinate vectors of linear velocity and angular velocity in the ground coordinate system, respectively, and the vectors of w in the body coordinate system are represented as [28] where u is the OX axis speed, υ is the OY axis speed, w is the . axis speed, p is the OX axis angular velocity, q is the OY axis angular velocity, and r is the OZ axis angular velocity.
functions sin(t) and cos(t), t ∈ φ θ ϕ . In the ground coordinate system, the position, attitude, and translation motion of the helicopter are inferred; marking the helicopter center of gravity position _ p � [p x , p y , p z ], the dynamic equations of the helicopter position and speed in the ground coordinate system can be obtained: where f B is the external force and R ∈ SO (3). Combined with the derivative of the rotation matrix, we can get where ω B � p q r T and I is the inertia matrix. To simplify the design strategy and ignore the influence of tail thrust, the helicopter is affected by the main rotor and gravity, and the mechanical vector is e torque vector generated by the force and rotor moment in formula (7) is where [x m , y m , z m ] is the main rotor position vector and [x t , y t , z t ] is the tail rotor position vector. From formulas (7) and (8), the helicopter attitude dynamics equation is as follows: where Q M is the reaction moment of the rotor and T M is the rotor thrust vector.

Numerical Cell Membrane System
Design. e cellular membrane system is a kind of numerical membrane systems with a layered membrane structure and a distributed parallel computing model [29]. Considering the characteristics of unmanned helicopter parameters, the definition degree is m(m ≥ 1).
In formula (11), f t,i (x 1,i , . . . , x k i ,i ) is the generation rule of value, n i is the number of variables in the allocation rule of participating values in membrane i, k i is the number of variables executed by the generation rule of all values in membrane i,υ 1 ∼υ n is the variable distribution object, λ 1 ∼λ n is the distribution proportion coefficient of value, and λ t,1 | υ 1 + λ t,2 | υ 2 + . . . + λ t,n i | υ n i is the distribution rule of the value. When the value generation rule calculates the value of f, dividing by the sum of the distribution proportion coefficient λ 1 ∼λ n of the value, λ 1 ∼λ n calculates the proportion assigned to variable υ 1 ∼υ n for a cycle. If there are the same variables in the calculation process in the value allocation process of the membrane, the calculated value of the membrane is not allocated to each variable, and the final value of the variable is the cumulative value of the calculation. If there is a value of the variable in the generation rule, after the implementation of the value of the allocation rule, the value is reset as 0 and then the initial state value is further summed with the allocated value to get a new value.

Membrane Controller Design.
In view of the superior parallel computing ability of membrane computing, considering the four channel and dynamic tracking characteristics of the helicopter, the attitude membrane controller system as shown in Figure 3 is established, which aims to establish the membrane controller for experimental simulation later, interpret the membrane controller and parallel computing of the data, and output the results to the execution unit. According to formula (12) and the process of building a helicopter dynamics model (3)-(9), considering the structural characteristics of the membrane system and the flexibility of communication rules, the control rate rules are executed in sequence, setting a complete calculation cycle of a membrane controller which needs 4 cycles to complete, and the final calculation results can be obtained through the cycle execution. e construction of an unmanned helicopter attitude membrane controller is shown in Figure 4.
According to formula (5), if e φ is the yaw angle error, the dynamics of the yaw angle error is where φ r represents the yaw dynamics and r is the yaw rate pseudocontrol; the error dynamics of the corresponding yaw angle is where λ φ is a positive gain, after the nonlinear term and stability error dynamics are removed and r d is According to formula (9), the angular velocity error e ω is where A ∈ R 3×3 is a positive gain diagonal matrix. Similarly, considering the limitation of an orthogonal vector constraint, the dynamics of the direction error under the pseudocontrol of angular velocity According to the above derivation, the attitude error of the unmanned helicopter represented by the attitude error vector e φ e ρ e ω T ∈ Z is as follows:
For e ρ,3 , there is     Mathematical Problems in Engineering � − e ρ,2 ρ 3,2 + ρ d,2 − e ρ,1 ρ 3,1 + ρ d,1 and e ρ,3 norm is rough the above series of analysis and proof, the stability of an attitude error is ensured, and the unmanned helicopter will not turn over in the tracking process and boundary conditions under existence constraints.

Verification of Attitude Control Performance.
To verify the effectiveness of the unmanned helicopter membrane controller designed in this paper in the semiphysical environment, the main hardware parameter information of the experimental platform is shown in Table 1. e software is a membrane system simulator based on the P-Lingua simulation virtual machine, and this software is shown in Figure 3 as a middleware. It can simulate the membrane computer and execute the membrane controller program execution, which facilitates the performance improvement of the membrane simulator and improves computing power of the membrane controller. e parameters and values of the membrane controller and control gain during the experiment are given in Table 2. e controller gain is adjusted sufficiently according to the   requirements of eorem 1, which further meets the helicopter's need to quickly obtain the desired vector. e experiment begins by manually manipulating the helicopter to take-off, and after reaching a steady state, the flight state is switched to an automatic flight state. To obtain clear experimental results, the previous 25 s is selected for the experiment. e trajectory of the position response over time in the inertial coordinate system is shown in Figure 5, and the course of the helicopter channel attitude angle with time is shown in Figure 6. Figure 5 shows that the membrane controller designed in this paper tends to be stable in about 5 seconds and shows good tracking performance. In Figure 6, the amplitude of the change in the attitude angle with time is controlled in the ± 1°range, and it shows good attitude control performance without interference after the stability.

Comparison of Attitude Control Performance.
e experiment is conducted under the condition of adding wind disturbance. After the helicopter is stable, the wind speed is 10 m/s and the disturbance is continued for 25 s. e timevarying curve of the attitude angle in the disturbed state with the membrane controller is shown in Figure 7. Linear feedback control performance experiments are performed in the same environment, and the results of helicopter attitude control performance under normal and wind disturbance are shown in Figures 8 and 9. At the same time, the experimental errors of the linear feedback controller and the membrane controller designed in this paper are compared based on the experimental data, as shown in Figure 10.
It can be seen from the attitude curve of Figure 7 that even if the amplitude of the attitude angle approaches 2°, especially after 5 s, it is relatively stable, which indicates that the membrane controller can control the attitude better under external disturbance. Comparing Figure 6 with Figure 8, although linear feedback control can also follow the time to control the attitude, the maximum amplitude approaches 2.4°; however, in terms of control performance, the control effect of the membrane controller is obviously higher than that of the linear controller. Similarly, comparing Figure 7 with Figure 9, in the case of wind disturbance, the amplitude of the attitude changes under linear feedback approaching 3.6°. It is obviously higher than 2°under the membrane controller. Analysis of Figure 10 shows that the attitude control performance of the membrane controller is reduced to approximately 0.4026 in terms of error and root mean square. rough the above comparison and analysis, the control performance of the membrane controller designed in this paper is feasible and has good stability.

Conclusion
is paper takes the future direction of intelligent and accurate mining as an opportunity, applies an unmanned helicopter to coal mines, fully considers the scenarios of the coal mine environment, realizes model construction and membrane controller design, and through theoretical and experimental verification, it obtains the following conclusions: (1) It is achievable to construct an unmanned helicopter attitude dynamic model under the complex environment of the coal mines. (2) It is feasible to realize the attitude membrane controller design of an unmanned helicopter by using membrane computing. (3) Building the membrane controller is successful, and the unmanned helicopter shows a good control effect under normal or wind disturbance conditions. rough theoretical analysis and comparison with the experimental results of linear feedback control methods, the membrane computing application is further proved for the effectiveness and stability of attitude control of an unmanned helicopter. e points of the study in this work will provide a new scientific theoretical reference for membrane calculation in the field of optimal control, and at the same time, provide a practical application case for safe and accurate mining of coal mines. Next, we will try to build different membrane computing models, including membrane algorithm design, compared with other control methods, to further optimize the attitude control of an unmanned helicopter and offer new ideas for path planning.

Data Availability
e experimental data used to support the findings of this study are included within the article.

Conflicts of Interest
e authors declare that they have no conflicts of interest.