Automatic laparoscope smoke removing method and system

By using the automatic detection system of Yolov5 neural network and hidden Markov model in laparoscopic surgery, the problem of low efficiency of traditional manual smoke removal is solved, automatic identification and removal of smoke and fog are realized, and the clarity of surgical field of view is improved. and security.

CN118680493AInactive Publication Date: 2024-09-24ZHONGSHAN HOSPITAL XIAMEN UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410716358.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In laparoscopic surgery, traditional smoke removal methods rely on manual control and cannot remove smoke in a timely and effective manner, resulting in unclear surgical vision, low abdominal pressure and health hazards to medical staff.

Method used

An automatic smoke and fog detection system based on the Yolov5 neural network model and hidden Markov model is used to automatically identify and adjust the volume of smoke sucked out and the temperature of the incoming gas through image enhancement processing and real-time detection to achieve the detection of smoke and fog. Clear automatically.

Benefits of technology

It improves the clarity of the surgical field of view, reduces the health hazards of medical staff caused by smoke during the operation, ensures stable pressure in the abdominal cavity, and improves the safety and efficiency of the operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118680493A
    Figure CN118680493A
Patent Text Reader

Abstract

The invention discloses a laparoscope smoke and fogging automatic clearing method and system, and relates to the technical field of medical image detection, and the method comprises the steps: obtaining and processing laparoscope smoke and fogging images; constructing a smoke detection model and a fogging detection model based on a Yolov5 neural network model; effective image areas of the laparoscope are continuously extracted in real time, the effective image areas are divided into a plurality of image to-be-detected areas according to a preset rule plan and serve as input, and prediction confidence coefficients of the plurality of image to-be-detected areas are obtained; determining smoke and fogging results of the to-be-detected areas of the plurality of images according to the prediction confidence of the states of the to-be-detected areas of the plurality of images and a preset threshold; and indexing the smoke and fogging results of the to-be-detected areas of the plurality of images to obtain an indexing result, controlling the volume of the sucked smoke according to the smoke indexing result, and controlling the temperature and volume of the fed gas according to the fogging indexing result. Lens fogging caused by cooling of the lens can be automatically recognized, the air inlet temperature is adjusted, and automatic defogging is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of medical technology, and in particular to a method and system for automatically removing laparoscopic smoke and fog. Background Art

[0002] Laparoscopic surgery is a type of surgery that uses related surgical instruments and a laparoscope with a miniature camera. The laparoscope uses a cold light source to provide illumination and penetrates deep into the abdominal cavity. The image captured by the laparoscope lens is transmitted to the external signal processing system through optical fibers using digital camera technology, and is displayed in real time on a dedicated monitor. The surgeon observes the image and uses various surgical instruments to perform operations outside the body to complete the surgery. Laparoscopic surgery has the advantages of less trauma, fewer complications, safety, and quick recovery.

[0003] During laparoscopic surgery, the use of energy devices such as electrocoagulation hooks and ultrasonic scalpels will produce a lot of smoke and fog, which may cause trouble during the operation. These smoke and fog will obstruct the surgical field of view, making it difficult for doctors to observe and operate clearly. The smoke is mainly composed of water vapor and cell fragment particles, which contain harmful chemical components such as polycyclic aromatic hydrocarbons, acrylonitrile, cyanide, as well as blood, tissue fragments, viruses, cells and other substances.

[0004] The traditional smoke removal method is manually controlled, that is, the assistant opens the exhaust valve of the card to exhaust directly to the operating room, and closes the valve after the surgical field is clear. Manual control mainly relies on the experience of the operator to control, and it is impossible to remove the smoke in time and effectively. If too much exhaust is discharged, it may cause the abdominal cavity pressure to be too low, affecting the surgical process. The smoke can be absorbed by the peritoneum in the abdominal cavity and can be inhaled by medical staff when it is released from the room. In particular, long-term inhalation can seriously endanger human health. Summary of the invention

[0005] In order to overcome the shortcomings of the prior art that manual smoke exhaust is required and smoke cannot be removed in time manually, the main purpose of the present invention is to provide a laparoscopic smoke automatic removal method and system.

