Endoscope light source control method, device, processing unit and endoscope equipment

By using the sensing unit in the endoscope equipment to collect and compare gas data, determine the working environment in real time and adjust the light source mode, the problem of low endoscope light source control efficiency in the prior art is solved, and efficient and safe light source control is achieved.

CN117982087BActive Publication Date: 2025-04-25CHANGZHOU UNITED IMAGING HEALTHCARE SURGICAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211329597.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-27
Publication Date
2025-04-25
Estimated Expiration
2042-10-27

AI Technical Summary

Technical Problem

The existing endoscope light source control method is inefficient, and it is impossible to automatically adjust the light source working mode according to the working environment changes at the front end of the endoscope body insertion part in real time.

Method used

By providing a first sensing unit and a second sensing unit in the endoscope device, respectively, it is used to collect reference gas data and target gas data, and determine the current working environment through comparison processing, so as to control the light source working mode of the endoscope in real time.

Benefits of technology

Real-time adjustment of the endoscope light source working mode is realized, the efficiency and accuracy of light source control is improved, the rapid switching of the light source mode is ensured when the working environment changes, and the safety and reliability of the equipment are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117982087B_ABST
    Figure CN117982087B_ABST
Patent Text Reader

Abstract

The present application relates to an endoscope light source control method, device, processing unit and endoscope equipment. The method is applied to an endoscope equipment, which includes an endoscope host, an endoscope body, a first sensor unit and a second sensor unit; wherein the first sensor unit is used to collect reference gas data of the environment in which the endoscope host is located; the second sensor unit is arranged at the front end of the insertion part of the endoscope body, and is used to collect target gas data; the method includes: receiving the reference gas data transmitted by the first sensor unit and the target gas data transmitted by the second sensor unit; performing comparative processing on the reference gas data and the target gas data to determine the current working environment of the front end of the insertion part of the endoscope body; and controlling the light source working mode of the endoscope according to the current working environment. The use of this method can improve the efficiency of endoscope light source control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of medical device technology, and in particular to an endoscope light source control method, device, processing unit and endoscope equipment. Background Art

[0002] With the development of endoscope technology, endoscope light source control technology has emerged. Conventional endoscope light source control systems mainly include basic operating functions such as manual control of light source on and off, increasing and decreasing light source brightness, etc.

[0003] In traditional technology, the endoscope light source is often manually controlled by buttons on the device, or the endoscope is used to determine the current working environment of the endoscope through the image collected by the endoscope, and then the endoscope light source is adjusted. The current endoscope light source control method or traditional method has problems such as low efficiency. Summary of the invention

[0004] Based on this, it is necessary to provide an endoscope light source control method, device, processing unit and endoscope equipment that can improve efficiency in response to the above technical problems.

[0005] In a first aspect, the present application provides an endoscope light source control method, which is applied to an endoscope device, wherein the endoscope device includes an endoscope host, an endoscope body, a first sensor unit, and a second sensor unit; wherein the first sensor unit is used to collect reference gas data of the environment in which the endoscope host is located; the second sensor unit is arranged at the front end of the insertion part of the endoscope body, and is used to collect target gas data; the method includes:

[0006] receiving reference gas data transmitted by the first sensing unit and target gas data transmitted by the second sensing unit;

[0007] Comparing the reference gas data and the target gas data, and determining the current working environment of the front end of the insertion portion of the endoscope body;

[0008] Control the endoscope's light source working mode according to the current working environment.

[0009] In one embodiment, the reference gas data includes current reference gas data; the target gas data includes current target gas data; and the step of comparing the reference gas data and the target gas data to determine the current working environment of the front end of the insertion portion of the endoscope body includes:

[0010] Performing difference processing on the current reference gas data and the current target gas data to obtain the current gas data difference;

[0011] If the current gas data difference is greater than or equal to the preset value, the current working environment is determined to be the interior of the target object;

[0012] If the current gas data difference is less than a preset value, it is determined that the current working environment is outside the target object.

[0013] In one embodiment, the step of performing difference processing on the current reference gas data and the current target gas data to obtain the difference of the current gas data includes:

[0014] For at least one gas indicator, difference processing is performed on the reference gas data and the target gas data to obtain the current gas data difference of the corresponding gas indicator; wherein the gas indicator includes one or more of a gas pressure indicator, a gas humidity indicator, a gas temperature indicator, a carbon dioxide concentration indicator, and a gas particle concentration indicator.

[0015] In one embodiment, the target gas data also includes historical target gas data; and the step of controlling the light source working mode of the endoscope according to the current working environment includes:

[0016] Based on the initial value of the target gas, the current target gas data is predicted and processed to obtain the target gas prediction value; the initial value of the target gas is determined based on the change trend of the historical target gas data; the target gas prediction value is the prediction value of the current target gas data at the next moment;

