Human-machine asynchronous real-time detection method based on convolutional neural network

Through the human-computer asynchronous real-time detection method based on convolutional neural network, the data sets are obtained by simulated lungs and the yolov5s network is optimized to build a lightweight architecture, which solves the subjectivity and time-consuming problems of existing detection methods, and achieves efficient and accurate detection effect.

CN118873801APending Publication Date: 2024-11-01中国人民解放军总医院第八医学中心
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410935457.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The existing human-computer asynchronous detection methods have problems such as subjectivity, incomplete detection waveforms, and long running time, making it difficult to achieve efficient and accurate detection.

Method used

The human-computer asynchronous real-time detection method based on convolutional neural network is adopted to obtain data sets by simulating the lungs, and the traditional yolov5s network is optimized to build a lightweight architecture, train detection models, and achieve fast and accurate detection of real-time ventilator waveforms.

Benefits of technology

It realizes lightweight human-computer out-of-sync real-time detection, saves costs and improves detection accuracy, and solves problems such as subjectivity and long time of existing methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118873801A_ABST
    Figure CN118873801A_ABST
Patent Text Reader

Abstract

The invention discloses a human-machine asynchronous real-time detection method based on a convolutional neural network, and relates to the field of respirator human-machine asynchronous detection.The method comprises the steps that respiration simulation is conducted through a simulation lung, human-machine asynchronous waveform simulation data are obtained, data slicing, cleaning and image labeling are conducted, and a human-machine asynchronous data set is generated; optimization is carried out based on a traditional yolov5s network, and a lightweight network architecture is constructed; based on the man-machine asynchronous data set, training the lightweight network architecture to obtain a man-machine asynchronous detection model; and acquiring a real-time patient breathing machine waveform, pre-processing the waveform, inputting the pre-processed waveform into the man-machine asynchronous detection model, acquiring a man-machine asynchronous detection result, and judging a breathing state. The technical problems that an existing man-machine asynchronous detection method is subjective, incomplete in detection waveform, long in operation time and the like are solved, and the technical effects that light-weight man-machine asynchronous real-time detection is achieved, the detection cost is saved, and meanwhile the detection precision is improved are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of ventilator human-machine asynchrony detection, and in particular to a real-time human-machine asynchrony detection method based on a convolutional neural network. Background Art

[0002] Human-machine asynchrony refers to the coordination problem between the patient and the ventilator during the respiratory cycle, which may be caused by the timing mismatch between the nerves and the ventilator, the mismatch between the strength of respiratory support and the demand, etc. To address this problem, automatic detection is often performed based on waveform feature rules, machine learning or deep learning, using three respiratory waveform curves: pressure-time, flow-time and volume-time. It can effectively detect human-machine asynchrony and take timely measures to correct the incoordination between the ventilator and the patient, thereby improving the treatment effect.

[0003] However, the existing human-machine asynchronous detection methods have a series of problems such as subjectivity, incomplete detection waveforms, and long running time. Summary of the invention

[0004] The present application provides a real-time human-computer asynchrony detection method based on convolutional neural network, which is used to solve the technical problems of existing human-computer asynchrony detection methods, such as subjectivity, incomplete detection waveform, and long running time.

[0005] The first aspect of the present application provides a real-time human-machine asynchrony detection method based on a convolutional neural network, the method comprising: obtaining human-machine asynchrony waveform simulation data by using a simulated lung for respiratory simulation; slicing, cleaning and image annotating the human-machine asynchrony waveform simulation data to generate a human-machine asynchrony data set; optimizing based on the traditional yolov5s network to construct a lightweight network architecture; training the lightweight network architecture based on the human-machine asynchrony data set to obtain a human-machine asynchrony detection model; obtaining real-time patient ventilator waveform, and inputting it into the human-machine asynchrony detection model after preprocessing to obtain a human-machine asynchrony detection result.

[0006] One or more technical solutions provided in this application have at least the following technical effects or advantages:

