Detection system, detection method, image processing equipment and endoscope system

By determining the air pump's injection status and the digestive tract wall movement parameters in the endoscope system and combining the injection status and movement parameters for detection, the problem of low detection accuracy of the endoscope system is solved, achieving higher detection accuracy and safety.

CN120753570APending Publication Date: 2025-10-10CHANGZHOU UNITED IMAGING HEALTHCARE SURGICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511152838.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-09
Publication Date
2025-10-10

AI Technical Summary

Technical Problem

Existing endoscope systems have low accuracy when detecting the patient's internal condition and are unable to meet actual needs.

Method used

By determining the gas injection state of the air pump and the motion parameters of the digestive tract cavity wall, state detection is performed in combination with the gas injection state and the motion parameters to obtain the digestive tract state detection result.

Benefits of technology

It improves the accuracy of detecting the patient's internal body status, reduces the detection cost, and avoids digestive tract complications through air pressure control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120753570A_ABST
    Figure CN120753570A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of data processing, and provides a detection system, a detection method, an image processing device and an endoscope system.The detection system comprises a parameter determination part and a first detection part, the parameter determination part determines the gas injection state of a gas pump and motion parameters of the cavity wall of the alimentary canal in the process of endoscopy of the alimentary canal of a user, and the first detection part determines the gas injection state of the gas pump and the motion parameters of the cavity wall of the alimentary canal; and then, the first detection part performs state detection on the alimentary canal according to the gas injection state and the motion parameters to obtain a state detection result of the alimentary canal. The detection system provided by the invention combines the gas injection state and the motion parameters of the cavity wall of the alimentary canal to realize accurate detection of the state in the body of the user, namely, the detection accuracy of the detection system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application filed in response to the Chinese patent application with the application date of "October 9, 2023", application number "202311303507.X", and name "A detection system, detection method, image processing equipment and endoscope system". Technical Field

[0002] The present application belongs to the field of data processing technology, and in particular relates to a detection system, a detection method, an image processing device and an endoscope system. Background Art

[0003] An endoscope system is a detection instrument that includes an endoscope, image processing equipment, optical equipment, and display equipment. It can enter the stomach through the mouth or other natural orifices to detect the patient's internal conditions. Currently, to ensure that operators use endoscopes in a standardized manner and to prevent complications such as gastrointestinal bleeding and perforation in patients, it is necessary to monitor the working status of the endoscope in real time while it is in the patient's body to detect any abnormalities under the action of the endoscope.

[0004] However, the current related technologies often have low accuracy in detecting the patient's internal status and are difficult to meet actual needs. Summary of the Invention

[0005] The embodiments of the present application provide a detection system, a detection method, an image processing device, and an endoscope system, which improve the accuracy of detecting the internal state of a patient.

[0006] In a first aspect, an embodiment of the present application provides a detection system, comprising:

[0007] A parameter determination unit, configured to determine the air injection state of the air pump and the motion parameters of the cavity wall of the digestive tract during endoscopic examination of the user's digestive tract; the air pump is configured to inject air into the user's digestive tract;

[0008] The first detection unit is used to detect the state of the digestive tract according to the gas injection state and the motion parameters to obtain the digestive tract state detection result.

[0009] The detection system provided in the embodiment of the present application combines the gas injection state and the movement parameters of the cavity wall of the digestive tract to achieve accurate detection of the patient's internal state, that is, improves the detection accuracy of the detection system.

[0010] In a possible implementation of the first aspect, the detection system further includes:

[0011] a first data determining unit, configured to determine current air pressure data of the digestive tract;

[0012] Accordingly, the first detection unit specifically includes:

[0013] The third detection unit is used to detect the state of the digestive tract according to the current air pressure data, gas injection state and movement parameters to obtain the state detection result.

[0014] In a possible implementation of the first aspect, the parameter determination unit specifically includes:

[0015] A first image acquisition unit is used to acquire a set number of consecutive frames of cavity wall images of the digestive tract;

[0016] The second detection unit is used to detect the cavity wall images for a set number of consecutive frames to obtain motion parameters.

[0017] In a possible implementation of the first aspect, the gas injection state includes at least two states; the first detection unit specifically includes:

[0018] A first threshold value acquiring unit is configured to acquire a target detection threshold value associated with a gas injection state; wherein the target detection threshold values ​​associated with different gas injection states are not completely the same;

[0019] The first processing unit is used to process the motion parameters based on the target detection threshold to obtain a digestive tract state detection result.

[0020] In a possible implementation of the first aspect, the motion parameter includes multiple parameters, and for a single motion parameter, the target detection threshold associated with the motion parameter is not completely the same under different gas injection states.

[0021] In a possible implementation of the first aspect, the gas injection state includes before gas injection, during gas injection, and after gas injection, and the motion parameter includes peristalsis amplitude;

[0022] Correspondingly, the target detection threshold of the peristaltic amplitude associated with before gas injection is greater than the target detection threshold of the peristaltic amplitude associated with during gas injection, and greater than the target detection threshold of the peristaltic amplitude associated with after gas injection; the target detection threshold of the peristaltic amplitude associated with after gas injection is greater than the target detection threshold of the peristaltic amplitude associated with during gas injection.

[0023] In a possible implementation of the first aspect, the gas injection state includes before gas injection, during gas injection, and after gas injection, and the motion parameter includes peristaltic frequency;

[0024] Accordingly, the target detection threshold of the peristaltic frequency associated with before gas insufflation and the target detection threshold of the peristaltic frequency associated with after gas insufflation are both smaller than the target detection threshold of the peristaltic frequency associated with during gas insufflation.

[0025] In a possible implementation of the first aspect, the gas injection state includes before gas injection, during gas injection, and after gas injection, and the motion parameter includes the number of abnormal peristalsis directions;

[0026] Accordingly, the target detection threshold of the number of abnormal peristalsis directions associated with before gas injection and the target detection threshold of the number of abnormal peristalsis directions associated with after gas injection are both smaller than the target detection threshold of the number of abnormal peristalsis directions associated with during gas injection.

[0027] In one possible implementation of the first aspect, the motion parameter includes at least one of peristaltic amplitude, peristaltic frequency, and the number of abnormal peristaltic directions; and the first processing unit specifically includes:

[0028] a first result determining unit configured to obtain a state detection result of abnormal cavity wall peristalsis when the motion parameters include the peristaltic amplitude and the peristaltic frequency, the peristaltic amplitude is greater than a target detection threshold corresponding to the peristaltic amplitude, and the peristaltic frequency is greater than a target detection threshold corresponding to the peristaltic frequency;

[0029] and / or,

[0030] The second result determination unit is used to obtain a state detection result of abnormal peristalsis of the cavity wall when the motion parameter includes the number of abnormal peristalsis directions and the number of abnormal peristalsis directions is greater than a target detection threshold corresponding to the number of abnormal peristalsis directions.

[0031] In a possible implementation of the first aspect, the motion parameter includes at least one parameter selected from the group consisting of peristaltic amplitude, peristaltic frequency, and the number of abnormal peristaltic directions;

[0032] Correspondingly, the current air pressure data is negatively correlated with the peristaltic amplitude, positively correlated with the peristaltic frequency, and positively correlated with the number of abnormal peristaltic directions.

[0033] In a possible implementation of the first aspect, the first data determining unit specifically includes:

[0034] a second data determining unit, configured to determine initial air pressure data and an air pressure increase amplitude of the digestive tract;

[0035] The third data determining unit is used to determine the current air pressure data according to the initial air pressure data and the air pressure increase amplitude.

[0036] In a possible implementation of the first aspect, the second data determining unit specifically includes:

[0037] a second image acquisition unit, configured to acquire a first image and a second image of the digestive tract; wherein the first image refers to an endoscopic image of the digestive tract when the air pump starts to inflate gas; and the second image refers to an endoscopic image of the digestive tract during the inflation process;

[0038] a fourth data determining unit, configured to determine initial air pressure data based on the first image;

[0039] The fifth data determining unit is configured to determine an increase in air pressure based on the first image and the second image.

[0040] In a possible implementation of the first aspect, the second image acquisition unit specifically includes:

[0041] an instruction receiving unit configured to receive a first instruction from the air pump, the first instruction being used to indicate that the air pump starts to inject air;

[0042] an image determining unit configured to determine, according to the first instruction, an endoscope image frame collected at the first time as the first image.

[0043] In a possible implementation of the first aspect, the detection system further includes:

[0044] an air pump control unit configured to control the air pump to stop injecting air or maintain injecting air according to the current air pressure data.

[0045] In a possible implementation of the first aspect, the air pump control unit specifically includes:

[0046] a first output unit configured to output a first prompt information when the current air pressure data does not satisfy a set condition, the first prompt information being used to prompt an operator to control the air pump to stop injecting air;

[0047] a second output unit configured to output a second prompt information when the current air pressure data satisfies the set condition, the second prompt information being used to prompt the operator to control the air pump to maintain injecting air.

[0048] In a second aspect, an embodiment of the present application provides a detection method, including:

[0049] In the process of endoscopy for a digestive tract of a user, determining an air injection state of an air pump and a movement parameter of a cavity wall of the digestive tract, the air pump being used to inject air into the digestive tract of the user;