[0006] To achieve the above object, the present invention adopts the following technical solution, a method for automatically removing laparoscopic smoke, comprising:

[0007] The laparoscope smoke and fogging images were obtained as training sets and validation sets, and virtual smoke and fogging images were generated after image enhancement processing; the smoke detection model and fogging detection model were constructed based on the Yolov5 neural network model;

[0008] Real-time and continuous extraction of the effective image area of ​​the laparoscope, and division of the effective image area into multiple image detection areas according to preset rules;

[0009] The plurality of detection areas are used as inputs of the trained smoke detection model and fogging detection model to obtain prediction confidences of the plurality of image detection areas; smoke and fogging results of the plurality of image detection areas are determined according to the prediction confidences of the states of the plurality of image detection areas and preset thresholds;

[0010] Constructing a corresponding hidden Markov model according to the smoke and fog images, training the hidden Markov model through the training set, and obtaining a trained hidden Markov model;

[0011] Input the smoke and fog results of the to-be-detected areas of the multiple images into the trained hidden Markov model to obtain the smoke and fog classification results of the to-be-detected areas;

[0012] According to the mapping relationship between the set division result and the volume of the smoke sucked out, the temperature and volume of the gas supplied, the volume of the smoke sucked out, and the temperature and volume of the gas supplied are controlled by the division result.

[0013] Preferably, constructing a corresponding hidden Markov model according to smoke and fog images includes the following steps:

[0014] The smoke and fog images under the same working condition are used as the same hidden Markov model;

[0015] Perform serial sampling on smoke and fog images to obtain smoke and fog image sequences;

[0016] The discrete cosine transform is used to extract features from the sequence sub-images;

[0017] Convert each smoke and fog image into a sample sequence of a hidden Markov model;

[0018] The parameters of the hidden Markov model are trained using the training set to obtain a trained hidden Markov model.

[0019] Preferably, acquiring the laparoscope smoke image and performing image enhancement processing to generate the virtual smoke and fogging image comprises the following steps:

[0020] Laparoscopic images with various contents and angles are collected as training and testing datasets.

[0021] The laparoscopic images were enhanced by translation, cropping, rotation, brightness enhancement and adding random noise;

[0022] Virtual smoke effects are added to laparoscopic images by using filter rendering and blending mode adjustment. Blurred effects are generated using Gaussian blur algorithm to simulate lens fogging effects. Virtual smoke and fogged images are then obtained.

[0023] Preferably, the Yolov5 neural network model includes a backbone network, a feature pyramid network and a head, wherein features are extracted through the backbone network, multi-scale features are fused through the feature pyramid network, and finally the target detection task is completed through the head part;

[0024] Preferably, the smoke and fog results of the areas to be detected in the multiple images are determined according to the predicted confidence levels of the states of the areas to be detected in the multiple images and a preset threshold, specifically comprising the following steps:

[0025] For each image area to be detected, use the trained smoke detection model and fog detection model to make predictions, and extract the prediction results of smoke and fog and the corresponding confidence from the model output;

[0026] Set preset thresholds for smoke and fog based on actual needs and performance evaluation, the characteristics of smoke and fog, and the tolerance for false detection and missed detection;

[0027] For each image to be detected area, the predicted confidence of smoke and fogging is compared with the corresponding preset threshold; if the predicted confidence of smoke is higher than the set threshold, the area is marked as having smoke; otherwise, it is marked as having no smoke; if the predicted confidence of fogging is higher than the set threshold, the area is marked as having fogging; otherwise, it is marked as having no fogging;

[0028] After the above judgment is performed on each image to be detected area, smoke and fog results of multiple image to be detected areas are obtained.

[0029] Preferably, the method further includes updating the smoke detection model and the smoke detection model, including the following steps:

[0030] Collect laparoscopic smoke and fog images, annotate them, and mark the smoke and fog areas in the images;

[0031] The collected data is preprocessed and image enhanced as a training set to train the smoke detection model and fogging detection model;

[0032] Based on the Yolov5 neural network architecture, the SGD training algorithm is adopted to optimize the parameters of the smoke detection model and the fogging detection model through back propagation to obtain the updated smoke detection model and the fogging detection model.