[0007] The present application provides a real-time human-machine asynchrony detection method based on a convolutional neural network, which relates to the field of ventilator human-machine asynchrony detection. It uses a simulated lung for respiratory simulation to obtain a human-machine asynchrony data set, optimizes the traditional YOLOv5S network, builds a lightweight network architecture, trains the lightweight network architecture based on the human-machine asynchrony data set, obtains a human-machine asynchrony detection model, and performs human-machine asynchrony detection and respiratory state determination on real-time patient ventilator waveforms. It solves the technical problems of existing human-machine asynchrony detection methods, such as subjectivity, incomplete detection waveforms, and long running time, and achieves the technical effect of saving detection costs while improving detection accuracy through lightweight real-time detection of human-machine asynchrony. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0009] Figure 1 A flowchart of a method for real-time detection of human-machine asynchrony based on a convolutional neural network provided in an embodiment of the present application;

[0010] Figure 2 A lightweight network structure diagram in a real-time detection method for human-machine asynchrony based on a convolutional neural network provided in an embodiment of the present application;

[0011] Figure 3 A diagram of the Shuffle_v2_1 structure in a method for real-time detection of human-machine asynchrony based on a convolutional neural network provided in an embodiment of the present application;

[0012] Figure 4 This is a diagram of the Shuffle_v2_2 structure in a method for real-time detection of human-machine asynchrony based on a convolutional neural network provided in an embodiment of the present application. DETAILED DESCRIPTION

[0013] The present application provides a real-time human-computer asynchrony detection method based on convolutional neural network, which is used to solve the technical problems of existing human-computer asynchrony detection methods, such as subjectivity, incomplete detection waveform, and long running time.

[0014] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0015] It should be noted that the terms "first", "second", etc. in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products, or devices.

[0016] Embodiment 1

[0017] like Figure 1 As shown, the present application provides a real-time detection method for human-machine asynchrony based on a convolutional neural network, the method comprising:

[0018] P10: Acquire human-machine asynchronous waveform simulation data by using a simulated lung for breathing simulation.

[0019] It should be understood that by using a simulated lung for respiratory simulation, the physiological properties of the simulated lung are similar to those of human lung tissue. By changing the ventilation mode, tidal volume and other parameters on the ventilator, and controlling the oxygenation state and compliance of the simulated lung, respiratory simulation can be performed. The data generation process can be fully controlled to generate a sufficient number of various types of human-machine asynchronous data. Eventually, seven types of human-machine asynchronous waveform data, including double triggering, active triggering, reverse triggering, delayed triggering, early switching, delayed switching and invalid triggering, are generated as human-machine asynchronous waveform simulation data. At the same time, in addition to the above-mentioned traditional human-machine asynchronous types, the human-machine asynchronous waveform simulation data also includes abnormal data, such as respiratory abnormalities caused by patients coughing.

[0020] P20: Slice, clean and annotate the human-machine asynchronous waveform simulation data to generate a human-machine asynchronous data set.

[0021] Furthermore, step P20 of the embodiment of the present application also includes:

[0022] P21: based on the human-machine asynchronous waveform simulation data, waveform curves are drawn in sequence according to the pressure-time waveform, the flow rate-time waveform and the volume-time waveform;

[0023] P22: Slicing the waveform curve according to the collection time to obtain a plurality of data slices, and drawing the plurality of data slices into a ventilator waveform graph to obtain a waveform graph data set;

[0024] P23: performing repeated data cleaning on the waveform image data set to obtain a pure waveform image data set;

[0025] P24: Based on the pure waveform data set, annotate the human-computer asynchrony information to obtain the human-computer asynchrony data set, wherein the annotated information includes the category and position of the human-computer asynchrony.

[0026] Optionally, based on the human-machine asynchronous waveform simulation data, a waveform curve is drawn. When the waveform is drawn, the pressure-time waveform, flow rate-time waveform and volume-time three waveform curves are sequentially composed from top to bottom. The data collected for 29.1 days are sliced ​​into 142201 data segments, i.e., respiratory waveform slices, and each group of respiratory waveform slices contains 17 seconds of data and 850 time points. All slices are drawn into pictures using the matplotlib toolkit in python. At the same time, in order to assist the doctor in the annotation process, each picture is drawn with auxiliary lines such as range boxes and y=0. Finally, a data set containing 142201 ventilator waveform images is generated.

[0027] Furthermore, in the process of generating the data set, the present invention collected respiratory waveforms on the ventilator for up to 29.1 days. Due to the periodicity of the simulated lung and the ventilator, the images are prone to duplication. Therefore, the image mode of the Duplicate Cleaner software was used to delete duplicate images in the data set. The images containing dirty data generated when operating the simulated lung and the ventilator were reviewed by senior respiratory therapists, and during this process, it was confirmed that the image set contained a sufficient number of the above-mentioned human-machine asynchronous types of data, and finally a data set of 4259 images without duplication was generated.