[0050] performing state detection on the digestive tract according to the air injection state and the movement parameter, to obtain a state detection result of the digestive tract.

[0051] The detection method provided by the embodiment of the present application combines the air injection state and the movement parameter to achieve accurate detection on the state in the body of the patient, that is, to improve the detection accuracy of the detection system.

[0052] In a possible implementation of the second aspect, the method provided by the embodiment of the present application further includes:

[0053] determining current air pressure data of the digestive tract;

[0054] Correspondingly, the state detection on the digestive tract according to the air injection state and the movement parameter to obtain the state detection result of the digestive tract includes:

[0055] The digestive tract is tested for status based on current air pressure data, gas injection status, and motion parameters to obtain status test results.

[0056] In the above embodiment, based on the gas injection state and movement parameters, the current gas pressure data of the digestive tract is further combined to detect the state of the user's digestive tract, thereby further improving the detection accuracy of the user's digestive tract.

[0057] In a possible implementation of the second aspect, determining a motion parameter of a lumen wall of the digestive tract includes:

[0058] Acquire a set number of consecutive frames of cavity wall images of the digestive tract;

[0059] The cavity wall images of the set number of frames are detected to obtain motion parameters.

[0060] In the above embodiment, accurate motion parameters of the cavity wall can be obtained by detecting a set number of consecutive frames of cavity wall images of the digestive tract.

[0061] In a possible implementation of the second aspect, the gas injection state includes at least two states; and the digestive tract state detection is performed based on the gas injection state and the motion parameter to obtain a digestive tract state detection result, including:

[0062] Obtaining a target detection threshold associated with the gas injection state; wherein the target detection thresholds associated with different gas injection states are not completely the same;

[0063] Based on the target detection threshold, the motion parameters are processed to obtain the state detection results of the digestive tract.

[0064] In the above embodiment, since the movement patterns of the cavity wall of the user's digestive tract are different under different gas injection states, a more accurate state detection result can be obtained by obtaining a target detection threshold associated with the gas injection state and processing the motion parameters according to the target detection threshold.

[0065] In a possible implementation of the second aspect, the motion parameters include multiple parameters, and for a single motion parameter, the associated target detection threshold is not exactly the same under different gas injection states, thereby improving the accuracy of subsequent processing of the motion parameter according to the target detection threshold.

[0066] In a possible implementation of the second aspect, the gas injection state includes before gas injection, during gas injection, and after gas injection, and the motion parameter includes peristaltic amplitude;

[0067] Correspondingly, the target detection threshold of the peristaltic amplitude associated with before gas injection is greater than the target detection threshold of the peristaltic amplitude associated with during gas injection, and greater than the target detection threshold of the peristaltic amplitude associated with after gas injection; the target detection threshold of the peristaltic amplitude associated with after gas injection is greater than the target detection threshold of the peristaltic amplitude associated with during gas injection, so that in different subsequent gas injection states, the peristaltic amplitude of the cavity wall of the digestive tract in the user's body can be flexibly detected according to different target detection thresholds to obtain accurate state detection results.

[0068] In a possible implementation of the second aspect, the gas injection state includes before gas injection, during gas injection, and after gas injection, and the motion parameter includes peristaltic frequency;

[0069] Accordingly, the target detection threshold for the peristaltic frequency associated with the patient before and after gas insufflation is lower than the target detection threshold for the peristaltic frequency associated with gas insufflation. This allows for flexible detection of the peristaltic frequency of the patient's digestive tract wall under different gas insufflation conditions based on different target detection thresholds, resulting in accurate state detection results.

[0070] In a possible implementation of the second aspect, the gas injection state includes before gas injection, during gas injection, and after gas injection, and the motion parameter includes the number of abnormal peristalsis directions;

[0071] Accordingly, the target detection threshold for the number of abnormal peristaltic movements before gas insufflation and the target detection threshold for the number of abnormal peristaltic movements after gas insufflation are both lower than the target detection threshold for the number of abnormal peristaltic movements during gas insufflation. This allows for the flexible detection of the number of abnormal peristaltic movements of the lumen wall of the user's digestive tract under different gas insufflation conditions according to different target detection thresholds, thereby obtaining accurate status detection results.

[0072] In one possible implementation of the second aspect, the motion parameter includes at least one of peristaltic amplitude, peristaltic frequency, and the number of abnormal peristaltic directions; and the processing of the motion parameter based on the target detection threshold to obtain a digestive tract status detection result includes:

[0073] When the motion parameters include peristalsis amplitude and peristalsis frequency, the peristalsis amplitude is greater than the target detection threshold corresponding to the peristalsis amplitude, and the peristalsis frequency is greater than the target detection threshold corresponding to the peristalsis frequency, a state detection result of abnormal cavity wall peristalsis is obtained.

[0074] In the above embodiment, whether the peristalsis of the cavity wall of the user's digestive tract is abnormal can be accurately detected by the peristalsis amplitude and amplitude frequency.

[0075] In a possible implementation of the second aspect, the motion parameter comprises at least one of a peristalsis amplitude, a peristalsis frequency, and a peristalsis direction abnormality frequency; and the processing of the motion parameter based on the target detection threshold to obtain the state detection result of the digestive tract comprises:

[0076] When the motion parameter comprises the peristalsis direction abnormality frequency, the peristalsis direction abnormality frequency is greater than the target detection threshold corresponding to the peristalsis direction abnormality frequency, and the state detection result of the abnormal peristalsis of the cavity wall is obtained.

[0077] In the above implementation, the peristalsis direction abnormality frequency can be used to accurately detect whether the cavity wall of the digestive tract of the user is abnormal.

[0078] In a possible implementation of the second aspect, the motion parameter comprises at least one of a peristalsis amplitude, a peristalsis frequency, and a peristalsis direction abnormality frequency;

[0079] Correspondingly, the current air pressure data is negatively correlated with the peristalsis amplitude, positively correlated with the peristalsis frequency, and positively correlated with the peristalsis direction abnormality frequency, so that the detection system can accurately detect the motion parameter according to the current air pressure data.

[0080] In a possible implementation of the second aspect, the current air pressure data of the digestive tract is determined by:

[0081] The initial air pressure data and the air pressure increase amplitude of the digestive tract are determined.

[0082] The current air pressure data is determined according to the initial air pressure data and the air pressure increase amplitude.

[0083] In the above implementation, the initial air pressure data and the air pressure increase amplitude can be used to accurately determine the current air pressure data.

[0084] In a possible implementation of the second aspect, the initial air pressure data and the air pressure increase amplitude of the digestive tract are determined by:

[0085] The first image and the second image of the digestive tract are acquired; wherein the first image refers to an endoscope image of the digestive tract when the air pump starts to inject air; and the second image refers to an endoscope image of the digestive tract in the process of air injection.

[0086] The initial air pressure data is determined according to the first image.

[0087] The air pressure increase amplitude is determined according to the first image and the second image.

[0088] In the above embodiment, the detection system can determine the initial air pressure data through the first image of the digestive tract obtained, and determine the air pressure increase amplitude through the first image and the second image. There is no need to install a pressure sensor in the detection system to obtain the air pressure data of the user's digestive tract, thereby reducing costs.

[0089] In a possible implementation of the second aspect, acquiring a first image of the digestive tract includes:

[0090] receiving a first instruction from the air pump; the first instruction is used to indicate that the air pump starts to inject gas;

[0091] According to the first instruction, the endoscopic image frame collected at the first moment is used as the first image.

[0092] In the above embodiment, the accuracy of determining the initial air pressure data is improved.

[0093] In a possible implementation of the second aspect, the detection method provided in the embodiments of the present application further includes:

[0094] According to the current air pressure data, the air pump is controlled to stop or maintain air injection.

[0095] In the above embodiment, the detection system can accurately control whether the air pump needs to continue to inflate air based on the current air pressure data, so as to avoid excessively high or low air pressure in the user's digestive tract and prevent complications for the user.

[0096] In a possible implementation of the second aspect, controlling the air pump to stop or maintain air injection according to current air pressure data includes:

[0097] When the current air pressure data does not meet the set conditions, a first prompt message is output; the first prompt message is used to prompt the operator to control the air pump to stop gas injection;

[0098] When the current air pressure data meets the set conditions, a second prompt message is output; the second prompt message is used to prompt the operator to control the air pump to maintain the air injection action.

[0099] In the above embodiment, the detection system can detect whether the current air pressure data meets the set conditions, and promptly remind the operator to control the air pump accordingly.

[0100] An embodiment of the present application provides a detection method that, during an endoscopic examination of a user's digestive tract, determines the air pump's inflated state and the motion parameters of the digestive tract's lumen. The method then detects the digestive tract based on the inflated state and the motion parameters, yielding a digestive tract status detection result. The detection method provided herein combines the inflated state and the motion parameters of the digestive tract's lumen to accurately detect the user's internal state, thereby improving the detection accuracy of the detection system.

[0101] In a third aspect, an embodiment of the present application provides an image processing device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the detection method as described in any one of the second aspects above is implemented.

