1. Introduction
In clinical practice, ventilators are widely used as an effective means of artificial replacement of autonomic ventilation. Improperly set ventilator parameters can lead to man–machine asynchronous problems, resulting in safety issues such as inadequate oxygen supply, lung damage, difficulty in weaning off the ventilator, and even life-threatening situations for patients. Medical staff typically set ventilator parameters such as ventilation volume and pressure based on the patient’s weight and their own clinical experience. However, the characteristics of the respiratory system vary from person to person, including differences in respiratory rhythm and lung elasticity based on factors such as age, gender, physical condition, and illness. Addressing these individual variations by obtaining each patient’s respiratory system characteristics is crucial for setting precise ventilator parameters and resolving man–machine asynchronous issues.
Respiratory compliance is a parameter used to describe pulmonary respiratory ability and is also known as pulmonary elastance. In numerical terms, respiratory compliance and pulmonary elastance are reciprocal to each other. Pulmonary elastance serves as an important basis for setting the airway pressure limit value of the ventilator. Experimental results from the literature [
1] indicate that decreased pulmonary elastance leads to increased air flow amplitude and tidal volume, which potentially results in hyperventilation. Conversely, increased pulmonary elastance may result in hypoventilation [
2]. Therefore, it is essential to set ventilator parameters according to the patient’s pulmonary elastance in order to maintain proper mechanical ventilation efficiency.
- (1)
Identification of respiratory characteristic parameters of non-invasive ventilators
The structure of the human respiratory system is commonly described by respiration model; the respiratory parameters such as pulmonary elastance and airway resistance can be obtained by parameter identification of the respiration model. The mechanical structure of the human respiratory system is usually equivalent to the electrical form [
2,
3,
4,
5,
6,
7]. At present, there are three main kinds of research on respiration models during mechanical ventilation: respiration models based on pneumatic system theory, respiration models based on fluid mechanics theory, and respiration models based on differential equations.
Non-invasive ventilators are typically used for patients who have clear consciousness and unobstructed respiratory tracts. Patients generally receive respiratory support treatment through mouth and nose masks.
In the literature [
1,
8,
9,
10], the mechanical ventilation system is equivalent to a pneumatic system. The established respiration model includes an airflow equation, a pressure equation, and a volume equation. Key parameters in the model include respiratory compliance, airway resistance, and equivalent effective area of throttle. Pulmonary elastance is defined as a constant that is easy to calculate but cannot describe its nonlinear characteristics.
In the literature [
1], the air flow dynamic characteristics of the mechanical ventilation of a lung simulator are studied. In the literature [
8], an aviation oxygen supply system based on a mechanical ventilation model is studied. In the literature [
9], the dynamic characteristics of a mechanical ventilation system with spontaneous breathing are studied. In the above literature, the experimental apparatus comprises a ventilator, a flow sensor, a tube, an artificial simulating lung, a pressure sensor, a data acquisition card, and a computer. The simulation results of the respiration models align with experimental measurement results, verifying the accuracy of the respiration models. The influence of key parameters in the respiration model is studied in the papers.
In the literature [
10], an online estimation method for respiratory parameters based on a pneumatic model is studied. The pressure and tidal volume measured by the experimental system are used as input and output data for the respiration model, followed by the use of the recursive least-square method to identify the parameters of the respiratory model.
In the literature [
11,
12,
13], a time-switching mechanical ventilation piecewise model is established based on fluid mechanics theory. This model, hereinafter referred to as the TS respiration model, includes a flow velocity equation, a flow rate equation, a tidal volume equation, an intrapulmonary pressure equation, and an airway pressure equation. Pulmonary elastance is defined as a constant. By setting ventilator parameters, simulation results for airway pressure, tidal volume, and static pulmonary pressure at the end of the ventilator pipeline can be obtained. The simulation results of the TS respiration model are consistent with the experimental measurement results, verifying its accuracy.
In the literature [
14,
15,
16,
17], the second-order linear ordinary differential equation models of the respiratory system are presented. This model is hereinafter referred to as the DE respiration model. In the literature, pulmonary elastance is defined as a polynomial [
14,
15], as a basis function form of the RBF network [
16], and as an output function form of the GRNN network [
17]. These varying definitions increase the complexity of the respiration model but accurately describe dynamic respiratory processes due to pulmonary elastance, being time-varying variables.
In the literature [
14,
15], the fuzzy reasoning method is used to identify the parameters of the respiratory model. In the literature [
16], the recursive least-square method is used to identify the parameters of the respiratory model.
Non-invasive ventilators are unable to measure the patient’s intrathoracic respiratory pressure, resulting in a crucial absence of respiratory data for identifying respiration model parameters. To address this issue, given that the literature [
11,
12,
13] has confirmed consistency between the simulation data of the TS respiration model and measured data, this paper proposes to use the TS respiration model to simulate patients’ respiratory processes. The respiratory parameters of the respiration simulator are set, and airway pressure, flow rate, tidal volume, and pulmonary pressure data from the TS respiration model are sampled as input data for the DE respiration model. Pulmonary elastance and intrapulmonary pressure are then calculated using numerical integration algorithms and least-squares algorithms.
- (2)
Identification of respiratory characteristic parameters of invasive ventilator
Invasive ventilators are commonly used for patients with impaired consciousness or obstructed airways who typically receive respiratory support treatment through tracheal intubation and tracheotomy. These invasive ventilators can provide real-time measurement of patients’ respiratory data, including intrathoracic respiratory pressure.
The neural network is a core technology in machine learning, which is widely applied in various fields such as pattern recognition, intelligent robots, prediction and estimation, biology, medicine, and economics.
In the literature [
17], a respiratory sample set is composed of measured respiratory data, a PSO algorithm is used to optimize the smoothing factor of a GRNN network, and the PSO–GRNN network is used to predict pulmonary static pressure.
In the literature [
18], the respiratory sample set is composed of oxygenation, ventilation, and acid-base balance respiration data. Based on fuzzy rules and neural networks, a ventilator parameter setting strategy is proposed using expert knowledge.
In the literature [
19], a machine learning model is developed for estimating mechanical ventilation parameters for lung health. The model utilizes an inverse mapping of artificial neural networks with the Graded Particle Swarm Optimizer.
In the literature [
20], an improved whale optimization algorithm is proposed and applied to optimize the parameters of the LSTM network. The SFE–LSTM model is established for predicting ventilator pressure. Experiments conducted on Kaggle’s open ventilator dataset verify the effectiveness of the model.
In this study, the neural network method was utilized to identify respiratory characteristic parameters of invasive ventilators. Firstly, a neural network model was established and then trained using measured respiratory samples. Subsequently, the model was tested with additional measured respiratory samples. Ultimately, the study achieved the identification of pulmonary elastance and the prediction of intrapulmonary pressure.
3. Discussion
The main factors that affect the accuracy of identifying respiratory characteristic parameters in non-invasive ventilators are:
- (1)
Equations (7) and (10) provide approximate expressions for resistance coefficients and , which have been determined through a combination of fluid mechanics principles and practical measurements. The measured value and fitting accuracy directly impact the values of , ,, , , and the results of identifying respiratory characteristic parameters and fitting error in ;
- (2)
The values set for parameters in
Table 1 directly impact the values of
,
,
,
,
, and the results of identifying respiratory characteristic parameters and fitting error in
;
- (3)
The TS respiration model and the DE respiration model discussed in this paper are both periodic functions, with the data from each respiratory cycle being consistent. However, there are perturbations in human respiration that cannot be ignored, and the data from each respiratory cycle may not be entirely consistent. As a result, the parameters identified by this method, such as pulmonary elastance, intrapulmonary pressure, and airway resistance, may constrain when compared to the actual situation of patients.
In the literature [
10], experimental apparatus measurement data are utilized as the input and output for the respiration model. The parameters of the respiratory model are then identified using the recursive least-square algorithm, with an error rate ranging between 1% and 5%. In the literature [
17], measurement data is also used as the input and output for the DE respiration model. The parameters of the DE respiratory model are identified using numerical integration and the recursive least-square algorithm; the average error of intrapulmonary pressure estimation is about 0.004.
In this paper, numerical integration and the least-square method are utilized. However, the results presented in
Table 3 and
Table 4 indicate large errors in the identification of pulmonary elastance and the prediction of intrapulmonary pressure. These errors arise from the differing definitions of pulmonary elastance in the two models: while it is defined as a constant in the TS respiration model, it is defined as a polynomial in the DE respiration model. Consequently, this disparity directly contributes to substantial errors in the identification of pulmonary elastance and intrapulmonary pressure.
Therefore, it can be inferred that the accuracy of numerical integration and least-squares algorithm for respiration model parameter identification is high. However, due to the use of non-invasive ventilators and functional limitations, it is not possible to directly measure invasive respiratory data. The use of the TS respiration model to simulate respiratory data leads to a significant error in subsequent identification. In future studies, addressing how to unify the consistency of the TS respiration model and the DE respiration model on the definition of pulmonary elastance can solve this problem.
The accuracy of respiratory characteristic parameter identification in invasive ventilators is influenced by several key factors:
- (1)
The accuracy of respiratory data samples directly impacts the system parameter identification and data fitting results;
- (2)
Increasing the quantity and diversity of respiratory samples can enhance the model’s universality;
- (3)
Advancements in neural network and intelligent optimization algorithms have an impact on the results of parameter identification and data fitting.
In the literature [
17], the PSO–GRNN network is established, the mean error between the predicted value and the true value of intrapulmonary pressure in the test set is 52.4 Pa, and the mean absolute error between the predicted value and the true value of intrapulmonary pressure in the train set is 8.2 Pa. However, the AVOV–BP network established in this paper demonstrated higher prediction accuracy, with a mean absolute error of only 0.1685 Pa for intrapulmonary pressure prediction.
In the literature [
20], in the SFE–LSTM network, the mean absolute error of ventilator pressure prediction is 0.162115 Pa. In the WOA–SFE–LSTM network, the mean absolute error of ventilator pressure prediction is 0.157829 Pa. In the MWOA–SFE–LSTM network, the mean absolute error of ventilator pressure prediction is 0.140571 Pa. The prediction accuracy of ventilator pressure in all three network models is significantly higher than that of the LSTM network in
Section 2.2.3 and also higher than that of the AVOV–BP network in this paper. The primary objective of this study is to enhance calculation speed. Therefore, this paper focuses on the parameter identification and intrapulmonary pressure prediction of invasive ventilators using a small sample respiratory dataset. The sample set in this paper only consists of 26 sets of data, while the literature [
20] contains a much larger number of datasets, totaling 6,036,000. As a result, the calculation speed of the method in this paper is faster than that in the literature [
20]. Considering the speed of calculation and the accuracy of prediction, the AVOV–BP network established in this paper demonstrates superior performance.
The experimental results in
Section 2.1.6 and
Section 2.2.3 of this paper demonstrate that the accuracy of parameter identification for invasive ventilators is significantly higher than that of non-invasive ventilators. This can be attributed to the fact that the respiratory sample data for invasive ventilators are actual measured values, whereas for non-invasive ventilators, there is a larger fault-tolerant space for parameter setting due to chronic patient usage. In contrast, critically ill patients using invasive ventilators have a smaller fault-tolerant space for parameter setting. Therefore, the two respiratory parameter identification methods meet the specific requirements for auxiliary settings of both invasive and non-invasive ventilators, respectively, in clinical practice.
4. Conclusions
The existing literature only studies one type of respiration model. This paper combined the respiration model based on fluid mechanics theory and the respiration model based on differential equations in the respiratory characteristic parameter identification of non-invasive ventilators. Pulmonary elastance was defined differently under the two respiration models, and the experimental results provided a quantitative relationship of pulmonary elastance in both models, verifying their correlation and consistency. This method simulated respiratory data by setting the resistance coefficient value of the TS respiration model. However, it should be noted that the simulated respiratory data are identical for each respiratory cycle without considering differences in the same patient’s respiratory data during different cycles, leading to potential errors compared to actual patient respiratory situations. Nonetheless, this method does not require the real-time measurement of respiratory data and offers an advantage by avoiding the discomfort caused by the invasive measurement of intrapulmonary pressure in patients. It is particularly suitable for chronic patients using non-invasive ventilators and for settings where high accuracy of ventilator parameter setting is not essential, such as in homes, nursing institutions, and community hospitals.
In this paper, a method based on the AVOV–BP neural network was proposed for the identification of respiratory characteristic parameters of invasive ventilators. The method required real-time monitoring of the patient’s respiratory data. Specifically, if a respiratory cycle lasts 3 s, the respiratory characteristic parameters need to be identified every 3 s using the patient’s actual respiratory data. However, it was found that under Matlab2017b software, the method took about 4 s to complete an operation. It does not meet the requirement for the real-time identification of respiratory parameters. In order to minimize the need for frequent adjustment of ventilator parameters, a designated observation period, such as one hour, can be established in clinical practice. During this time, the patient’s respiratory parameter identification results should be recorded, and the ventilator parameter settings should be adjusted based on both these results and clinical observations.
In this paper, two methods of identifying respiratory characteristic parameters during mechanical ventilation were studied. These methods are suitable for different types of ventilators and patients. Therefore, the superiority of one method over the other cannot be determined solely based on the accuracy of parameter identification. In practical applications, the parameter setting of non-invasive ventilators is simple to operate, allowing even household users to manage after basic training. On the other hand, the parameter setting of invasive ventilators is complex and requires completion by highly skilled medical staff.
In this paper, two respiratory parameter identification algorithms were analyzed and improved, and some results were obtained. However, in clinical applications, there are numerous influencing factors involved in the setting of ventilator parameters, such as individual differences in patients, equipment factors, and medical staff factors. The stability and security of the proposed respiratory characteristic parameter identification algorithm need to be further verified for practical application on a large scale. There is still a distance to go before it can be widely applied.
In our follow-up work, our focus will be on addressing the following issues:
- (1)
More real patient data will be collected from clinical practice to enrich respiratory samples of different ages, genders, and disease;
- (2)
The study aims to investigate the direct relationship between respiratory characteristic parameters and ventilator parameter settings, as well as to explore the specific operating rules of ventilator settings, so as to provide valuable reference for medical staff and patients’ families;
- (3)
For the respiratory characteristic parameter identification algorithm based on the neural network, how to reduce the calculation amount will be studied.
The methods for identifying respiratory characteristic parameters in this paper will serve as a valuable reference for doctors when setting ventilator parameters. Additionally, they offer theoretical support for doctors conducting pathological research, physiological research, and clinical diagnosis.