[0028] Furthermore, the data set is annotated by using the multi-person annotation function of the intelligent data service platform. Exemplarily, an annotation method with a quality inspection process is adopted, and a annotation team is composed of four junior respiratory therapists. The type and position of human-machine asynchrony of the same image are determined by voting of the annotation team. The images that the annotation team cannot decide are submitted to senior respiratory therapists for review. Finally, a human-machine asynchrony data set with annotations is obtained. The annotation process uses the VOC format, and the annotation box position information and the human-machine asynchrony type corresponding to the box are stored as an XML file.

[0029] P30: Optimize the traditional yolov5s network and build a lightweight network architecture.

[0030] Further, such as Figure 2 As shown, step P30 of the embodiment of the present application also includes:

[0031] P31: Based on the traditional yolov5s network, build an initial network architecture, which includes an input end, a backbone network, a head network, a prediction network and an output end;

[0032] P32: For the backbone network, the shuffle_net_v2 architecture is used to achieve model lightweight, and the CBAM attention mechanism is used to optimize the head network to obtain a lightweight network architecture;

[0033] P33: Among them, the backbone network consists of a CBRM module, a Shuffle_v2_1 module and a Shuffle_v2_2 module, and the head network includes a CBS module, a C3 module, a CBAM attention mechanism module and a fusion module.

[0034] In a possible embodiment of the present application, the backbone network and the head network of the traditional yolov5s network are optimized respectively, the traditional network is lightweight, and the problem of reduced accuracy after the lightweight network is improved by adding an attention mechanism to the network. Among them, the CBAM attention mechanism is a lightweight attention mechanism that considers both channel and spatial dimensions. The optimized lightweight model has fewer calculation parameters and performs well in human-machine asynchronous detection tasks.

[0035] Specifically, firstly, based on the traditional yolov5s network, an initial network architecture is built, which includes an input end, a backbone network, a head network, a prediction network and an output end. Among them, the input end is responsible for inputting the human-machine asynchronous image into the improved yolov5s network, and the input image is data enhanced by Mosaic. Mosaic data enhancement enhances the richness of the image background by selecting a picture and splicing and cropping it with three other random pictures. This operation can reduce the model's dependence on batch_size.

[0036] Furthermore, for the backbone network, the shuffle_net_v2 architecture is used to realize the lightweight model, and the backbone network is mainly composed of CBRM module, Shuffle_v2_1 module and Shuffle_v2_2 module, which are used for primary feature map extraction. Furthermore, the CBAM attention mechanism is used to optimize the head network, and the head network includes CBS module, C3 module, CBAM attention mechanism module and fusion module, which are used for secondary feature map extraction. By optimizing the backbone network and head network of the traditional yolov5s network respectively, that is, optimizing the initial network architecture, a lightweight network architecture is obtained.

[0037] Further, such as Figure 3 As shown, step P33 of the embodiment of the present application also includes:

[0038] P33-1: The input end passes the image to be detected into the backbone network for feature extraction. The image to be detected passes through the zeroth layer CBRM module, the first layer Shuffle_v2_1 module, the second layer Shuffle_v2_2 module, the third layer Shuffle_v2_1 module, the fourth layer Shuffle_v2_2 module, the fifth layer Shuffle_v2_1 module and the sixth layer Shuffle_v2_2 module in sequence to obtain a feature map, wherein the modules are in input and output relationship in sequence.

[0039] Further, such as Figure 4 As shown, step P33-1 of the embodiment of the present application also includes:

[0040] P33-11: The Shuffle_v2_1 module includes two branches, each of which includes a plurality of data processing modules;

[0041] P33-12: The Shuffle_v2_2 module includes a channel separation module, multiple data processing modules and a channel fusion module.

[0042] Optionally, the backbone network is mainly composed of a CBRM module, a Shuffle_v2_1 module and a Shuffle_v2_2 module. The input end transmits the image to be detected into the backbone network for feature extraction, and the image to be detected passes through the zeroth layer CBRM module, the first layer Shuffle_v2_1 module, the second layer Shuffle_v2_2 module, the third layer Shuffle_v2_1 module, the fourth layer Shuffle_v2_2 module, the fifth layer Shuffle_v2_1 module and the sixth layer Shuffle_v2_2 module in sequence, and each module is in an input and output relationship in sequence, and a feature map is obtained after being processed by each module.