[0102] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the detection method as described in any one of the above-mentioned second aspects is implemented.

[0103] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on an image processing device, the image processing device can execute the detection method described in any one of the above-mentioned second aspects. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0105] Figure 1 is a structural diagram of an endoscope system provided in one embodiment of the present application;

[0106] Figure 2 It is a structural diagram of a detection system provided in one embodiment of the present application;

[0107] Figure 3 This is a flow chart for implementing a detection method provided in one embodiment of the present application;

[0108] Figure 4 This is a schematic diagram of the specific structure of a parameter determination unit in a detection system provided by an embodiment of the present application;

[0109] Figure 5 is a flow chart for implementing a detection method provided in another embodiment of the present application;

[0110] Figure 6 This is a schematic diagram of the specific structure of the first detection unit in the detection system provided by one embodiment of the present application;

[0111] Figure 7 This is a flow chart of an implementation of a detection method provided in yet another embodiment of the present application;

[0112] Figure 8 is a structural diagram of a detection system provided by another embodiment of the present application;

[0113] Figure 9 is a flowchart of an implementation of a detection method provided by another embodiment of the present application;

[0114] Figure 10 is a specific structural diagram of a first data determination unit in a detection system provided by an embodiment of the present application;

[0115] Figure 11 is a flowchart of an implementation of a detection method provided by another embodiment of the present application;

[0116] Figure 12 is a structural diagram of an image processing device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0117] In the following description, for the purposes of explanation and not limitation, specific details are set forth, such as particular sequences of steps, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application can be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known methods, devices, circuits, and

[0118] It is to be understood that the terminology "includes", "has", "holds", "contains" and / or "comprising", when used in this specification and in the following claims, indicates the presence of the described features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0119] It is also to be understood that the terminology "and / or" when used in this specification and in the following claims, refers to at least one of the items, or any combination of one or more of the items, and includes all possible combinations of one or more of the items.

[0120] As used in this specification and in the claims, the term "if" can be interpreted as meaning "when", or "once", or "in response to a determination", or "in response to detecting", as appropriate, depending on the context. Similarly, the phrase "if determined", or "if detected" can be interpreted as meaning "once determined", or "in response to determining", or "once detected", or "in response to detecting", as appropriate, depending on the context.

[0121] In addition, in the description of the specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance.

[0122] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.

[0123] In practical applications, an endoscope system is a detection instrument that can be inserted into the stomach through the mouth or other natural orifices to examine the user's internal conditions. However, because the endoscope system must enter the user's body to perform inspections, complications such as gastrointestinal bleeding and perforation are prone to occur when using the endoscope system for inspection. Among them, gastrointestinal bleeding is often caused by excessive air supply or the user's own strong gag reflex, which causes tears in the gastric cardia and the mucosa and submucosa of the distal esophagus and bleeding. Gastrointestinal perforation is most likely to occur in the pharyngeal recess. The causes of perforation in the pharyngeal recess are often due to patient non-cooperation or the operator's blind insertion or forced advancement of the endoscope. Therefore, in order to monitor the status of the user's digestive tract in real time after the endoscope system enters the user's body, help the operator more accurately control the endoscope system's advancement process, and thus avoid or reduce the risk of the user experiencing the above-mentioned complications, all embodiments of the present application also include a detection system, which is used to accurately detect the status of the user's digestive tract during the endoscopic examination of the user's digestive tract.

[0124] Based on this, see Figure 1 , Figure 1 FIG is a schematic diagram of the structure of an endoscope system provided in one embodiment of the present application. Figure 1 As shown, the endoscope system 1 provided in an embodiment of the present application includes: an endoscope 10, a detection system 20, a light source device 30, and a display device 40. The endoscope 10 is connected to the light source device 30 by wire, the light source device 30 is communicatively connected to the detection system 20, and the detection system 20 is communicatively connected to the display device 40. The endoscope 10 and the light source device 30 can be connected by a light source cable. The communication connection method can be a wired communication connection or a wireless communication connection.

[0125] In some embodiments, the light source device 30 and the detection system 20 may also be the same device.

[0126] The light source device 30 is used to provide various lights to the endoscope 10 .

[0127] The detection system 20 is used to detect the status of the user's digestive tract in real time during the process of the endoscope 10 examining the user's digestive tract, and obtain the status detection result of the user's digestive tract.

[0128] How the detection system 20 specifically detects the status of the user's digestive tract can be found in the description of the detection system shown in the figure below, and will not be elaborated here.

[0129] In practical applications, the detection system 20 may be an image processing device or an AI box.

[0130] The display device 40 is used to display an endoscopic image of the user's digestive tract in real time while the endoscope 10 is examining the user's digestive tract.

[0131] In one embodiment of the present application, the display device 40 is further configured to receive the status detection result of the user's digestive tract sent by the detection system 20 and display the status detection result.

[0132] See also Figure 2 , Figure 2 This is a schematic diagram of the structure of the detection system provided in one embodiment of the present application. For ease of explanation, only the parts related to the embodiment of the present application are shown, which are detailed as follows:

[0133] like Figure 2 As shown, the detection system 20 includes a parameter determination unit 21 and a first detection unit 22 .

[0134] Specifically, the parameter determination unit 21 is used to determine the air injection state of the air pump and the motion parameters of the cavity wall of the digestive tract during the endoscopic examination of the user's digestive tract; the air pump is used to inject air into the user's digestive tract (such as Figure 3 Step S101 shown).

[0135] The first detection unit 22 is used to detect the state of the digestive tract according to the gas injection state and the motion parameters, and obtain the digestive tract state detection result (such as Figure 3 Step S102 shown).

[0136] In actual applications, when an operator uses an endoscope system to inspect a user's digestive tract, in order to accurately understand the status of the user's digestive tract in real time and to promptly control the digestive tract inspection process, the operator can trigger a status inspection instruction for the inspection system. The status inspection instruction is used to instruct the inspection system 20 to start inspecting the status of the user's digestive tract.

[0137] In the embodiment of the present application, the detection system 20 detecting a status detection instruction may include detecting that an operator has executed a preset operation. The preset operation may be determined based on actual needs and is not limited herein. For example, the preset operation may include: a preset control in the detection system 20 being triggered, or detecting that the endoscope 10 has entered the user's digestive tract. Based on this, when the detection system 20 detects that a preset control in itself has been triggered, or detects that the endoscope 10 has entered the user's digestive tract, it indicates that the preset operation has been detected, i.e., the status detection instruction has been detected.

[0138] In the embodiment of the present application, after detecting the status detection instruction, the detection system 20 can detect in real time whether the endoscope 10 has entered the user's digestive tract.

[0139] In one implementation of the embodiment of the present application, the detection system 20 can determine whether the endoscope 10 has entered the user's digestive tract through the acquired endoscopic image to determine whether the endoscope 10 is examining the user's digestive tract.

[0140] Based on this, the parameter determination unit 21 can determine the air injection state of the air pump and the motion parameters of the cavity wall of the user's digestive tract in real time during the process of the endoscope 10 examining the user's digestive tract.

[0141] It should be noted that the gas injection state includes but is not limited to before gas injection, during gas injection and after gas injection.

[0142] The embodiments of the present application do not impose too many restrictions on the specific method of obtaining the gas injection state, and can be set according to actual needs. For example, the parameter determination unit 21 can actively or passively obtain the gas injection state. For example, in one embodiment of the present application, since the air pump sends a first signal to start gas injection to the parameter determination unit 21 when the gas injection starts, and the air pump sends a second signal to end gas injection to the parameter determination unit 21 when the gas injection ends, therefore, in this embodiment, when the parameter determination unit 21 does not detect any signal sent by the air pump, it can be determined that the gas injection state of the air pump is before gas injection, when the parameter determination unit 21 detects the first signal sent by the air pump, it can be determined that the gas injection state of the air pump is during gas injection, and when the parameter determination unit 21 detects the second signal sent by the air pump, it can be determined that the gas injection state of the air pump is after gas injection. In other embodiments of the present application, the gas injection state can also be obtained by actively querying whether the air pump is injecting gas, or by using a pressure sensor to detect air pressure, or by using image or video recognition to identify the gas injection state.

[0143] In the embodiment of the present application, the motion parameter of the cavity wall refers to the motion characteristics of the cavity wall of the digestive tract when it moves during the process of examining the user's digestive tract with the endoscope 10.

[0144] Since the peristalsis of the cavity wall of the user's digestive tract is different under different gas injection states, in the embodiment of the present application, the first detection unit 22 can perform state detection on the user's digestive tract based on the gas injection state and motion parameters to obtain the state detection result of the user's digestive tract.

[0145] The status detection result is used to indicate whether the peristalsis of the cavity wall of the user's digestive tract is abnormal. Specifically, if the peristalsis of the cavity wall of the user's digestive tract is abnormal, the status detection result is abnormal cavity wall peristalsis; if the peristalsis of the cavity wall of the user's digestive tract is normal, the status detection result is normal cavity wall peristalsis.

[0146] In another embodiment of the present application, the detection system 20 may further include an information prompting unit (not shown in the figure).