[0033] The real-time smoke image is graded to obtain the smoke classification result, and the corresponding level of the suction pump is started to perform suction according to the smoke classification result until the collected smoke image is clear and the suction pump is turned off;

[0034] The real-time fogging image is graded to obtain the fogging classification result, and the temperature of the gas to be supplied is determined according to the fogging classification result, and then the heating air supply pump is turned on until the collected fogging image is clear, and then the heating air supply pump is turned off;

[0035] A laparoscopic smoke automatic removal system, comprising:

[0036] Acquisition display screen to collect real-time laparoscopic images;

[0037] The data processing module divides the effective image area of ​​the laparoscope extracted continuously in real time to obtain multiple image detection areas; based on the training set, a smoke detection model and a fogging detection model are constructed, the smoke and fogging images acquired in real time are divided into multiple image detection areas and input into the smoke detection model and the fogging detection model to obtain smoke and fogging results of multiple image detection areas; a corresponding hidden Markov model is constructed according to the smoke and fogging images, and the hidden Markov model is trained by the training set to obtain a trained hidden Markov model;

[0038] The control module sets the mapping relationship between the division result and the volume of smoke sucked out, the temperature and volume of the supplied gas, controls the volume of smoke discharged through the circulating gas according to the smoke division result of the area to be detected, and controls the volume of smoke sucked out through the circulating air pump and the temperature and volume of the supplied gas according to the smoke division result.

[0039] Compared with the prior art, the beneficial effects of the present invention are as follows: by enhancing the acquired laparoscopic smoke image, such as translation, cropping, rotation, brightness enhancement and addition of random noise, the quality and clarity of the image can be improved, and the simulation effect of smoke and fogging can be improved. Based on the laparoscopic image after image enhancement processing, virtual smoke and fogging images can be generated through filter rendering, blending mode adjustment and Gaussian blur algorithm to simulate the smoke and fogging conditions in real surgical scenes. The constructed smoke detection model and fogging detection model can accurately detect smoke and fogging in the real-time and continuously extracted laparoscopic images, and determine the smoke and fogging conditions of the laparoscope in the abdominal cavity. According to the classification basis, each area is graded to obtain the classification results of smoke and fogging, and the volume of the suction pump is further controlled according to the smoke classification results to adjust the amount of smoke sucked out; according to the fogging classification results, the temperature of the gas heater and the volume of the air supply pump are controlled to adjust the temperature and volume of the supplied gas. That is, according to the constructed smoke detection model and fogging detection model, different degrees of smoke and fogging during laparoscopic surgery can be automatically identified, and the suction speed can be adjusted to maintain a clear field of vision; the lens fogging caused by the drop in lens temperature can be automatically identified, the intake temperature can be adjusted, and defogger can be automatically performed. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a schematic diagram of the process structure of the present invention. DETAILED DESCRIPTION

[0041] The present invention will be further described below in conjunction with the accompanying drawings and implementation modes.

[0042] Embodiment 1:

[0043] In laparoscopic surgery, the traditional smoke removal method is manually controlled, that is, the assistant opens the exhaust valve of the card to exhaust directly into the operating room, and closes the valve after the surgical field of view is clear. Manual control mainly relies on the experience of the operator to control, and it is impossible to remove the smoke in a timely and effective manner. If too much exhaust is discharged, the abdominal cavity pressure may be too low, affecting the progress of the operation. Smoke can be absorbed by the peritoneum in the abdominal cavity and can be inhaled by medical staff when it is released into the room. In particular, long-term inhalation can seriously endanger human health. The increase of water vapor in the abdominal cavity and the decrease of lens temperature may cause the lens to fog. In order to solve this problem, it is proposed that the different degrees of smoke and fogging during laparoscopic surgery can be automatically identified according to the constructed smoke detection model and fogging detection model, and the suction speed can be adjusted to keep the field of view clear; the lens fogging caused by the decrease of lens temperature can be automatically identified, the air intake temperature can be adjusted, and the automatic defogger can be automatically removed, which has a better effect. The specific method is:

[0044] The laparoscope smoke and fog images were obtained as training sets and validation sets, and virtual smoke and fog images were generated after image enhancement processing; the virtual smoke and fog images were used as input to build smoke detection models and fog detection models based on the Yolov5 neural network model;

[0045] Real-time and continuous extraction of the effective image area of ​​the laparoscope, and division of the effective image area into multiple image detection areas according to preset rules;

[0046] The plurality of detection areas are used as inputs of the trained smoke detection model and fogging detection model to obtain prediction confidences of the plurality of image detection areas; smoke and fogging results of the plurality of image detection areas are determined according to the prediction confidences of the states of the plurality of image detection areas and preset thresholds;

[0047] Constructing a corresponding hidden Markov model according to the smoke and fog images, training the hidden Markov model through the training set, and obtaining a trained hidden Markov model;

[0048] The smoke and fogging results of the to-be-detected areas of multiple images are input into the trained hidden Markov model to obtain the smoke and fogging division results of the to-be-detected areas, and the mapping relationship between the division results and the volume of the extracted smoke, the temperature and volume of the supplied gas is set. The volume of the extracted smoke, and the temperature and volume of the supplied gas are controlled by the smoke and fogging division results.

[0049] The smoke and fog results of the area to be detected are input into the trained hidden Markov model to obtain the smoke and fog classification results. Next, the volume of smoke sucked out and the temperature and volume of the gas sent in are controlled according to these classification results. This control needs to be adjusted according to the degree of smoke and fog to achieve the appropriate treatment effect.

[0050] Specifically, a function or rule can be defined to map the indexing result to the relationship between the volume of smoke extracted and the temperature and volume of gas fed in. This relationship can be empirical, based on a physical model or data driven.

[0051] One possible way is to use a set of predefined rules or functions to achieve this mapping. For example, a threshold can be set to determine the volume of smoke sucked out and the temperature and volume of the gas supplied according to the degree of smoke and fogging. When the smoke level is low, the volume of smoke sucked out can be reduced and the temperature and volume of the gas supplied can be increased to more effectively remove the smoke. When the smoke concentration is high, the volume of smoke sucked out needs to be increased and the temperature and volume of the gas supplied needs to be appropriately adjusted.

[0052] Another approach is to use machine learning techniques, such as regression models or neural networks, to learn from the data the complex relationship between smoke and fogging classification results and the smoke fog volume and input gas parameters. By training such a model, the smoke fog volume and the temperature and volume of the input gas can be adjusted more accurately according to the classification results to achieve more effective smoke treatment.

[0053] In summary, the relationship between the graduation results and the volume of smoke extracted can be determined by a series of defined rules or by a machine learning model to achieve effective control of smoke and fogging.

[0054] Example 2

[0055] That is, in order to build an efficient laparoscopic smoke and fogging detection system, we first need to collect a certain number of laparoscopic images with smoke and fogging, which will constitute the training set and the validation set. By performing a series of enhancement processing on these images, such as rotation, scaling, color adjustment, etc., a series of virtual smoke and fogging images can be generated, thereby expanding the data set and improving the generalization ability of the model.

[0056] Next, we use the Yolov5 neural network model to build a smoke detection model and a fog detection model. Yolov5 is a powerful object detection algorithm that can accurately locate and classify objects in an image. By training on smoke and fog images, the model will be able to learn and recognize the characteristics of smoke and fog.

[0057] In real-time applications, valid image regions are continuously extracted from laparoscopic images and divided into multiple sub-regions to be detected according to preset rules. These sub-regions are then used as inputs to the trained smoke detection model and fog detection model. The model will output the prediction confidence of each sub-region, that is, the probability of smoke and fog in the image.

[0058] By comparing the predicted confidence with the preset threshold, it can be determined whether smoke and fogging exist in each sub-area. This step is real-time, and the operating parameters can be adjusted according to the confidence level, such as the opening of the suction pump or the heated air pump, to optimize the surgical field of view.

[0059] In order to further analyze the temporal dynamics of smoke and fog, the smoke and fog images under the same working condition are regarded as the same hidden Markov model (HMM). The sub-image sequences of smoke and fog are obtained by serializing and sampling these images. The DCT is used again to extract the features of these sub-images, and each image is converted into a sample sequence of HMM. The parameters of HMM are trained through the training set to obtain the trained HMM.