[0043] Among them, the zero-th layer CBRM module is composed of a 3*3 convolution with a step size of 2 and a padding of 1, a normalization module, a ReLU activation function and a maximum pooling layer.

[0044] The Shuffle_v2_1 module passes the image to be detected through two branches respectively, where the function of branch one is to pass the input through the following modules in sequence: 1*1 convolution, normalization module, ReLU activation function, 3*3 depth separable convolution, normalization module, 1*1 convolution, normalization, ReLU activation function. The function of branch two is to pass the input through the following modules in sequence: 3*3 depth separable convolution with a step size of 2, normalization module, 1*1 convolution, normalization module and ReLU activation function. After the two branches process the image to be detected respectively, the outputs of the two branches are concat fused and passed through the channel fusion module to obtain the feature map Q.

[0045] Furthermore, the Shuffle_v2_2 module first passes the input feature map through the channel separation module, and then passes the output Q of the Shuffle_v2_1 module through the following modules in sequence: 1*1 convolution, normalization, ReLU activation function, 3*3 depth-separable convolution, normalization, 1*1 convolution, normalization, ReLU activation function, and the output feature map is P. The two feature maps Q and P are concat-fused and passed through the channel fusion module to obtain a feature map.

[0046] Furthermore, step P33 of the embodiment of the present application also includes:

[0047] P33-2: The head network is used to receive the primary feature map from the backbone network, and perform secondary processing through the CBS module, C3 module, CBAM attention mechanism module and fusion module to obtain a secondary feature map.

[0048] It should be understood that after the above operation, the primary feature map is input into the head network. The structure diagram of the head network is as follows: Figure 1As shown in the head network part of the figure, the output feature map of the 6th layer Shuffle_v2_2 module of the Backbone layer passes through the 7th layer CBS module and upsampling, and is concat fused with the feature map output by the 4th layer Shuffle_v2_2 module of the backbone network. The output fusion feature is sequentially input into the C3 module, the CBAM attention mechanism module, the 12th layer CBS module, and the upsampling module, and then concat fused with the output feature map of the second layer Shuffle_v2_2 module of the Backbone layer. The output feature map passes through the C3 module, the CBAM attention mechanism module, and the 17th layer CBS module in turn, and is concat fused with the output feature map of the 12th layer CBS module in the head network. The output feature map then passes through the C3 module, the CBAM attention module, and the CBS module in turn, and is concat fused with the output of the 7th layer CBS module in the head module, and then input into the C3 module to obtain a secondary feature map.

[0049] P40: Based on the human-computer asynchrony dataset, the lightweight network architecture is trained to obtain a human-computer asynchrony detection model.

[0050] Furthermore, step P40 of the embodiment of the present application also includes:

[0051] P41: Divide the human-machine asynchronous data set into a training set, a validation set and a test set according to a preset ratio;

[0052] P42: Based on the training set, the lightweight network architecture is trained to obtain a human-machine asynchrony detection model;

[0053] P43: Calculate the loss function based on the validation set and back-propagate to obtain the weight of the human-machine asynchrony detection model;

[0054] P44: After performing accuracy testing based on the test set, the human-machine asynchrony detection model and weights are deployed in the ventilator device.

[0055] Specifically, the human-machine asynchrony data set is divided into a training set, a validation set and a test set according to a preset ratio. Exemplarily, the preset ratio can be 8:1:1. Further, based on the training set, the lightweight network architecture is trained, and the loss function is calculated and back-propagated based on the validation set to obtain the weight of the human-machine asynchrony detection model. Exemplarily, yolov5s is used as the main structure, and the annotated data set is used as the algorithm input. The annotation information includes the category and location of human-machine asynchrony, and the output is the region box judged by the algorithm and the confidence of its judgment outcome. The lightweight human-machine asynchrony detection model counts the duration of a forward calculation and back-propagation as a training cycle. The actual training time of the model is 200 training cycles in total. The loss function is calculated and back-propagated based on the validation set samples to obtain higher performance of the model. The weight with the smallest CIoU loss function value during the training process is selected as the weight of the human-machine asynchrony detection model. Finally, the test set is used to perform an accuracy test on the human-machine asynchrony detection model. If the model accuracy meets the standard, the human-machine asynchrony detection model and weights are deployed in the ventilator device for practical application.