[0147] Therefore, after obtaining the digestive tract status detection result, the first detection unit 22 can send the status detection result to the information prompt unit. The information prompt unit displays the status detection result. For example, if the status detection result is that the cavity wall peristalsis is abnormal, the information prompt unit can display the words "abnormal cavity wall peristalsis" to let the operator know that the cavity wall peristalsis of the user's digestive tract is abnormal at this time; if the status detection result is that the cavity wall peristalsis is normal, the information prompt unit can display the words "normal cavity wall peristalsis" to let the operator know that the cavity wall peristalsis of the user's digestive tract is normal at this time.

[0148] In one implementation of this embodiment, the information prompt unit may include a voice prompt unit. Therefore, when the information prompt unit displays the words "abnormal cavity wall peristalsis", the voice prompt unit may output voice information containing "abnormal cavity wall peristalsis"; when the information prompt unit displays the words "normal cavity wall peristalsis", the voice prompt unit may output voice information containing "normal cavity wall peristalsis".

[0149] As can be seen above, the detection system provided by an embodiment of the present application includes a parameter determination unit and a first detection unit. During an endoscopic examination of a user's digestive tract, the parameter determination unit determines the air pump's gas injection state and the motion parameters of the digestive tract's lumen wall. The first detection unit then performs digestive tract state detection based on the gas injection state and the motion parameters to obtain a digestive tract state detection result. The detection system provided by the present application combines the gas injection state and the motion parameters of the digestive tract's lumen wall to accurately detect the user's internal state, thereby improving the detection accuracy of the detection system.

[0150] See also Figure 4 , Figure 4 This is a schematic diagram of the specific structure of the parameter determination unit in the detection system provided by an embodiment of the present application. Figure 4 As shown, the parameter determination unit 21 in this embodiment specifically includes:

[0151] The first image acquisition unit 211 is used to acquire a set number of consecutive frames of cavity wall images of the digestive tract (such as Figure 5 Step S1011 shown).

[0152] The second detection unit 212 is used to detect the cavity wall images of the set number of consecutive frames to obtain motion parameters (such as Figure 5 Step S1012 shown).

[0153] In this embodiment, during the process of examining the user's digestive tract with the endoscope 10, the first image acquisition unit 211 in the parameter determination unit 21 acquires a set number of consecutive frames of cavity wall images of the user's digestive tract through the endoscope 10. The set number of frames can be determined based on actual needs and is not limited herein.

[0154] It should be noted that the continuous setting of the number of frames can be to obtain all frames within a preset time. The preset time can be determined according to actual needs and is not limited here. For example, the preset time can be any time between [1 second, 3 seconds].

[0155] After obtaining a set number of consecutive frames of cavity wall images, the first image acquisition unit 211 sends the set number of consecutive frames of cavity wall images to the second detection unit 212 . The second detection unit 212 detects the set number of consecutive frames of cavity wall images to obtain motion parameters.

[0156] As an embodiment of the present application, the motion parameters include but are not limited to: any one or more parameters of peristalsis amplitude, peristalsis frequency, and the number of abnormal peristalsis directions.

[0157] Peristaltic amplitude refers to the amplitude of peristalsis of the digestive tract wall during peristalsis. Peristaltic frequency refers to the frequency of peristalsis of the digestive tract wall during peristalsis. Peristaltic direction refers to the direction of peristalsis of the digestive tract wall during peristalsis. Abnormal peristaltic direction counts refer to the number of abnormalities in the direction of peristalsis of the digestive tract wall.

[0158] The embodiments of the present application do not impose too many restrictions on the specific quantification methods of peristaltic amplitude, peristaltic frequency, and the number of abnormal peristaltic directions. In theory, any quantification method that can reflect the peristaltic characteristics of the digestive tract can be used, and the specific method can be determined based on actual conditions.

[0159] For example, for the peristaltic amplitude, the sum of the degree of change of each pixel in the cavity wall image for a set number of consecutive frames can be chosen as the numerical value of the peristaltic amplitude; or parameters such as the mean or variance of the degree of change of each pixel in the cavity wall image for a set number of consecutive frames that can reflect the peristaltic amplitude to a certain extent can be used as the numerical value of the peristaltic amplitude.

[0160] For example, for the peristalsis frequency, it can be the ratio between the frame number of the peristalsis amplitude anomaly and the continuous setting frame number in the continuous setting frame number of the cavity wall image. It should be noted that the peristalsis amplitude anomaly specifically refers to each peristalsis amplitude being greater than a set threshold. The set threshold can be determined according to actual needs, which is not limited here.

[0161] Specifically, the second detection unit 212 can identify and quantify the continuous setting frame number of the cavity wall image according to the setting method after obtaining the continuous setting frame number of the cavity wall image, to obtain the motion parameter. The specific setting method is not limited in the embodiments of the present application, and can be selected or set according to actual needs. For example, in some embodiments, the setting method includes but is not limited to optical flow algorithm and neural network algorithm. In some alternative embodiments, a simpler quantification method can also be used to calculate the motion parameter, which is not limited here.

[0162] In practical applications, the optical flow algorithm refers to a method of finding the correspondence between the previous frame and the current frame by using the change of pixels in the image sequence in the time domain and the correlation between adjacent frames, so as to calculate the motion information of the object between adjacent frames. The optical flow algorithm includes but is not limited to dense optical flow algorithm and sparse optical flow algorithm.

[0163] As can be seen from the above, the detection system provided by the embodiment can obtain accurate motion parameters of the cavity wall by detecting the continuous setting frame number of the cavity wall image of the digestive tract.

[0164] In practical applications, the peristalsis of the cavity wall of the digestive tract of the user will be different under different gas injection states, that is, the peristalsis law of the cavity wall of the digestive tract of the user is different under different gas injection states. Therefore, in order to further improve the detection accuracy of the state of the digestive tract and obtain more accurate state detection results, in an embodiment of the present application, please refer to Figure 6 , Figure 6 is a specific structure diagram of the first detection unit in the detection system provided by an embodiment of the present application. As Figure 6 shown, the first detection unit 22 in the embodiment specifically includes:

[0165] The first threshold acquisition unit 221 is configured to acquire a target detection threshold associated with the gas injection state; wherein the target detection thresholds associated with different gas injection states are not completely the same (as shown in step S1021). Figure 7

[0166] The first processing unit 222 is configured to process the motion parameter based on the target detection threshold, to obtain the state detection result of the digestive tract (as shown in step S1022). Figure 7

[0167] ​​In this embodiment, since the peristalsis of the cavity wall of the user's digestive tract will be different under different insufflation states, the detection system 20 can pre-store state detection conditions under different insufflation states. The state detection conditions can be set according to actual needs, which are not limited here.

[0168] In some possible embodiments, the state detection condition can include comparing the motion parameter with a preset detection threshold corresponding to the motion parameter. The preset detection threshold can be determined according to actual needs, which is not limited here.

[0169] Based on this, after receiving the insufflation state and the motion parameter sent by the parameter determination part 21, the first threshold acquisition part 221 in the first detection part 22 can acquire the relationship between the preset detection threshold and the different insufflation states pre-stored by the detection system 20, and acquire the target detection threshold associated with the insufflation state of the air pump at this time according to the insufflation state.

[0170] It should be noted that the target detection threshold associated with different insufflation states is not completely the same.

[0171] In an embodiment of the present application, when the motion parameter includes multiple types, for any one type of motion parameter, the target detection threshold associated with the motion parameter under different insufflation states is not completely the same.

[0172] In some possible embodiments, when the insufflation state includes before insufflation, during insufflation and after insufflation, and the motion parameter includes the peristalsis amplitude, since the air pressure in the user's digestive tract is small before insufflation, and the endoscope is in the process of entering the mirror at this time, the content in each frame of image acquired by the endoscope will change, thereby causing the peristalsis amplitude calculated according to each frame of image to change greatly.

[0173] When during insufflation, the air pressure in the user's digestive tract gradually increases, and the front end of the endoscope is in a relatively static state, at this time, the cavity wall is stimulated by the insufflation, the peristalsis frequency increases, but at the same time, the peristalsis amplitude is small due to the compression of the air pressure, so that the content in each frame of image acquired by the endoscope is not much different, thereby causing the peristalsis amplitude calculated according to each frame of image to be small.

[0174] After insufflation, the air pressure in the user's digestive tract is higher than that before insufflation, and at this time, the stimulation of the insufflation is reduced compared with that during insufflation, that is, the compression of the air pressure is smaller than that during insufflation, so that although the content in each frame of image acquired by the endoscope changes less than that before insufflation, the change is still greater than that during insufflation, thereby causing the peristalsis amplitude calculated according to each frame of image to change less than that before insufflation, and greater than that during insufflation.

[0175] Based on this, in the embodiment, the target detection threshold of the peristalsis amplitude associated with before the injection is greater than the target detection threshold of the peristalsis amplitude associated with during the injection, and greater than the target detection threshold of the peristalsis amplitude associated with after the injection; the target detection threshold of the peristalsis amplitude associated with after the injection is greater than the target detection threshold of the peristalsis amplitude associated with during the injection. That is, Rbefore>Rafter>Rinjection. Wherein, Rbefore represents the target detection threshold of the peristalsis amplitude associated with before the injection, Rinjection represents the target detection threshold of the peristalsis amplitude associated with during the injection, and Rafter represents the target detection threshold of the peristalsis amplitude associated with after the injection.