[0017] Compare the current reference gas data with the target gas predicted value to obtain the predicted change;

[0018] Based on the predicted change, determine the predicted working environment;

[0019] Control the light source working mode according to the current working environment and the predicted working environment.

[0020] In one embodiment, the current reference gas data, the current target gas data and the historical target gas data are all data obtained after filtering processing.

[0021] In one embodiment, the step of determining the predicted working environment based on the predicted change amount includes:

[0022] If the predicted change is less than the preset value, the predicted working environment is determined to be the interior of the target object;

[0023] If the predicted change is greater than or equal to the preset value, the predicted working environment is determined to be outside the target object;

[0024] The steps of controlling the working mode of the light source according to the current working environment and the predicted working environment include:

[0025] If the current working environment and the predicted working environment are both inside the target object, the light source working mode is controlled to be the built-in mode;

[0026] If the current working environment is inside the target object and the predicted working environment is outside the target object, the light source working mode is controlled to be the removal mode;

[0027] If the current working environment and the predicted working environment are both outside the target object, the light source working mode is controlled to be an external mode;

[0028] If the current working environment is outside the target object, the predicted working environment is inside the target object, and the light source working mode is controlled to be the entry mode.

[0029] In a second aspect, the present application provides an endoscope light source control device, which is applied to an endoscope device, wherein the endoscope device includes an endoscope host, an endoscope body, a first sensor unit, and a second sensor unit; wherein the first sensor unit is used to collect reference gas data of the environment in which the endoscope host is located; the second sensor unit is arranged at the front end of the insertion part of the endoscope body, and is used to collect target gas data; the device includes:

[0030] A data receiving module, used for receiving reference gas data transmitted by the first sensing unit and target gas data transmitted by the second sensing unit;

[0031] A data processing module, used for comparing the reference gas data and the target gas data to determine the current working environment of the front end of the insertion portion of the endoscope body;

[0032] The mode control module is used to control the light source working mode of the endoscope according to the current working environment.

[0033] In a third aspect, the present application provides a processing unit including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0034] In a fourth aspect, the present application provides an endoscope device, the endoscope device comprising an endoscope host, an endoscope body, a first sensor unit and a second sensor unit; wherein the first sensor unit is used to collect reference gas data of the environment in which the endoscope host is located; the second sensor unit is arranged at the front end of the insertion part of the endoscope body, and is used to collect target gas data;

[0035] The endoscope host comprises a processing unit, which is respectively connected to the first sensing unit and the second sensing unit; the processing unit stores a computer program, and the steps of the above method are implemented when the processing unit executes the computer program.

[0036] In a fifth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above method when the computer program is executed by a processor.

[0037] The above-mentioned endoscope light source control method, device, processing unit and endoscope equipment obtain the reference gas data transmitted by the first sensor unit and the target gas data transmitted by the second sensor unit, and compare the reference gas data with the target gas data to determine the current working environment of the front end of the insertion part of the endoscope body, and control the light source working mode of the endoscope according to the current working environment, so that the endoscope equipment can adjust the light source working mode of the endoscope in real time according to the changes of the current working environment of the front end of the insertion part of the endoscope body. The data comparison and judgment has a small amount of calculation and a fast response speed, which improves the efficiency of switching the light source working mode of the endoscope with the current working environment of the front end of the insertion part of the endoscope body, and is safe and reliable. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 is a schematic flow chart of an endoscope light source control method in one embodiment;

[0039] Figure 2 is a schematic flow chart of the endoscope light source control steps in one embodiment;

[0040] Figure 3 is a flow chart of endoscope light source control steps in another embodiment;

[0041] Figure 4 is a flow chart of the endoscope light source control steps in yet another embodiment;

[0042] Figure 5 is a flow chart of an endoscope light source control method in an example;

[0043] Figure 6 is a structural block diagram of an endoscope light source control device in one embodiment;

[0044] Figure 7 FIG. 4 is a diagram showing the internal structure of a processing unit in one embodiment. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0046] At present, the control of endoscope light source mainly includes the following methods:

[0047] A method that relies on images collected by an endoscope light source system and uses image processing algorithms to determine whether the working environment of the endoscope is inside the body or outside the body. For example, a neural network algorithm is used, but model training is time-consuming, has poor real-time performance, and has a single source of judgment data;

[0048] The method of controlling the endoscope light source by using buttons on the endoscope device relies on the operator's experience and cannot adjust the light source working mode in real time.

[0049] In one embodiment, Figure 1 As shown, a method for controlling an endoscope light source is provided, and the method is applied to an endoscope device, wherein the endoscope device comprises an endoscope host, an endoscope body, a first sensor unit and a second sensor unit; wherein the first sensor unit is used to collect reference gas data of the environment in which the endoscope host is located; the second sensor unit is arranged at the front end of the insertion part of the endoscope body, and is used to collect target gas data; the method comprises:

[0050] Step 110, receiving reference gas data transmitted by the first sensing unit and target gas data transmitted by the second sensing unit;

[0051] Specifically, the first sensing unit and the second sensing unit may both include a gas sensor; the first sensing unit may be fixedly disposed in an atmospheric environment, and the reference gas data of the environment in which the endoscope host is located may be the gas data in the atmospheric environment; the target gas data may be the gas data of the working environment in which the front end of the insertion portion of the endoscope body is located, for example, when the front end of the insertion portion of the endoscope body is outside the body, the target gas data may be the gas data in the atmospheric environment, and when the front end of the insertion portion of the endoscope body is inside the body, the target gas data may be the gas data in the in vivo gas environment.

[0052] In some examples, the endoscope device may include a light source box, and the first sensing unit may be fixedly disposed on the light source box of the endoscope host; the second sensing unit may be disposed at the front end of the insertion portion of the endoscope body; the first sensing unit and the second sensing unit may include at least one sensor, for example, an air pressure sensor, an air humidity sensor, an air temperature sensor, an air carbon dioxide concentration sensor, an air particle concentration sensor, etc.

[0053] Step 120, comparing the reference gas data and the target gas data to determine the current working environment of the front end of the insertion portion of the endoscope body;

[0054] Specifically, the first sensing unit is always outside the body, and by comparing the reference gas data collected by the first sensing unit with the target gas data collected by the second sensing unit, the current working environment of the front end of the insertion portion of the endoscope can be determined.

[0055] In some examples, the reference gas data and the target gas data can be compared by presetting one or more thresholds, for example, obtaining a data difference between the reference gas data and the target gas data, and then obtaining the current working environment of the front end of the insertion portion of the endoscope body based on the relationship between the data difference and the threshold. The reference gas data and the target gas data can also be compared and processed by using a data processing algorithm, for example, a similarity algorithm, a neural network algorithm, etc., to obtain the current working environment of the front end of the insertion portion of the endoscope body.

[0056] Step 130, controlling the light source working mode of the endoscope according to the current working environment.

[0057] Specifically, according to the current working environment of the endoscope, the light source working mode of the endoscope can be controlled so that the light source working mode of the endoscope is adapted to the current working environment of the endoscope, thereby achieving real-time adjustment of the light source of the endoscope to meet the needs of current work.

[0058] In some examples, the light source working mode of the endoscope may include a built-in mode, an external mode, an entry mode, and a removal mode. If the current working environment of the endoscope is the interior of the target object, the light source working mode of the endoscope may be controlled to be the built-in mode; if the current working environment of the endoscope is the exterior of the target object, the light source working mode of the endoscope may be controlled to be the external mode; if the current working environment of the endoscope is the exterior of the target object, and the data difference between the reference gas data and the target gas data is in an increasing trend, for example, the data difference between the reference gas data and the target gas data increases to be close enough to the threshold value but still less than the threshold value, then the light source working mode of the endoscope may be controlled to be the entry mode; if the current working environment of the endoscope is the interior of the target object, and the data difference between the reference gas data and the target gas data is in a decreasing trend, for example, the data difference between the reference gas data and the target gas data decreases to be close enough to the threshold value but still greater than the threshold value, or the data difference between the reference gas data and the target gas data decreases to be equal to the threshold value, then the light source working mode of the endoscope may be controlled to be the removal mode. The embodiment of the present application obtains reference gas data transmitted by the first sensor unit and target gas data transmitted by the second sensor unit, and compares the reference gas data with the target gas data to determine the current working environment of the front end of the insertion portion of the endoscope body, and controls the light source working mode of the endoscope according to the current working environment, so that the endoscope device can adjust the light source working mode of the endoscope in real time according to the changes in the current working environment of the front end of the insertion portion of the endoscope body. The data comparison and judgment has a small amount of calculation and a fast response speed, which improves the efficiency of switching the light source working mode of the endoscope with the current working environment of the front end of the insertion portion of the endoscope body, and is safe and reliable.

[0059] In one embodiment, the reference gas data includes current reference gas data; the target gas data includes current target gas data; Figure 2 As shown, the steps of comparing the reference gas data and the target gas data to determine the current working environment of the front end of the insertion portion of the endoscope body include:

[0060] Step 210, performing difference processing on the current reference gas data and the current target gas data to obtain the current gas data difference;

[0061] Step 220, if the current gas data difference is greater than or equal to a preset value, then determining that the current working environment is the interior of the target object;