[0060] Finally, the smoke and fogging results of the areas to be detected in multiple images are input into the trained hidden Markov model to obtain the smoke and fogging classification results of the areas to be detected. According to the smoke classification results, the volume of smoke sucked out, as well as the temperature and volume of the gas delivered, can be controlled, thereby effectively managing the smoke and fogging problems in laparoscopic surgery and improving the safety and efficiency of surgery.

[0061] Example 3

[0062] A more specific part is to obtain laparoscopic images: collect laparoscopic images with various contents and angles, which can be obtained through laparoscopic surgery records, medical image databases or other relevant resources. These images will be used as training and testing data sets. Image enhancement processing: enhance the laparoscopic images to increase data diversity and enhance the robustness of the model. Use a variety of enhancement techniques, such as translation, cropping, rotation, brightness enhancement, and adding random noise. Through these processing methods, the training data can be expanded to cover a wider range of backgrounds, angles, and conditions. Generate virtual smoke and lens fogging images: Use filter rendering and blending mode adjustment to add virtual smoke effects to laparoscopic images. By simulating cloud effects, removing black areas, and adjusting blending modes, a realistic smoke effect can be achieved. Similarly, using the Gaussian blur algorithm can generate a blur effect to simulate the lens fogging effect. These processing methods can increase the scene effects of smoke and lens fogging in laparoscopic images.

[0063] The Yolo-v5 neural network model is constructed. The entire structure is divided into a backbone network (Backbone), a feature pyramid network (FPN), and a head (Head). The backbone network uses a residual network (Residual). The input image will first be feature extracted in the backbone network, and three feature layers will be obtained for the next step of network construction. The FPN feature pyramid fuses the three effective feature layers obtained from the backbone part. Combined with feature information of different scales, the effective feature layer is continued to be used to extract features. In the Panet structure, the features are upsampled and downsampled again to achieve feature fusion. The three enhanced effective feature layers obtained have width, height, and number of channels. Each feature point in the feature map has channel number features. Finally, the head determines whether the feature point has a corresponding target object. Based on the Yolov5 neural network model, a smoke detection model and a fogging detection model are constructed to detect the collected laparoscopic images, distinguish whether the smoke or fogging affects the clarity of the laparoscopic field of view, and select different processing methods according to different states.

[0064] When performing laparoscopic surgery, it is necessary to continuously extract the effective image area of ​​the laparoscope in real time, and divide the effective image area into multiple image detection areas according to preset rules;

[0065] Taking multiple areas to be detected as inputs of the trained smoke detection model and fogging detection model, obtaining prediction confidences of multiple image areas to be detected; determining smoke and fogging results of multiple image areas to be detected according to the prediction confidences of the states of the multiple image areas to be detected and preset thresholds; wherein, for each image area to be detected, using the trained smoke detection model and fogging detection model to make predictions, extracting the prediction results of smoke and fogging and the corresponding confidences from the model outputs;

[0066] Set preset thresholds for smoke and fog based on actual needs and performance evaluation, the characteristics of smoke and fog, and the tolerance for false detection and missed detection;

[0067] For each image to be detected area, the predicted confidence of smoke and fogging is compared with the corresponding preset threshold; if the predicted confidence of smoke is higher than the set threshold, the area is marked as having smoke; otherwise, it is marked as having no smoke; if the predicted confidence of fogging is higher than the set threshold, the area is marked as having fogging; otherwise, it is marked as having no fogging;

[0068] After the above judgment is performed on each image to be detected area, smoke and fog results of multiple image to be detected areas are obtained.

[0069] In order to ensure the effectiveness of the entire laparoscope smoke and fogging automatic removal, it is necessary to update the smoke detection model and the fogging detection model, including the following steps: collecting laparoscope smoke and fogging images, and annotating them to mark the smoke and fogging areas in the images; preprocessing and image enhancement of the collected data as training sets, and training the smoke detection model and the fogging detection model;