[0176] In some possible embodiments, when the injection state includes before the injection, during the injection and after the injection, the motion parameter includes the peristalsis frequency, and the peristalsis is increased due to the stimulation of the digestive tract caused by the injection, and the peristalsis amplitude during the injection is reduced due to the compression of the gas pressure, that is, it is easier to be determined as abnormal peristalsis, so as to be counted into the frequency range, therefore, in order to avoid too sensitive detection of the frequency during the injection, the target detection threshold of the peristalsis frequency associated with before the injection and the target detection threshold of the peristalsis frequency associated with after the injection are both less than the target detection threshold of the peristalsis frequency associated with during the injection.

[0177] It should be noted that the target detection threshold of the peristalsis frequency associated with before the injection can be greater than the target detection threshold of the peristalsis frequency associated with after the injection, can be less than the target detection threshold of the peristalsis frequency associated with after the injection, or can be equal to the target detection threshold of the peristalsis frequency associated with after the injection, which is not limited here.

[0178] In some possible embodiments, for the lens range of the endoscope, the movement direction of the cavity wall of the digestive tract from far to near is normal, and the movement direction of the cavity wall of the digestive tract from near to far is abnormal. When the injection is during the injection, the cavity wall of the digestive tract near the injection is peristalted due to the increase of the gas pressure, so that the situation from near to far appears, which can be misjudged as abnormal peristalsis. Therefore, only when the number of times of abnormal peristalsis direction is continuously identified, the state of the digestive tract can be determined.

[0179] Based on this, when the injection state includes before the injection, during the injection and after the injection, the motion parameter includes the number of times of abnormal peristalsis direction, and when the injection is during the injection, the cavity wall of the digestive tract near the injection is peristalted due to the increase of the gas pressure, so that the situation from near to far appears, therefore, the target detection threshold of the number of times of abnormal peristalsis direction associated with before the injection and the target detection threshold of the number of times of abnormal peristalsis direction associated with after the injection are both less than the target detection threshold of the number of times of abnormal peristalsis direction associated with during the injection.

[0180] It should be noted that the target detection threshold of the number of abnormal peristaltic direction associated with before gas injection can be greater than the target detection threshold of the number of abnormal peristaltic direction associated with after gas injection, or it can be less than the target detection threshold of the number of abnormal peristaltic direction associated with after gas injection, or it can be equal to the target detection threshold of the number of abnormal peristaltic direction associated with after gas injection. There is no restriction here.

[0181] In this embodiment, after acquiring the target detection threshold associated with the gas insufflation state, the first threshold acquisition unit 221 may send the target detection threshold to the first processing unit 222. After receiving the target detection threshold, the first processing unit 222 processes the motion parameter according to the target detection threshold to obtain a digestive tract state detection result.

[0182] Specifically, the first processing unit 222 may compare the target detection threshold with the motion parameter, and determine the digestive tract state detection result according to the comparison result.

[0183] In some possible embodiments, when the gas injection state is before gas injection and the motion parameters include peristaltic amplitude, the first processing unit 222 may compare the target detection threshold of the peristaltic amplitude associated with before gas injection with the specific value of the peristaltic amplitude; when the gas injection state is during gas injection and the motion parameters include peristaltic amplitude, the first processing unit 222 may compare the target detection threshold of the peristaltic amplitude associated with during gas injection with the specific value of the peristaltic amplitude; when the gas injection state is after gas injection and the motion parameters include peristaltic amplitude, the first processing unit 222 may compare the target detection threshold of the peristaltic amplitude associated with after gas injection with the specific value of the peristaltic amplitude.

[0184] In other possible embodiments, when the gas injection state is before gas injection and the motion parameters include peristaltic frequency, the first processing unit 222 may compare the target detection threshold of the peristaltic frequency associated with before gas injection with the specific value of the peristaltic frequency; when the gas injection state is during gas injection and the motion parameters include peristaltic frequency, the first processing unit 222 may compare the target detection threshold of the peristaltic frequency associated with during gas injection with the specific value of the peristaltic frequency; when the gas injection state is after gas injection and the motion parameters include peristaltic frequency, the first processing unit 222 may compare the target detection threshold of the peristaltic frequency associated with after gas injection with the specific value of the peristaltic frequency.

[0185] In some further possible embodiments, when the gas injection state is before gas injection and the motion parameters include the number of abnormal peristaltic direction times, the first processing unit 222 may compare the target detection threshold of the abnormal peristaltic direction times associated with before gas injection with the specific numerical value of the abnormal peristaltic direction times; when the gas injection state is during gas injection and the motion parameters include the number of abnormal peristaltic direction times, the first processing unit 222 may compare the target detection threshold of the abnormal peristaltic direction times associated with during gas injection with the specific numerical value of the abnormal peristaltic direction times; when the gas injection state is after gas injection and the motion parameters include the number of abnormal peristaltic direction times, the first processing unit 222 may compare the target detection threshold of the abnormal peristaltic direction times associated with after gas injection with the specific numerical value of the abnormal peristaltic direction times.

[0186] It should be noted that, when there are multiple motion parameters, the first processing unit 222 may compare each motion parameter with its corresponding target detection threshold one by one to obtain a comparison result for each motion parameter.

[0187] In this embodiment, when the first processing unit 222 detects that the comparison result shows that the motion parameter is greater than the target detection threshold, it indicates that the peristalsis of the lumen of the user's digestive tract is abnormal. Therefore, the first processing unit 222 determines that the digestive tract status detection result is abnormal peristalsis. When the first processing unit 222 detects that the comparison result shows that the motion parameter is less than or equal to the target detection threshold, it indicates that the peristalsis of the lumen of the user's digestive tract is normal. Therefore, the first processing unit 222 determines that the digestive tract status detection result is normal.

[0188] Based on this, in one embodiment of the present application, when the motion parameters include peristaltic amplitude and peristaltic frequency, the first processing unit 222 may specifically include:

[0189] a first result determining unit configured to obtain a state detection result of abnormal lumen wall peristalsis when the motion parameters include peristalsis amplitude and peristalsis frequency, the peristalsis amplitude is greater than a target detection threshold corresponding to the peristalsis amplitude, and the peristalsis frequency is greater than a target detection threshold corresponding to the peristalsis frequency;

[0190] In this embodiment, when the first result determination unit detects that the peristaltic amplitude is greater than the target detection threshold corresponding to the peristaltic amplitude, and the peristaltic frequency is greater than the target detection threshold corresponding to the peristaltic frequency, it indicates that the peristaltic amplitude of the cavity wall of the user's digestive tract is too large, and the cavity wall peristalsis frequency is too high, that is, the cavity wall peristalsis of the digestive tract is abnormal. Therefore, the first result determination unit determines that the state detection result of the digestive tract is abnormal cavity wall peristalsis.

[0191] It should be noted that, in some possible embodiments, when the first result determination unit detects that the peristaltic amplitude is less than or equal to the target detection threshold corresponding to the peristaltic amplitude, and the peristaltic frequency is less than or equal to the target detection threshold corresponding to the peristaltic frequency, it indicates that the peristaltic amplitude and peristaltic frequency of the cavity wall of the user's digestive tract meet the requirements, that is, the peristalsis of the cavity wall of the digestive tract is normal. Therefore, the first result determination unit determines that the state detection result of the digestive tract is that the cavity wall peristalsis is normal.

[0192] In other possible embodiments, when the first result determination unit detects that the peristaltic amplitude is less than or equal to the target detection threshold corresponding to the peristaltic amplitude, and the peristaltic frequency is greater than the target detection threshold corresponding to the peristaltic frequency, it indicates that the peristaltic amplitude of the cavity wall of the user's digestive tract meets the requirements, and the cavity wall peristalsis frequency is misjudged because the first result determination unit is too sensitive to frequency detection. In other words, the peristalsis of the cavity wall of the digestive tract is actually normal. Therefore, the first result determination unit determines that the digestive tract status detection result is that the cavity wall peristalsis is normal.

[0193] In some further possible embodiments, when the first result determination unit detects that the peristaltic amplitude is greater than the target detection threshold corresponding to the peristaltic amplitude, and the peristaltic frequency is less than or equal to the target detection threshold corresponding to the peristaltic frequency, it indicates that there is a misjudgment of the peristaltic amplitude of the user's digestive tract wall, and the peristaltic frequency of the wall meets the requirements, that is, the peristalsis of the digestive tract wall is actually normal. Therefore, the first result determination unit determines that the digestive tract status detection result is that the wall peristalsis is normal.

[0194] In another embodiment of the present application, when the motion parameter includes the number of abnormal peristalsis directions, the first processing unit 222 may further include:

[0195] The second result determination unit is used to obtain a state detection result of abnormal peristalsis of the cavity wall when the motion parameter includes the number of abnormal peristalsis directions and the number of abnormal peristalsis directions is greater than a target detection threshold corresponding to the number of abnormal peristalsis directions.