[0062] Step 230: If the current gas data difference is less than a preset value, it is determined that the current working environment is outside the target object.

[0063] Specifically, the current reference gas data and the current target gas data can be subjected to difference processing, for example, the current reference gas data and the current target gas data are subjected to difference of the same type of data to obtain the corresponding current gas data difference; the current gas data difference is compared with the corresponding preset value, if the current gas data difference is greater than or equal to the preset value, it indicates that the current target gas data differs greatly from the current reference gas data, and the current working environment of the second sensor unit is different from the environment of the first sensor unit, then the current working environment is determined to be the inside of the target object; the preset value can be set according to the empirical value; the target object can be the object to be detected by the endoscope device; if the current gas data difference is less than the preset value, it indicates that the current target gas data differs little from the current reference gas data, and the current working environment of the second sensor unit is the same as the environment of the first sensor unit, then the current working environment is determined to be the outside of the target object. By obtaining the current working environment of the endoscope, the automatic recognition of the endoscope working environment can be realized, and the operator does not need to manually adjust the light source of the endoscope based on the current working environment of the endoscope.

[0064] In one embodiment, the step of performing difference processing on the current reference gas data and the current target gas data to obtain the difference of the current gas data includes:

[0065] For at least one gas indicator, difference processing is performed on the reference gas data and the target gas data to obtain the current gas data difference of the corresponding gas indicator; wherein the gas indicator includes one or more of a gas pressure indicator, a gas humidity indicator, a gas temperature indicator, a carbon dioxide concentration indicator, and a gas particle concentration indicator.

[0066] Specifically, the reference gas data may include one or more of reference gas pressure data, reference gas humidity data, reference gas temperature data, reference gas carbon dioxide concentration data, and reference gas particle concentration data; the target gas data may include one or more of target gas pressure data, target gas humidity data, target gas temperature data, target gas carbon dioxide concentration data, and target gas particle concentration data; the reference gas data and the target gas data may be subjected to difference processing for at least one gas index to obtain the current gas data difference of the corresponding gas index, for example, the reference gas pressure data and the target gas pressure data may be subjected to difference processing for the gas pressure index to obtain the gas pressure data difference of the corresponding gas pressure index. Accordingly, the current gas data difference may include one or more of the gas pressure data difference of the corresponding gas pressure index, the gas humidity data difference of the corresponding gas humidity index, the gas temperature data difference of the corresponding gas temperature index, the carbon dioxide concentration data difference of the corresponding carbon dioxide concentration index, and the gas particle concentration data difference of the corresponding gas particle concentration index. The above current gas data difference can be compared with the corresponding preset value one by one. If the current gas data difference under each gas index is less than the corresponding preset value, the current working environment is determined to be the outside of the target object; if the current gas data difference under one or more gas indicators is greater than or equal to the corresponding preset value, the current working environment is determined to be the inside of the target object. By processing the above reference gas data and target gas data, the working environment of the endoscope can be identified from multiple gas indicators, which improves the accuracy of identification and enables more accurate control of the endoscope light source.

[0067] In some examples, the reference gas data collected by the first sensing unit and the target gas data collected by the second sensing unit may be gas data under the same gas index. For example, the first sensing unit may collect reference gas pressure data and reference gas humidity data, and the second sensing unit may collect target gas pressure data and target gas humidity data; further, the gas pressure data difference and the gas humidity data difference may be obtained, and for the gas pressure index and the gas humidity index, the gas pressure data difference may be compared with a preset value for the gas pressure index, and the gas humidity data difference may be compared with a preset value for the gas humidity index, and if both the gas pressure data difference and the gas humidity data difference are less than the corresponding preset values, it is determined that the current working environment is the outside of the target object; if the gas pressure data difference and / or the gas humidity data difference are greater than or equal to the corresponding preset values, it is determined that the current working environment is the inside of the target object.

[0068] In some examples, the reference gas data collected by the first sensing unit may be shown in the following table:

[0069]

[0070] In one embodiment, if Figure 3 As shown, the target gas data also includes historical target gas data; according to the current working environment, the steps of controlling the light source working mode of the endoscope include:

[0071] Step 310, based on the target gas initial value, the current target gas data is predicted and processed to obtain the target gas prediction value; the target gas initial value is determined based on the change trend of the historical target gas data; the target gas prediction value is the prediction value of the current target gas data at the next moment;

[0072] Step 320, comparing the current reference gas data and the target gas prediction value to obtain the predicted change;

[0073] Step 330, determining a predicted working environment based on the predicted change amount;

[0074] Step 340: Control the light source working mode according to the current working environment and the predicted working environment.