[0070] Based on the Yolov5 neural network architecture, the SGD training algorithm is adopted to optimize the parameters of the smoke detection model and the fogging detection model through back propagation to obtain the updated smoke detection model and the fogging detection model.

[0071] Example 4

[0072] A laparoscopic smoke automatic removal system is constructed based on a laparoscopic smoke and fog automatic removal method, comprising:

[0073] Acquisition display screen to collect real-time laparoscopic images;

[0074] The data processing module divides the effective image area of ​​the laparoscope extracted continuously in real time to obtain multiple image detection areas; based on the training set, a smoke detection model and a fogging detection model are constructed, the smoke and fogging images acquired in real time are divided into multiple image detection areas and input into the smoke detection model and the fogging detection model to obtain smoke and fogging results of multiple image detection areas; a corresponding hidden Markov model is constructed according to the smoke and fogging images, and the hidden Markov model is trained by the training set to obtain a trained hidden Markov model;

[0075] The control module sets the mapping relationship between the division result and the volume of smoke sucked out, the temperature and volume of the supplied gas, controls the volume of smoke discharged through the circulating gas according to the smoke division result of the area to be detected, and controls the volume of smoke sucked out through the circulating air pump and the temperature and volume of the supplied gas according to the smoke division result.

[0076] And the control module also includes: an air suction pump, which starts the corresponding level of the air suction pump for suction according to the smoke classification result, until the collected smoke image is clear, and the air suction pump is turned off; a heating air supply pump, which confirms the temperature of the gas to be supplied according to the smoke classification result, starts the heating air supply pump, until the collected fogging image is clear, and turns off the heating air supply pump; the air suction pump and the air supply pump can also be selected as circulation pumps as needed to realize air supply and exhaust.

[0077] It should be noted that, in the present invention, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or includes elements inherent to such process, method, article or device.

[0078] The above embodiments are merely examples of the present invention and do not limit the protection scope of the present invention. All designs that are the same or similar to the present invention fall within the protection scope of the present invention.

Claims

1. A method for automatically removing laparoscopic smoke and fogging, characterized in that: include: Acquire laparoscopic smoke and fog images as training sets and validation sets, and generate virtual smoke and fog images after processing; Based on the training set, a smoke detection model and a fog detection model are constructed, and the smoke and fog images acquired in real time are divided into multiple image detection areas and input into the smoke detection model and the fog detection model to obtain the smoke and fog results of the multiple image detection areas; Constructing a corresponding hidden Markov model according to the smoke and fog images, training the hidden Markov model through the training set, and obtaining a trained hidden Markov model; Input the smoke and fog results of the to-be-detected areas of the multiple images into the trained hidden Markov model to obtain the smoke and fog classification results of the to-be-detected areas; According to the mapping relationship between the set division result and the volume of the smoke sucked out, the temperature and volume of the gas supplied, the volume of the smoke sucked out, and the temperature and volume of the gas supplied are controlled by the division result.

2. The method for automatically removing laparoscopic smoke according to claim 1, characterized in that: The method of constructing a corresponding hidden Markov model according to smoke and fog images comprises the following steps: The smoke and fog images under the same working condition are used as the same hidden Markov model; Perform serial sampling on smoke and fog images to obtain smoke and fog image subsequences; The discrete cosine transform is used to extract features from the sequence sub-images; Convert each smoke and fog image into a sample sequence of a hidden Markov model; The parameters of the hidden Markov model are trained using the training set to obtain a trained hidden Markov model.

3. The method for automatically removing laparoscopic smoke according to claim 1, characterized in that: The method comprises the following steps: constructing a smoke detection model and a fogging detection model based on a training set, dividing the smoke and fogging images acquired in real time into a plurality of image detection areas and inputting the images into the smoke detection model and the fogging detection model, and obtaining smoke and fogging results of the plurality of image detection areas; Taking virtual smoke and fog images as input, a smoke detection model and a fog detection model are constructed based on the Yolov5 neural network model. Real-time and continuous extraction of the effective image area of ​​the laparoscope, and division of the effective image area into multiple image areas to be detected according to preset rules; The multiple areas to be detected are used as inputs of the trained smoke detection model and fogging detection model to obtain the prediction confidence of the areas to be detected in the multiple images; the smoke and fogging results of the areas to be detected in the multiple images are determined according to the prediction confidence of the states of the areas to be detected in the multiple images and the preset thresholds.