[0196] In this embodiment, when the second result determination unit detects that the number of abnormal peristalsis directions is greater than the target detection threshold corresponding to the number of abnormal peristalsis directions, it indicates that the number of abnormal peristalsis directions of the cavity wall of the user's digestive tract is too many, that is, the cavity wall peristalsis of the digestive tract is abnormal. Therefore, the second result determination unit determines that the state detection result of the digestive tract is abnormal cavity wall peristalsis.

[0197] It should be noted that when the second result determination unit detects that the number of abnormal peristalsis direction is less than or equal to the target detection threshold corresponding to the number of abnormal peristalsis direction, it means that the number of abnormal peristalsis direction of the cavity wall of the user's digestive tract meets the requirements, that is, the peristalsis of the cavity wall of the digestive tract is normal. Therefore, the second result determination unit determines that the state detection result of the digestive tract is that the cavity wall peristalsis is normal.

[0198] In another embodiment of the present application, when the motion parameters include peristaltic amplitude, peristaltic frequency, and the number of abnormal peristaltic directions, the first processing unit 222 may further include:

[0199] The third result determination unit is used to obtain a state detection result of abnormal peristalsis of the cavity wall when the motion parameters include peristalsis amplitude, peristalsis frequency and the number of abnormal peristalsis directions, the peristalsis amplitude is greater than the target detection threshold corresponding to the peristalsis amplitude, and the peristalsis frequency is greater than the target detection threshold corresponding to the peristalsis frequency, and / or the number of abnormal peristalsis directions is greater than the target detection threshold corresponding to the number of abnormal peristalsis directions.

[0200] In this embodiment, when the first result determination unit detects that the peristalsis amplitude is greater than the target detection threshold corresponding to the peristalsis amplitude, and the peristalsis frequency is greater than the target detection threshold corresponding to the peristalsis frequency, and / or the number of abnormal peristalsis directions is greater than the target detection threshold corresponding to the number of abnormal peristalsis directions, it indicates that the peristalsis of the cavity wall of the digestive tract is abnormal. Therefore, the third result determination unit determines that the state detection result of the digestive tract is abnormal cavity wall peristalsis.

[0201] It should be noted that when the third result determination unit detects that the peristalsis amplitude is less than or equal to the target detection threshold corresponding to the peristalsis amplitude, and / or the peristalsis frequency is less than or equal to the target detection threshold corresponding to the peristalsis frequency, and / or the number of abnormal peristalsis directions is less than or equal to the target detection threshold corresponding to the number of abnormal peristalsis directions, it indicates that the peristalsis of the cavity wall of the digestive tract is normal. Therefore, the third result determination unit determines that the state detection result of the digestive tract is that the cavity wall peristalsis is normal.

[0202] From the above, it can be seen that the detection system provided in this embodiment has different movement patterns of the cavity wall of the user's digestive tract under different gas injection states. Therefore, by obtaining the target detection threshold associated with the gas injection state and processing the motion parameters according to the target detection threshold, a more accurate state detection result can be obtained.

[0203] See also Figure 8 , Figure 8 This is a schematic diagram of the structure of a detection system provided by another embodiment of the present application. Figure 8 As shown, the detection system 20 in this embodiment also includes:

[0204] The first data determination unit 23 is used to determine the current air pressure data of the digestive tract (such as Figure 9 Step S103 shown).

[0205] The third detection unit 24 is used to detect the state of the digestive tract according to the current air pressure data, gas injection state and movement parameters, and obtain the state detection result (such as Figure 9 Step S104 shown).

[0206] In actual applications, since the gas pressure in the digestive tract also affects the motion parameters of the cavity wall peristalsis, in this embodiment, the first data determination unit 23 in the detection system 20 can determine the current gas pressure data of the user's digestive tract. Here, the current refers to the moment when the parameter determination unit 21 in the detection system 20 determines the gas injection state of the air pump.

[0207] It should be noted that the current air pressure data may be quantitative data, such as a specific value, or non-quantitative data, such as a level, a mode, and the like.

[0208] In one embodiment of the present application, when the current air pressure data is quantified data, the first data determination unit 23 can obtain the pressure signal in real time through the pressure sensor located at the endoscope 10 to which it is wirelessly connected, and determine the current air pressure data based on the pressure signal.

[0209] In another embodiment of the present application, when the current air pressure data is non-quantified data, the first data determination unit 23 can specifically determine the air pressure conditions in the digestive tract through the endoscopic image acquired in real time, and then determine the current air pressure data.

[0210] After obtaining the current air pressure data of the digestive tract, the first data determination unit 23 sends the current air pressure data to the third detection unit 24. After receiving the current air pressure data, the third detection unit 24 can perform a state detection on the digestive tract based on the current air pressure data, the gas injection state, and the motion parameters to obtain a state detection result.

[0211] In this embodiment, the third detection unit 24 determines a target detection threshold for the motion parameter based on the current air pressure data and the insufflation state, compares the motion parameter with the target detection threshold, and obtains a comparison result. The third detection unit 24 then determines a digestive tract state detection result based on the comparison result.

[0212] It should be noted that when the motion parameters are one or more of the peristaltic amplitude, peristaltic frequency, and the number of abnormal peristaltic directions, the current air pressure data is negatively correlated with the peristaltic amplitude, the current air pressure data is positively correlated with the peristaltic frequency, and the current air pressure data is positively correlated with the number of abnormal peristaltic directions. In other words, the larger the current air pressure data, the smaller the peristaltic amplitude, and the smaller the target detection threshold of the peristaltic amplitude. The larger the current air pressure data, the larger the peristaltic frequency, and the larger the target detection threshold of the peristaltic frequency. The larger the current air pressure data, the larger the number of abnormal peristaltic directions, and the larger the target detection threshold of the number of abnormal peristaltic directions.

[0213] In another embodiment of the present application, excessive air pressure in the digestive tract may cause abdominal distension in the user and even induce other complications in the user. Therefore, in order to avoid excessive air pressure in the user's digestive tract and prevent complications in the user, the detection system 20 can control the air pump to stop or maintain air injection based on the current air pressure data of the digestive tract after determining the current air pressure data.

[0214] In this embodiment, the detection system 20 can detect whether the current air pressure data meets the set conditions, and control the air pump to stop or maintain air injection based on the detection result. Among them, the set conditions can be set according to actual needs and are not limited here.

[0215] In one embodiment of the present application, when the current air pressure data is quantized data, the set condition may be: the current air pressure data is less than the air pressure threshold. The air pressure threshold can be determined according to actual needs and is not limited here.

[0216] In another embodiment of the present application, when the current air pressure data is non-quantized data, the set condition may be: the current air pressure data is lower than a set level. The set level may be determined according to actual needs and is not limited here.

[0217] Based on this, when the current air pressure data does not meet the set conditions, the detection system 20 outputs a first prompt message to prompt the operator to control the air pump to stop gas injection; when the current air pressure data meets the set conditions, the detection system 20 outputs a second prompt message to prompt the operator to control the air pump to maintain the gas injection action.

[0218] In another embodiment of the present application, the detection system 20 may further include an information prompting unit (not shown in the figure).

[0219] Therefore, the detection system 20 controls the information prompt unit to display the first and second prompt messages. For example, when the detection system 20 outputs the first prompt message, the information prompt unit may display the words "Stop Gas Insulation" to inform the operator that the air pressure in the user's digestive tract is too high and that the air pump needs to be controlled to stop gas insufflation; when the detection system 20 outputs the second prompt message, the information prompt unit may display the words "Maintain Gas Insufflation" to inform the operator that the air pressure in the user's digestive tract is normal and that the air pump can be controlled to maintain gas insufflation.

[0220] In one implementation of this embodiment, the information prompt unit may include a voice prompt unit. Therefore, when the information prompt unit displays the words "stop gas injection", the voice prompt unit can output a voice message containing "stop gas injection"; when the information prompt unit displays the words "maintain gas injection", the voice prompt unit can output a voice message containing "maintain gas injection".

[0221] As can be seen from the above, the detection system provided in this embodiment, based on the gas injection state and movement parameters, further combines the current air pressure data of the digestive tract to detect the state of the user's digestive tract, thereby further improving the detection accuracy of the user's digestive tract.

[0222] See also Figure 10 , Figure 10 This is a schematic diagram of the specific structure of the first data determination unit in the detection system provided by an embodiment of the present application. Figure 10 As shown, the first data determining unit 23 in this embodiment specifically includes:

[0223] The second data determination unit 231 is used to determine the initial air pressure data of the digestive tract and the air pressure increase range (such as Figure 11 Step S1031 shown).

[0224] The third data determination unit 232 is used to determine the current air pressure data (such as Figure 11 Step S1032 shown).

[0225] In this embodiment, the initial air pressure data refers to the air pressure data of the digestive tract when the air pump starts to inject air.

[0226] The air pressure increase amplitude refers to the degree of increase in the air pressure in the digestive tract from the moment the air pump starts injecting air to the moment the first data determining unit 23 needs to determine the current air pressure data.