[0075] Specifically, the target gas data may include historical target gas data and current target gas data, wherein the historical target gas data may include gas data collected by the first sensor unit at multiple historical moments, and the current target gas data may be gas data collected by the first sensor unit at the current moment. Based on the change trend of the historical target gas data, data at one moment of the historical target gas data may be selected as the target gas initial value; based on the target gas initial value, data within a period of time in the target gas data may be selected to perform prediction processing on the current target gas data to obtain the target gas prediction value. The change from the current reference gas data to the reference gas data at the next moment may be ignored, and the current reference gas data and the target gas prediction value may be directly compared to obtain the predicted change amount. The same type of data of the current reference gas data and the target gas prediction value may be subtracted, for example, the gas indicators may be subtracted one by one to obtain the corresponding predicted change amount; based on the predicted change amount, the working environment of the front end of the insertion portion of the endoscope body at the next moment may be predicted to determine the predicted working environment. Furthermore, based on the current working environment and the predicted working environment, it can be determined whether the working environment of the endoscope will change, and whether the front end of the insertion portion of the endoscope body is in a certain critical state. For example, if the current working environment is inside the target object and the predicted working environment is outside the target object, it can be obtained that the front end of the insertion portion of the endoscope body is in a state of about to move out of the target object; if the current working environment is outside the target object and the predicted working environment is inside the target object, it can be obtained that the front end of the insertion portion of the endoscope body is in a state of about to enter the target object, and then the light source working mode of the endoscope is controlled accordingly in time, thereby improving the light source control efficiency of the endoscope, and can be used in the endoscope. When the front end of the insertion part of the endoscope body is in a critical state, the control strategy of the light source can be planned in advance. For example, when the front end of the insertion part of the endoscope body is about to move out of the target object, the brightness of the light source of the endoscope can be gradually reduced until the front end of the insertion part of the endoscope body is outside the target object, and the brightness of the light source of the endoscope can be adjusted to the lowest brightness or turned off; when the front end of the insertion part of the endoscope body is about to enter the target object, the light source of the endoscope can be turned on or gradually increased until the front end of the insertion part of the endoscope body is inside the target object, and the brightness of the light source of the endoscope can be adjusted to the standard working brightness, thereby realizing detailed endoscope light source control.

[0076] In some examples, if the change trend of historical target gas data is relatively stable, the data at the first moment in the historical target gas data can be selected as the target gas initial value; if the change trend of historical target gas data has certain fluctuations, the average value of data at multiple moments can be used as the target gas initial value to reduce the impact of the initial value on the prediction. The quadratic exponential smoothing algorithm can be used to process all data in the target gas data from the moment of the target gas initial value to the current moment to obtain the target gas prediction value.

[0077] In one embodiment, the current reference gas data, the current target gas data and the historical target gas data are all data obtained after filtering processing.

[0078] Specifically, the data detected by the gas sensor may be affected by external interference, and the previous and subsequent values ​​may fluctuate. A filtering processing algorithm can be used to process the data collected by the first sensor unit and the second sensor unit respectively, filter out the noise value of the value, and obtain the current reference gas data, the current target gas data, and the historical target gas data, which can effectively improve the accuracy of the detection value. The filtering processing algorithm can be implemented by one or more of the filtering algorithms such as the first-order filtering algorithm, the Kalman filtering algorithm, the median filtering algorithm, the arithmetic mean filtering algorithm, the recursive mean filtering algorithm, the median mean filtering algorithm, and the limited mean filtering algorithm.

[0079] In some examples, the current reference gas data, the current target gas data, and the historical target gas data may all be data obtained after being processed by a Kalman filter algorithm. Kalman filtering is an algorithm that uses a linear system state equation to optimally estimate the system state through system input and output observation data. Since the observation data includes the influence of noise and interference in the system, the optimal estimation can also be regarded as a filtering process.

[0080] In one embodiment, if Figure 4 As shown, based on the predicted change amount, the steps of determining the predicted working environment include:

[0081] Step 410, if the predicted change amount is less than a preset value, determining that the predicted working environment is the interior of the target object;

[0082] Step 420, if the predicted change amount is greater than or equal to the preset value, then determining that the predicted working environment is outside the target object;

[0083] Specifically, the predicted change is compared with the preset value. If the predicted change is less than the preset value, it indicates that the predicted value of the target gas is slightly different from the current reference gas data, and the predicted working environment of the second sensor unit is the same as the environment of the first sensor unit, then the predicted working environment is determined to be the outside of the target object. If the predicted change is greater than or equal to the preset value, it indicates that the predicted value of the target gas is significantly different from the current reference gas data, and the predicted working environment of the second sensor unit is different from the environment of the first sensor unit, then the predicted working environment is determined to be the inside of the target object. By obtaining the predicted working environment, the change trend of the front end of the insertion part of the endoscope can be predicted, thereby achieving detailed, real-time and rapid control of the endoscope light source.