4. The method for automatically removing laparoscopic smoke according to claim 1, characterized in that: The method of acquiring a laparoscope smoke image and performing image enhancement processing to generate a virtual smoke and fogging image comprises the following steps: Collect laparoscopic images of various contents and angles as training and testing data sets; The laparoscopic images were enhanced by translation, cropping, rotation, brightness enhancement and adding random noise; Add virtual smoke effects to laparoscopic images using filter rendering and blending mode adjustment; The Gaussian blur algorithm is used to generate blur effects, simulate the lens fogging effect, and obtain virtual smoke and foggy images.

5. The method for automatically removing laparoscopic smoke according to claim 2, characterized in that: The Yolov5 neural network model includes a backbone network, a feature pyramid network and a head, wherein features are extracted through the backbone network, multi-scale features are fused through the feature pyramid network, and the target detection task is completed through the head part.

6. The method for automatically removing laparoscopic smoke according to claim 1, characterized in that: The method of determining the smoke and fog results of the regions to be detected in the multiple images according to the predicted confidence levels of the states of the regions to be detected in the multiple images and the preset thresholds specifically includes the following steps: For each image area to be detected, use the trained smoke detection model and fog detection model to make predictions, and extract the prediction results of smoke and fog and the corresponding confidence from the model output; Set preset thresholds for smoke and fog based on actual needs and performance evaluation, the characteristics of smoke and fog, and the tolerance for false detection and missed detection; For each image to be detected area, the predicted confidence of smoke and fogging is compared with the corresponding preset threshold; if the predicted confidence of smoke is higher than the set threshold, the area is marked as having smoke; otherwise, it is marked as having no smoke; if the predicted confidence of fogging is higher than the set threshold, the area is marked as having fogging; otherwise, it is marked as having no fogging; After the above judgment is performed on each image to be detected area, smoke and fog results of multiple image to be detected areas are obtained.

7. A method for automatically removing laparoscopic smoke and fogging according to claim 2, characterized in that: It also includes updates to the smoke detection model and fogging detection model, including the following steps: Collect laparoscopic smoke and fog images, annotate them, and mark the smoke and fog areas in the images; The collected data is preprocessed and image enhanced as a training set to train the smoke detection model and fogging detection model; Based on the Yolov5 neural network architecture, the SGD training algorithm is adopted to optimize the parameters of the smoke detection model and the fogging detection model through back propagation to obtain the updated smoke detection model and the fogging detection model.

8. A laparoscopic smoke automatic removal system, characterized in that: include: Acquisition display screen to collect real-time laparoscopic images; A data processing module divides the effective image area of ​​the laparoscope extracted continuously in real time to obtain multiple image areas to be detected; Based on the training set, a smoke detection model and a fog detection model are constructed, and the smoke and fog images acquired in real time are divided into multiple image detection areas and input into the smoke detection model and the fog detection model to obtain smoke and fog results of the multiple image detection areas; a corresponding hidden Markov model is constructed according to the smoke and fog images, and the hidden Markov model is trained by the training set to obtain a trained hidden Markov model; The control module sets the mapping relationship between the division result and the volume of smoke sucked out, the temperature and volume of the supplied gas, controls the volume of smoke discharged through the circulating gas according to the smoke division result of the area to be detected, and controls the volume of smoke sucked out through the circulating air pump and the temperature and volume of the supplied gas according to the smoke division result.

9. The automatic laparoscopic smoke removal system according to claim 8, characterized in that: The control module comprises: The suction pump starts the corresponding level of the suction pump according to the smoke classification result to perform suction until the collected smoke image is clear, and then the suction pump is turned off; The heating air pump determines the temperature of the gas to be supplied according to the fog classification result, turns on the heating air pump until the collected fogging image is clear, and then turns off the heating air pump.

Citation Information

Cited By

  • Waveform superposition optimization method and system for energy surgical equipment

    CN119360134A

  • Thyroid surgery image sharpening auxiliary system and working method thereof

    CN119488370A