[0227] It should be noted that the initial air pressure data and the air pressure increase range can be quantitative data, such as specific values, or non-quantitative data, such as levels, modes, etc.

[0228] In one embodiment of the present application, when the initial air pressure data is quantified data, the second data determination unit 231 can obtain the pressure signal when the air pump starts to inject air in real time through the pressure sensor located at the endoscope 10 to which it is wirelessly connected, and determine the initial air pressure data based on the pressure signal.

[0229] In another embodiment of the present application, when the amplitude of the air pressure increase is quantified data, the second data determination unit 231 can obtain in real time the pressure signal when the air pump starts to inject air and the pressure signal at the moment when the first data determination unit 23 needs to determine the current air pressure data through the pressure sensor located at the endoscope 10 wirelessly connected to it, and determine the amplitude of the air pressure increase based on the pressure signal when the air pump starts to inject air and the pressure signal at the moment when the current air pressure data needs to be determined.

[0230] In yet another embodiment of the present application, when the initial air pressure data is non-quantized data, the second data determining unit 231 may specifically include:

[0231] The second image acquisition unit is used to acquire a first image and a second image of the digestive tract; wherein the first image refers to an endoscopic image of the digestive tract when the air pump starts to inflate gas; the second image refers to an endoscopic image of the digestive tract during the inflation process.

[0232] The fourth data determining unit is configured to determine initial air pressure data according to the first image.

[0233] The fifth data determining unit is configured to determine an increase in air pressure based on the first image and the second image.

[0234] In this embodiment, when the detection system is not equipped with a pressure sensor, when the second data determination unit 231 needs to determine the initial air pressure data and the pressure increase amplitude of the user's digestive tract, the second image acquisition unit in the second data determination unit 231 can acquire a first image and a second image of the digestive tract. The first image refers to an endoscopic image of the digestive tract when the air pump begins insufflation; the second image refers to an endoscopic image of the digestive tract during the insufflation process.

[0235] In one implementation of this embodiment, when the air pump begins to inflate, it sends an instruction to the detection system 20 indicating that the air pump has begun inflation. Therefore, upon receiving the first instruction from the air pump indicating that the air pump has begun inflation, the second image acquisition unit can determine that the air pump has begun inflation. At this point, based on the first instruction, the second image acquisition unit can use the endoscopic image frame captured at the first moment as the first image. The first moment specifically refers to the moment when the second image is acquired upon receiving the first instruction.

[0236] After obtaining the first image and the second image, the second image acquisition unit may send the first image to the fourth data determination unit, and send the first image and the second image to the fifth data determination unit.

[0237] After receiving the first image, the fourth data determination unit may input the first image into a trained air pressure detection model for processing to determine the air pressure level corresponding to the first image, and determine the air pressure level as the initial air pressure data.

[0238] It should be noted that the air pressure detection model is used to detect the air pressure level of the digestive tract in the endoscopic image. The air pressure detection model can be obtained by training a pre-constructed neural network model based on a preset sample set. Each sample data in the preset sample set includes a sample endoscopic image and the air pressure level corresponding to the sample endoscopic image. When training the pre-constructed neural network model, the sample endoscopic image in each sample is used as the input of the neural network model, and the air pressure level corresponding to the sample endoscopic image in each sample is used as the output of the neural network model. Through training, the neural network model can learn the correspondence between all possible endoscopic images and air pressure levels. After that, the trained neural network model is used as the air pressure detection model.

[0239] After receiving the first image and the second image, the fifth data determination unit calculates the degree of change between the first image and the second image according to a preset algorithm, and determines the increase amplitude of the air pressure according to the degree of change.

[0240] Afterwards, the fourth data determination unit sends the initial air pressure data to the third data determination unit 232, and the fifth data determination unit sends the air pressure increase amplitude to the third data determination unit 232. Upon receiving the initial air pressure data and the air pressure increase amplitude, the third data determination unit 232 sums the initial air pressure data and the air pressure increase amplitude, and uses the sum to determine the current air pressure data.

[0241] From the above, it can be seen that the detection system provided in this embodiment determines the initial air pressure data by obtaining the first image of the digestive tract, and determines the amplitude of the air pressure increase by the first image and the second image. There is no need to install a pressure sensor in the detection system to obtain the air pressure data of the user's digestive tract, thereby reducing costs.

[0242] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0243] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of this application. Their specific functions and technical effects can be found in the method embodiment section and will not be repeated here.

[0244] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other and are not used to limit the scope of protection of this application.

[0245] Corresponding to the detection system described in the above embodiment, the following illustrates a detection method provided by an embodiment of the present application. For ease of illustration, only the parts related to the embodiment of the present application are shown. Specifically, the detection method includes:

[0246] Acquire a set number of consecutive frames of cavity wall images of the digestive tract;

[0247] The cavity wall images of the set number of frames are detected to obtain motion parameters.

[0248] In one embodiment of the present application, the detection method further comprises:

[0249] Determine the current air pressure data of the digestive tract;

[0250] Accordingly, the digestive tract is tested according to the gas injection state and the motion parameters to obtain a digestive tract state test result, including:

[0251] The digestive tract is tested for status based on current air pressure data, gas injection status, and motion parameters to obtain status test results.

[0252] In one embodiment of the present application, determining the motion parameters of the lumen wall of the digestive tract includes:

[0253] Acquire a set number of consecutive frames of cavity wall images of the digestive tract;

[0254] The cavity wall images of the set number of frames are detected to obtain motion parameters.

[0255] In one embodiment of the present application, the gas injection state includes at least two states; the digestive tract state detection is performed based on the gas injection state and the motion parameter to obtain the digestive tract state detection result, including:

[0256] Obtaining a target detection threshold associated with the gas injection state; wherein the target detection thresholds associated with different gas injection states are not completely the same;

[0257] Based on the target detection threshold, the motion parameters are processed to obtain the state detection results of the digestive tract.

[0258] In one embodiment of the present application, the motion parameters include multiple parameters, and for a single motion parameter, the associated target detection threshold is not exactly the same under different gas injection states, thereby improving the accuracy of subsequent processing of the motion parameter according to the target detection threshold.

[0259] In one embodiment of the present application, the motion parameters include multiple parameters, and for a single motion parameter, the target detection threshold associated with the motion parameter is not completely the same under different gas injection states.

[0260] In one embodiment of the present application, the gas injection state includes before gas injection, during gas injection, and after gas injection, and the motion parameter includes peristaltic amplitude;

[0261] Correspondingly, the target detection threshold of the peristaltic amplitude associated with before gas injection is greater than the target detection threshold of the peristaltic amplitude associated with during gas injection, and greater than the target detection threshold of the peristaltic amplitude associated with after gas injection; the target detection threshold of the peristaltic amplitude associated with after gas injection is greater than the target detection threshold of the peristaltic amplitude associated with during gas injection, so that in different subsequent gas injection states, the peristaltic amplitude of the cavity wall of the digestive tract in the user's body can be flexibly detected according to different target detection thresholds to obtain accurate state detection results.

[0262] In one embodiment of the present application, the gas injection state includes before gas injection, during gas injection, and after gas injection, and the motion parameter includes peristaltic frequency;

[0263] Accordingly, the target detection threshold for the peristaltic frequency associated with the patient before and after gas insufflation is lower than the target detection threshold for the peristaltic frequency associated with gas insufflation. This allows for flexible detection of the peristaltic frequency of the patient's digestive tract wall under different gas insufflation conditions based on different target detection thresholds, resulting in accurate state detection results.

[0264] In one embodiment of the present application, the gas injection state includes before gas injection, during gas injection, and after gas injection, and the motion parameter includes the number of abnormal peristalsis directions;

[0265] Accordingly, the target detection threshold for the number of abnormal peristaltic movements before gas insufflation and the target detection threshold for the number of abnormal peristaltic movements after gas insufflation are both lower than the target detection threshold for the number of abnormal peristaltic movements during gas insufflation. This allows for the flexible detection of the number of abnormal peristaltic movements of the lumen wall of the user's digestive tract under different gas insufflation conditions according to different target detection thresholds, thereby obtaining accurate status detection results.

[0266] In one embodiment of the present application, the motion parameter includes at least one of peristaltic amplitude, peristaltic frequency, and the number of abnormal peristaltic directions; the motion parameter is processed based on the target detection threshold to obtain the digestive tract status detection result, including:

[0267] When the motion parameters include peristalsis amplitude and peristalsis frequency, the peristalsis amplitude is greater than the target detection threshold corresponding to the peristalsis amplitude, and the peristalsis frequency is greater than the target detection threshold corresponding to the peristalsis frequency, a state detection result of abnormal cavity wall peristalsis is obtained.

[0268] In one embodiment of the present application, the motion parameter includes at least one of peristaltic amplitude, peristaltic frequency, and the number of abnormal peristaltic directions; the motion parameter is processed based on the target detection threshold to obtain the digestive tract status detection result, including:

[0269] When the motion parameter includes the number of abnormal peristalsis directions, the number of abnormal peristalsis directions is greater than a target detection threshold corresponding to the number of abnormal peristalsis directions, and a state detection result of abnormal cavity wall peristalsis is obtained.