[0084] In some examples, if the predicted change includes predicted change values ​​for multiple gas indicators, multiple preset values ​​can be set accordingly, and for each gas indicator, the predicted change value is compared with the preset value one by one. If the predicted change values ​​under each gas indicator are all less than the corresponding preset value, the predicted working environment is determined to be the outside of the target object; if the predicted change values ​​under one or more gas indicators are greater than or equal to the corresponding preset value, the predicted working environment is determined to be the inside of the target object.

[0085] The steps of controlling the working mode of the light source according to the current working environment and the predicted working environment include:

[0086] Step 430, if the current working environment and the predicted working environment are both inside the target object, control the light source working mode to the built-in mode;

[0087] Step 440, if the current working environment is inside the target object and the predicted working environment is outside the target object, the light source working mode is controlled to be a removal mode;

[0088] Step 450, if the current working environment and the predicted working environment are both outside the target object, control the light source working mode to an external mode;

[0089] Step 460: If the current working environment is outside the target object, the predicted working environment is inside the target object, and the working mode of the light source is controlled to be an entry mode.

[0090] Specifically, if the current working environment and the predicted working environment are both inside the target object, the light source working mode can be controlled to be a built-in mode, for example, parameters such as the brightness of the light source of the endoscope can be kept unchanged; if the current working environment is inside the target object and the predicted working environment is outside the target object, indicating that the front end of the insertion portion of the endoscope body is in a trend of moving out of the target object, the light source working mode can be controlled to be a removal mode, for example, the brightness of the light source of the endoscope can be controlled to decrease until the front end of the insertion portion of the endoscope body is completely moved out of the target object, the light source of the endoscope can be turned off or adjusted to the lowest brightness; if the current working environment and the predicted working environment are both outside the target object, the light source working mode can be controlled to be an external mode, for example, the light source of the endoscope can be turned off or adjusted to the lowest brightness; if the current working environment is outside the target object and the predicted working environment is inside the target object, indicating that the front end of the insertion portion of the endoscope body is in a trend of entering the target object, the light source working mode can be controlled to be an entry mode, for example, the brightness of the light source of the endoscope can be controlled to increase until the front end of the insertion portion of the endoscope body is completely inside the target object, and can be adjusted to the standard working brightness. By controlling the light source working mode according to the current working environment and the predicted working environment, the light source working mode of the endoscope can be quickly switched as the working environment at the front end of the insertion portion of the endoscope body changes.

[0091] In some examples, such as Figure 5As shown, the A value collected by the first sensor at time t and the B value collected by the second sensor at time t can be obtained respectively, wherein the first sensor and the second sensor can include air sensors, the A value includes one or more parameters under the standard atmosphere, and the B value includes one or more parameters according to environmental changes. Kalman filtering is performed on the A value and the B value respectively to obtain the filtered A value at time t and the filtered B value at time t. The parameters of the A value and the B value obtained at time t after filtering are compared and calculated respectively. If the parameters of the A value and the B value at time t after filtering are approximately equal, the light source working mode is adjusted to the built-in mode; if the parameters of the A value and the B value at time t after filtering are not approximately equal, the light source working mode is adjusted to the external mode. The obtained B value at time t after filtering is subjected to secondary exponential smoothing processing, and the parameter values ​​of the B value at time t+1 are estimated, and the A value at time t after filtering is compared and calculated with the parameters of the estimated B value at time t+1. If the A value at time t after filtering is approximately equal to the estimated B value at time t+1, and the current light source working mode is the external mode, the light source working mode is adjusted to the external mode; if the A value at time t after filtering is approximately equal to the estimated B value at time t+1, and the current light source working mode is the built-in mode, the light source working mode is adjusted to the removal mode; if the A value at time t after filtering is not approximately equal to the estimated B value at time t+1, and the current light source working mode is the built-in mode, the light source working mode is adjusted to the built-in mode; if the A value at time t after filtering is not approximately equal to the estimated B value at time t+1, and the current light source working mode is the external mode, the light source working mode is adjusted to the entry mode. The above example can adjust the light source working mode of the endoscope in real time, the data comparison judgment calculation amount is small, the response speed is fast, and the efficiency of switching the light source working mode of the endoscope with the current working environment at the front end of the insertion part of the endoscope body is improved, which is safe and reliable.

[0092] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0093] Based on the same inventive concept, the embodiment of the present application also provides an endoscope light source control device for implementing the endoscope light source control method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more endoscope light source control device embodiments provided below can refer to the limitations of the endoscope light source control method above, and will not be repeated here.