[0056] P50: Acquire the real-time patient ventilator waveform, input it into the human-machine asynchrony detection model after preprocessing, obtain the human-machine asynchrony detection result, and determine the respiratory state based on the human-machine asynchrony detection result.

[0057] Furthermore, step P50 of the embodiment of the present application also includes:

[0058] P51: Collect real-time patient ventilator waveforms, perform slice preprocessing, and obtain ventilator waveform images;

[0059] P52: Input the ventilator waveform image into the human-machine asynchrony detection model to obtain a human-machine asynchrony detection result, wherein the human-machine asynchrony detection result includes an asynchrony time and an asynchrony type;

[0060] P53: Based on the human-machine asynchrony detection result, obtain detection confidence;

[0061] P54: Compare the detection confidence and the confidence threshold to determine the respiratory state.

[0062] Optionally, in practical applications, the human-machine asynchrony detection model and weights are deployed in a ventilator device, and the model input is connected to the output port of the ventilator waveform of the patient who is receiving ventilator respiratory support. Referring to the preprocessing method of the above-mentioned respiratory waveform data, the patient sample slices are preprocessed to obtain a ventilator waveform image, and the preprocessed ventilator waveform image is input into the human-machine asynchrony detection model with the optimal weight trained, and the backbone network and the head network are processed separately to obtain a secondary feature map, and the human-machine asynchrony detection result is extracted based on the secondary feature map, and the human-machine asynchrony detection result includes the asynchrony time and the asynchrony type.

[0063] The human-machine asynchrony detection result is transmitted to the prediction network, and the prediction network inputs the secondary feature maps output by the C3 modules of the 15th, 19th and 23rd layers in the head network into the prediction network part, and finally outputs the positions and sizes of three anchor bounding boxes of different sizes and the confidence of the bounding box. The output end calculates the loss function for the detection box, and the CIoU calculation NMS non-maximum suppression is used during the calculation to eliminate duplicate bounding boxes. The CIoU loss calculation of the predicted box and the actual box is used to perform back propagation to adjust the network weight value of the present invention.

[0064] Furthermore, the detection confidence and the confidence threshold are compared to determine the respiratory state. For example, the confidence threshold is set to 0.3, and the coordinate values ​​of the four vertices of the abnormal area box and the detection confidence are returned. When the confidence is greater than the threshold 0.3, it is determined that the marked box is not synchronized with the human and the machine, and the marked box is drawn on the respiratory waveform diagram at the corresponding coordinates. Otherwise, it is determined that the current breathing is normal and no processing is performed.

[0065] In summary, the embodiments of the present application have at least the following technical effects:

[0066] This application uses a simulated lung to perform breathing simulation, obtains a human-machine asynchrony data set, optimizes the traditional YOLO V5S network, builds a lightweight network architecture, trains the lightweight network architecture based on the human-machine asynchrony data set, obtains a human-machine asynchrony detection model, and performs human-machine asynchrony detection and respiratory status determination on real-time patient ventilator waveforms.

[0067] The technical effect of achieving lightweight human-machine asynchronous real-time detection, saving detection costs and improving detection accuracy is achieved.

[0068] It should be noted that the above-mentioned sequence of the embodiments of the present application is only for description and does not represent the advantages and disadvantages of the embodiments. And the above-mentioned specific embodiments of this specification are described. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0069] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

[0070] This specification and the drawings are merely exemplary illustrations of the present application and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, a person skilled in the art may make various modifications and variations to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the present application and its equivalents, the present application intends to include these modifications and variations.

Claims

1. A real-time detection method for human-machine asynchrony based on convolutional neural network, It is characterized in that The method comprises: By using a simulated lung to simulate breathing, the simulated data of human-machine asynchronous waveforms can be obtained; Slicing, cleaning and image-annotating the human-machine asynchronous waveform simulation data to generate a human-machine asynchronous data set; Optimize the traditional yolov5s network and build a lightweight network architecture; Based on the human-computer asynchrony data set, the lightweight network architecture is trained to obtain a human-computer asynchrony detection model; The real-time patient ventilator waveform is obtained, and after preprocessing, it is input into the human-machine asynchrony detection model to obtain the human-machine asynchrony detection result, and the respiratory state is determined based on the human-machine asynchrony detection result.