[0270] In one embodiment of the present application, the motion parameter includes at least one parameter selected from the group consisting of peristaltic amplitude, peristaltic frequency, and the number of abnormal peristaltic directions;

[0271] Correspondingly, the current air pressure data is negatively correlated with the peristaltic amplitude, positively correlated with the peristaltic frequency, and positively correlated with the number of abnormal peristaltic directions, so that the detection system can accurately detect the motion parameters based on the current air pressure data.

[0272] In one embodiment of the present application, determining current air pressure data of the digestive tract includes:

[0273] Determine the initial air pressure data and the pressure increase amplitude of the digestive tract;

[0274] The current air pressure data is determined based on the initial air pressure data and the air pressure increase amplitude.

[0275] In one embodiment of the present application, determining the initial air pressure data and the air pressure increase amplitude of the digestive tract includes:

[0276] Acquire a first image and a second image of the digestive tract; wherein the first image refers to an endoscopic image of the digestive tract when the air pump starts to inflate gas; and the second image refers to an endoscopic image of the digestive tract during the inflation process;

[0277] determining initial air pressure data according to the first image;

[0278] An air pressure increase amplitude is determined according to the first image and the second image.

[0279] In one embodiment of the present application, acquiring a first image of the digestive tract includes:

[0280] receiving a first instruction from the air pump; the first instruction is used to indicate that the air pump starts to inject gas;

[0281] According to the first instruction, the endoscopic image frame collected at the first moment is used as the first image.

[0282] In one embodiment of the present application, the detection method further comprises:

[0283] According to the current air pressure data, the air pump is controlled to stop or maintain air injection.

[0284] In one embodiment of the present application, controlling the air pump to stop or maintain air injection according to current air pressure data includes:

[0285] When the current air pressure data does not meet the set conditions, a first prompt message is output; the first prompt message is used to prompt the operator to control the air pump to stop gas injection;

[0286] When the current air pressure data meets the set conditions, a second prompt message is output; the second prompt message is used to prompt the operator to control the air pump to maintain the air injection action.

[0287] It should be noted that the specific working processes of the above-mentioned method embodiments can refer to the corresponding processes of the above-mentioned system embodiments, and will not be repeated here.

[0288] Figure 12 This is a schematic diagram of the structure of an image processing device provided in one embodiment of the present application. Figure 12 As shown, the image processing device 12 of this embodiment includes: at least one processor 50 ( Figure 12 Only one is shown) a processor, a memory 51, and a computer program 52 stored in the memory 51 and executable on the at least one processor 50, the processor 50 executing the computer program 72 to implement the above Figure 3 、 Figure 5 、 Figure 7 and / or Figure 9 The steps in any corresponding detection method embodiment.

[0289] The image processing device may include, but is not limited to, a processor 50 and a memory 51. Those skilled in the art will understand that Figure 12 This is merely an example of the image processing device 5 and does not constitute a limitation on the image processing device 5 . The image processing device 5 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.

[0290] The processor 50 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor may be a microprocessor or any conventional processor.

[0291] In some embodiments, the memory 51 may be an internal storage unit of the image processing device 5, such as the memory of the image processing device 5. In other embodiments, the memory 51 may also be an external storage device of the image processing device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. equipped on the image processing device 5. Furthermore, the memory 51 may include both the internal storage unit of the image processing device 5 and an external storage device. The memory 51 is used to store an operating system, application programs, a boot loader, data, and other programs, such as the program code of the computer program. The memory 51 may also be used to temporarily store data that has been output or is about to be output.

[0292] It should be noted that the specific working process of the above-mentioned image processing device is the same as the corresponding process of the aforementioned detection system embodiments, and will not be repeated here.

[0293] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned various detection method embodiments can be implemented.

[0294] An embodiment of the present application provides a computer program product. When the computer program product is run on an image processing device, the image processing device can implement the steps in the above-mentioned various detection method embodiments when executing the computer program product.

[0295] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code to the image processing device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0296] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0297] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. A detection system, characterized in that: include: a parameter determination unit, configured to determine the gas injection state of the air pump and the motion parameters of the cavity wall of the digestive tract during endoscopic examination of the digestive tract of the user; the air pump is configured to inject gas into the digestive tract of the user; a first detection unit, configured to detect the state of the digestive tract according to the gas injection state and the motion parameter, and obtain a detection result of the state of the digestive tract; an air pump control unit, configured to control the air pump to stop or maintain air infusion according to current air pressure data of the digestive tract; The first detection unit is specifically configured to obtain state detection conditions under different gas injection states, and detect the motion parameter based on the state detection conditions under different gas injection states to obtain the state detection result.

2. The detection system according to claim 1, wherein: The detection system also includes: a first data determining unit, configured to determine the current air pressure data; Correspondingly, the first detection unit is specifically configured to perform state detection on the digestive tract according to the current air pressure data, the gas injection state, and the motion parameter to obtain the state detection result.

3. The detection system according to claim 1 or 2, characterized in that The parameter determination unit specifically includes: a first image acquisition unit, configured to acquire a set number of consecutive frames of cavity wall images of the digestive tract; The second detection unit is used to detect the cavity wall images of the set number of consecutive frames to obtain the motion parameters.

4. The detection system according to claim 1 or 2, characterized in that: The gas injection state includes at least two states; the first detection part specifically includes: a first threshold value acquiring unit, configured to acquire a target detection threshold value associated with the gas injection state; wherein the target detection threshold values ​​associated with different gas injection states are not completely the same; The first processing unit is used to process the motion parameter based on the target detection threshold to obtain the state detection result of the digestive tract.

5. The detection system according to claim 4, wherein: The motion parameters include multiple parameters, and for a single motion parameter, the target detection threshold associated with the motion parameter is not completely the same under different gas injection states.

6. The detection system according to claim 5, wherein: The gas injection state includes before gas injection, during gas injection, and after gas injection, and the motion parameter includes peristalsis amplitude; Correspondingly, the target detection threshold of the peristaltic amplitude associated with the before gas injection is greater than the target detection threshold of the peristaltic amplitude associated with the during gas injection, and is greater than the target detection threshold of the peristaltic amplitude associated with the after gas injection; the target detection threshold of the peristaltic amplitude associated with the after gas injection is greater than the target detection threshold of the peristaltic amplitude associated with the during gas injection.

7. The detection system according to claim 5, wherein: The gas injection state includes before gas injection, during gas injection, and after gas injection, and the motion parameter includes peristaltic frequency; Accordingly, the target detection threshold of the peristaltic frequency associated with the gas injection before and the target detection threshold of the peristaltic frequency associated with the gas injection after are both smaller than the target detection threshold of the peristaltic frequency associated with the gas injection.

8. The detection system according to claim 5, wherein: The gas injection state includes before gas injection, during gas injection, and after gas injection, and the motion parameter includes the number of abnormal peristalsis directions; Accordingly, the target detection threshold of the number of abnormal peristalsis directions associated with the gas injection before and the target detection threshold of the number of abnormal peristalsis directions associated with the gas injection after are both smaller than the target detection threshold of the number of abnormal peristalsis directions associated with the gas injection.

9. The detection system according to claim 5, wherein: The motion parameter includes at least one parameter selected from the group consisting of peristaltic amplitude, peristaltic frequency, and the number of abnormal peristaltic directions; the first processing unit specifically includes: a first result determining unit configured to obtain a state detection result of abnormal lumen wall peristalsis when the motion parameters include the peristaltic amplitude and the peristaltic frequency, the peristaltic amplitude is greater than the target detection threshold corresponding to the peristaltic amplitude, and the peristaltic frequency is greater than the target detection threshold corresponding to the peristaltic frequency; and / or, The second result determination unit is used to obtain the state detection result of the abnormal peristalsis of the cavity wall when the motion parameter includes the abnormal number of peristalsis directions and the abnormal number of peristalsis directions is greater than the target detection threshold corresponding to the abnormal number of peristalsis directions.

10. The detection system according to claim 1, wherein: The motion parameters include at least one parameter selected from the group consisting of peristalsis amplitude, peristalsis frequency, and the number of abnormal peristalsis directions; Correspondingly, the current air pressure data is negatively correlated with the peristaltic amplitude, the current air pressure data is positively correlated with the peristaltic frequency, and the current air pressure data is positively correlated with the number of abnormal peristaltic directions.

11. A detection method, characterized in that: include: During an endoscopic examination of a user's digestive tract, determining an air insufflation state of an air pump and movement parameters of a lumen of the digestive tract; The air pump is used to insufflate air into the digestive tract of the user; performing state detection on the digestive tract according to the gas injection state and the motion parameter to obtain a state detection result of the digestive tract; controlling the air pump to stop or maintain air infusion according to the current air pressure data of the digestive tract; The performing of state detection on the digestive tract according to the gas injection state and the motion parameter to obtain a state detection result of the digestive tract includes: State detection conditions under different gas injection states are acquired, and the motion parameters are detected based on the state detection conditions under different gas injection states to obtain the state detection results.

12. An image processing device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the detection method according to claim 11 is implemented.

13. An endoscope system comprising a display device, a light source device, and the detection system and the endoscope according to any one of claims 1 to 10.