[0094] In one embodiment, Figure 6 As shown, an endoscope light source control device is provided, which is applied to an endoscope device, and the endoscope device includes an endoscope host, an endoscope body, a first sensor unit and a second sensor unit; wherein the first sensor unit is used to collect reference gas data of the environment in which the endoscope host is located; the second sensor unit is arranged at the front end of the insertion part of the endoscope body, and is used to collect target gas data; the device includes:

[0095] The data receiving module 610 is used to receive the reference gas data transmitted by the first sensing unit and the target gas data transmitted by the second sensing unit;

[0096] The data processing module 620 is used to compare the reference gas data and the target gas data to determine the current working environment of the front end of the insertion portion of the endoscope body;

[0097] The mode control module 630 is used to control the light source working mode of the endoscope according to the current working environment.

[0098] In one embodiment, the data processing module includes:

[0099] A difference processing unit, used for performing difference processing on current reference gas data and current target gas data to obtain a predicted change amount;

[0100] A first comparison unit, configured to determine that the current working environment is the interior of the target object if the predicted change amount is greater than or equal to a preset value;

[0101] The second comparison unit is used to determine that the current working environment is outside the target object if the predicted change amount is less than a preset value.

[0102] In one of the embodiments, the difference processing unit is also used to perform difference processing on reference gas data and target gas data for at least one gas indicator to obtain a predicted change in the corresponding gas indicator; wherein the gas indicator includes one or more of a gas pressure indicator, a gas humidity indicator, a gas temperature indicator, a carbon dioxide concentration indicator, and a gas particle concentration indicator.

[0103] In one embodiment, the mode control module includes:

[0104] A data prediction unit is used to perform prediction processing on the current target gas data based on the target gas initial value to obtain a target gas prediction value; the target gas initial value is determined based on the change trend of the historical target gas data; the target gas prediction value is a prediction value of the current target gas data at the next moment;

[0105] A third comparison unit is used to compare the current reference gas data and the target gas prediction value to obtain a predicted change amount;

[0106] An environment prediction unit, used for determining a predicted working environment based on the predicted change amount;

[0107] The mode control unit is used to control the working mode of the light source according to the current working environment and the predicted working environment.

[0108] In one embodiment, the environment prediction unit is further configured to determine that the predicted working environment is the interior of the target object if the predicted change amount is less than a preset value; and determine that the predicted working environment is the exterior of the target object if the predicted change amount is greater than or equal to the preset value;

[0109] The mode control unit is also used to control the light source working mode to a built-in mode if the current working environment and the predicted working environment are both inside the target object; to control the light source working mode to a removal mode if the current working environment is inside the target object and the predicted working environment is outside the target object; to control the light source working mode to an external mode if the current working environment and the predicted working environment are both outside the target object; and to control the light source working mode to an entry mode if the current working environment is outside the target object and the predicted working environment is inside the target object.

[0110] Each module in the above-mentioned endoscope light source control device can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0111] In one embodiment, a processing unit is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0112] In one embodiment, a processing unit is provided. The processing unit may be a terminal, and its internal structure diagram may be as follows: Figure 7As shown. The processing unit includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the processing unit is used to provide computing and control capabilities. The memory of the processing unit includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the processing unit is used to exchange information between the processor and an external device. The communication interface of the processing unit is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for controlling an endoscope light source is implemented. The display unit of the processing unit is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the processing unit can be a touch layer covering the display screen, or a key, trackball or touchpad set on the processing unit housing, or an external keyboard, touchpad or mouse.

[0113] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0114] In one embodiment, an endoscope device is provided, comprising an endoscope host, an endoscope body, a first sensor unit and a second sensor unit; wherein the first sensor unit is used to collect reference gas data of the environment in which the endoscope host is located; and the second sensor unit is arranged at the front end of the insertion part of the endoscope body, and is used to collect target gas data;

[0115] The endoscope host comprises a processing unit, which is respectively connected to the first sensing unit and the second sensing unit; the processing unit stores a computer program, and the steps of the above method are implemented when the processing unit executes the computer program.

[0116] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above method are implemented.

[0117] In one embodiment, a computer program product is provided, comprising a computer program, which implements the steps of the above method when executed by a processor.