2. A method for real-time detection of human-machine asynchrony based on convolutional neural network as claimed in claim 1, wherein the human-machine asynchrony waveform simulation data is sliced, cleaned and image-annotated to generate a human-machine asynchrony data set, include: Based on the human-machine asynchronous waveform simulation data, waveform curves are drawn in sequence according to the pressure-time waveform, the flow rate-time waveform and the volume-time waveform; Slicing the waveform curve according to the collection time to obtain a plurality of data slices, and plotting the plurality of data slices into a ventilator waveform graph to obtain a waveform graph data set; Performing repeated data cleaning on the waveform graph data set to obtain a pure waveform graph data set; Based on the pure waveform data set, human-computer asynchrony information is annotated to obtain the human-computer asynchrony data set, wherein the annotated information includes the category and position of the human-computer asynchrony.

3. A method for real-time detection of human-machine asynchrony based on a convolutional neural network as claimed in claim 1, which is based on the optimization of the traditional yolov5s network and constructs a lightweight network architecture. include: Based on the traditional yolov5s network, an initial network architecture is built, which includes an input end, a backbone network, a head network, a prediction network and an output end; For the backbone network, the shuffle_net_v2 architecture is used to achieve model lightweight, and the CBAM attention mechanism is used to optimize the head network to obtain a lightweight network architecture; Among them, the backbone network consists of a CBRM module, a Shuffle_v2_1 module and a Shuffle_v2_2 module, and the head network includes a CBS module, a C3 module, a CBAM attention mechanism module and a fusion module.

4. A method for real-time detection of human-machine asynchrony based on convolutional neural network as claimed in claim 3, It is characterized in that The backbone network consists of a CBRM module, a Shuffle_v2_1 module and a Shuffle_v2_2 module, including: The input end passes the image to be detected into the backbone network for feature extraction, and the image to be detected passes through the zeroth layer CBRM module, the first layer Shuffle_v2_1 module, the second layer Shuffle_v2_2 module, the third layer Shuffle_v2_1 module, the fourth layer Shuffle_v2_2 module, the fifth layer Shuffle_v2_1 module and the sixth layer Shuffle_v2_2 module in sequence to obtain a feature map, wherein the modules are in input and output relationship in sequence.

5. A method for real-time detection of human-machine asynchrony based on convolutional neural network as claimed in claim 4, It is characterized in that The method further comprises: The Shuffle_v2_1 module includes two branches, each of which includes a plurality of data processing modules; The Shuffle_v2_2 module includes a channel separation module, multiple data processing modules and a channel fusion module.

6. A method for real-time detection of human-machine asynchrony based on convolutional neural network as claimed in claim 3, It is characterized in that The head network includes a CBS module, a C3 module, a CBAM attention mechanism module and a fusion module, including: The head network is used to receive the primary feature map from the backbone network, and perform secondary processing through the CBS module, C3 module, CBAM attention mechanism module and fusion module to obtain a secondary feature map.

7. A method for real-time detection of human-machine asynchrony based on convolutional neural network as claimed in claim 1, It is characterized in that Based on the human-computer asynchrony data set, the lightweight network architecture is trained to obtain a human-computer asynchrony detection model, including: Dividing the human-machine asynchronous data set into a training set, a validation set and a test set according to a preset ratio; Based on the training set, the lightweight network architecture is trained to obtain a human-machine asynchrony detection model; And based on the verification set, a loss function is calculated and back-propagated to obtain the weight of the human-machine asynchrony detection model; After performing accuracy testing according to the test set, the human-machine asynchrony detection model and weights are deployed in the ventilator device.

8. A method for real-time detection of human-machine asynchrony based on convolutional neural network as claimed in claim 1, It is characterized in that Acquire a real-time patient ventilator waveform, input it into the human-machine asynchrony detection model after preprocessing, obtain a human-machine asynchrony detection result, and determine the respiratory state based on the human-machine asynchrony detection result, including: Collect real-time patient ventilator waveforms, perform slice preprocessing, and obtain ventilator waveform images; Inputting the ventilator waveform image into the human-machine asynchrony detection model to obtain a human-machine asynchrony detection result, wherein the human-machine asynchrony detection result includes an asynchrony time and an asynchrony type; Based on the human-machine asynchrony detection result, obtaining detection confidence; The detection confidence and the confidence threshold are compared to determine the respiratory state.