[0118] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0119] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0120] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for controlling an endoscope light source, characterized in that: The method is applied to an endoscope device, which includes an endoscope host, an endoscope body, a first sensor unit and a second sensor unit; wherein the first sensor unit is used to collect reference gas data of the environment in which the endoscope host is located; the second sensor unit is arranged at the front end of the insertion part of the endoscope body, and is used to collect target gas data; the method includes: receiving the reference gas data transmitted by the first sensing unit and the target gas data transmitted by the second sensing unit; wherein the reference gas data includes current reference gas data; and the target gas data includes current target gas data and historical target gas data; Comparing the reference gas data and the target gas data, determining the current working environment of the front end of the insertion portion of the endoscope body; wherein the current working environment includes: the inside of the target object and the outside of the target object; According to the current working environment, control the light source working mode of the endoscope; wherein the light source working mode includes: built-in mode, external mode, entry mode and removal mode; Wherein, the step of controlling the light source working mode of the endoscope according to the current working environment includes: Based on the target gas initial value, the current target gas data is predicted and processed to obtain a target gas prediction value; the target gas initial value is determined based on the change trend of the historical target gas data; the target gas prediction value is a prediction value of the current target gas data at the next moment; Comparing the current reference gas data with the target gas prediction value to obtain a predicted change; Determining a predicted working environment based on the predicted change amount; The working mode of the light source is controlled according to the current working environment and the predicted working environment.

2. The method according to claim 1, characterized in that The step of comparing the reference gas data and the target gas data to determine the current working environment of the front end of the insertion portion of the endoscope body comprises: Performing difference processing on the current reference gas data and the current target gas data to obtain a current gas data difference; If the current gas data difference is greater than or equal to a preset value, determining that the current working environment is the interior of the target object; If the current gas data difference is less than the preset value, it is determined that the current working environment is outside the target object.

3. The method according to claim 2, characterized in that The step of performing difference processing on the current reference gas data and the current target gas data to obtain the current gas data difference includes: For at least one gas indicator, the reference gas data and the target gas data are difference processed to obtain the current gas data difference corresponding to the gas indicator; wherein the gas indicator includes one or more of a gas pressure indicator, a gas humidity indicator, a gas temperature indicator, a carbon dioxide concentration indicator, and a gas particle concentration indicator.

4. The method according to claim 1, characterized in that The current reference gas data, the current target gas data and the historical target gas data are all data obtained after filtering processing.

5. The method according to claim 1, characterized in that The step of determining the predicted working environment based on the predicted change amount includes: If the predicted change amount is less than a preset value, determining that the predicted working environment is the interior of the target object; If the predicted change amount is greater than or equal to the preset value, determining that the predicted working environment is outside the target object; The step of controlling the working mode of the light source according to the current working environment and the predicted working environment comprises: If the current working environment and the predicted working environment are both inside the target object, controlling the working mode of the light source to be a built-in mode; If the current working environment is inside the target object and the predicted working environment is outside the target object, controlling the working mode of the light source to be a removal mode; If the current working environment and the predicted working environment are both outside the target object, controlling the working mode of the light source to an external mode; If the current working environment is outside the target object and the predicted working environment is inside the target object, the working mode of the light source is controlled to be an entry mode.

6. An endoscope light source control device, characterized in that: The device is applied to an endoscope device, which includes an endoscope host, an endoscope body, a first sensor unit and a second sensor unit; wherein the first sensor unit is used to collect reference gas data of the environment in which the endoscope host is located; the second sensor unit is arranged at the front end of the insertion part of the endoscope body, and is used to collect target gas data; the device includes: A data receiving module, used for receiving the reference gas data transmitted by the first sensing unit and the target gas data transmitted by the second sensing unit; wherein the reference gas data includes current reference gas data; and the target gas data includes current target gas data and historical target gas data; A data processing module, used for comparing the reference gas data and the target gas data to determine the current working environment of the front end of the insertion portion of the endoscope body; wherein the current working environment includes: the inside of the target object and the outside of the target object; A mode control module, used to control the light source working mode of the endoscope according to the current working environment; wherein the light source working mode includes: built-in mode, external mode, entry mode and removal mode; Wherein, the mode control module includes: A data prediction unit, configured to perform prediction processing on the current target gas data based on the target gas initial value to obtain a target gas prediction value; the target gas initial value is determined based on the change trend of the historical target gas data; the target gas prediction value is a prediction value of the current target gas data at the next moment; A third comparison unit, used for comparing the current reference gas data with the target gas prediction value to obtain a prediction change; An environment prediction unit, used to determine a predicted working environment based on the predicted change amount; A mode control unit is used to control the working mode of the light source according to the current working environment and the predicted working environment.

7. A processing unit, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. An endoscope device, characterized in that: The endoscope device comprises an endoscope host, an endoscope body, a first sensor unit and a second sensor unit; wherein the first sensor unit is used to collect reference gas data of the environment in which the endoscope host is located; and the second sensor unit is arranged at the front end of the insertion part of the endoscope body, and is used to collect target gas data; The endoscope host includes a processing unit, which is connected to the first sensing unit and the second sensing unit respectively; the processing unit stores a computer program, and when the processing unit executes the computer program, the steps of the method described in any one of claims 1 to 5 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Intelligent integrated robot cavity mirror system with target positioning function

    CN109350239A

  • Endoscope focusing method and device, endoscope image processor and readable storage medium

    CN114785948A