Auxiliary detection method, device, system and equipment, storage medium and program product
By building a mode selection model based on user habits and combining real-time video data and distance information, the special observation mode of the endoscope system is automatically switched, which solves the problem of low switching efficiency in the existing technology and improves detection efficiency and accuracy.
Patent Information
- Application Number
- CN202310340115.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
The existing endoscopic system has low efficiency in the switching process of using special observation modes, especially in scenarios where image information changes rapidly such as intestinal peristalsis, and cannot adapt, resulting in reduced detection efficiency.
By building a mode selection model based on the user's historical selection mode and video data, it can automatically determine and switch the appropriate special observation mode, and use real-time video data and distance information collected by the ranging sensor to dynamically determine the target observation mode.
It improves the selection efficiency of special observation modes, adapts to changes in image information, enhances detection accuracy and efficiency, reduces the frequency of manual switching, and improves the observation effect of target organs.
Smart Images

Figure CN118735841A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of endoscopes, and in particular to an auxiliary detection method, device, system, equipment, storage medium and program product. Background Art
[0002] Endoscopes can obtain image information of various organs inside the human body to help doctors analyze the condition of the organs. When using endoscopes, users often choose different special observation modes to observe the condition of the organs more clearly.
[0003] Currently, users often switch special observation modes through manual selection.
[0004] However, manual selection has the problem of low efficiency and cannot adapt to scenes where image information changes rapidly, such as intestinal motility. Summary of the invention
[0005] The present application provides an auxiliary detection method, apparatus, system, equipment, storage medium and program product, which can automatically select and switch special observation modes according to collected image information, thereby improving the selection efficiency of special observation modes.
[0006] In a first aspect, the present application provides an auxiliary detection method. The method comprises:
[0007] Acquire the collected real-time video data and a mode selection model corresponding to the current user; wherein the mode selection model is determined based on the pre-acquired user information and is trained based on the special observation mode selected by the current user in the historical period and the historical video data;
[0008] The real-time video data is judged and processed through the mode selection model corresponding to the current user to determine the target observation mode matched by the current user, so that the current user can use the real-time video data for auxiliary detection through the target observation mode.
[0009] In one of the embodiments, real-time video data is judged and processed by a mode selection model corresponding to the current user to determine a target observation mode matched by the current user, including: obtaining medical images of each frame of real-time video data; inputting each medical image into the mode selection model in turn to obtain a candidate observation mode corresponding to each medical image; one-to-one correspondence between medical images and candidate observation modes; for each unit time period, determining the candidate observation mode with the largest proportion among multiple candidate observation modes as the target observation mode.
[0010] In one embodiment, the process of constructing a mode selection model includes: obtaining multiple training samples and annotations corresponding to each training sample; the training samples are multiple frames of historical images in the historical video data collected when the user uses the endoscope system, and are annotated as observation modes corresponding to each historical image; the training samples are input into the initial model to obtain the training observation mode output by the initial model; and the model is trained according to the training observation mode and the annotations to obtain the mode selection model.
[0011] In one embodiment, the endoscope system includes a ranging sensor; the auxiliary detection method also includes: adding the distance information collected by the ranging sensor to each frame of medical images in the real-time video data to obtain a medical image carrying the distance information; correspondingly, determining the target observation mode according to a pre-trained mode selection model and the real-time video data, including: sequentially inputting each frame of the medical image carrying the distance information into the mode selection model to obtain a candidate observation mode output by the mode selection model according to the medical image carrying the distance information, and determining the target observation mode according to the multiple candidate observation modes; wherein the pre-trained mode selection model is obtained by training based on multiple frames of historical images carrying distance information and the annotations corresponding to each historical image carrying the distance information.
[0012] In one of the embodiments, the auxiliary detection method further includes: receiving historical video data uploaded by a user and observation patterns annotated by the user; and updating a pattern selection model according to the historical video data uploaded by the user.
[0013] In one of the embodiments, the auxiliary detection method also includes: obtaining user information input by the user when logging in; searching for a mode selection model corresponding to the user information in a preset model library; if the mode selection model corresponding to the user information is not found, obtaining historical video data based on the user information; and performing model training based on the historical video data to obtain a mode selection model corresponding to the user information.
[0014] In a second aspect, the present application also provides an auxiliary detection device. The device comprises:
[0015] An acquisition module is used to acquire the collected real-time video data and a mode selection model corresponding to the current user; wherein the mode selection model is determined based on the pre-acquired user information and is trained based on the special observation mode selected by the current user in the historical period and the historical video data;
[0016] The determination module is used to judge and process the real-time video data through the mode selection model corresponding to the current user, and determine the target observation mode matched by the current user, so that the current user can use the real-time video data for auxiliary detection through the target observation mode.
[0017] In a third aspect, the present application further provides an endoscope system, which includes an endoscope body, an endoscope host, and a display; the endoscope host is communicatively connected to the endoscope body and the display respectively;
[0018] The endoscope body is used to obtain real-time video data and send it to the endoscope host;
[0019] An endoscope host, used to perform the steps of the auxiliary detection method described in the first aspect above;
[0020] A display for displaying real-time video data according to a target observation mode determined by an endoscope host.
[0021] In one embodiment, the endoscope body includes a lens; the lens includes an image acquisition sensor, which is used to acquire medical images in real time to obtain real-time video data; the lens also includes a ranging sensor, which is used to acquire the distance between the lens and the target organ.
[0022] In a fourth aspect, the present application further provides a computer device. The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0023] Acquire the collected real-time video data and a mode selection model corresponding to the current user; wherein the mode selection model is determined based on the pre-acquired user information and is trained based on the special observation mode selected by the current user in the historical period and the historical video data;
[0024] The real-time video data is judged and processed through the mode selection model corresponding to the current user to determine the target observation mode matched by the current user, so that the current user can use the real-time video data for auxiliary detection through the target observation mode.
[0025] In a fifth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0026] Acquire the collected real-time video data and a mode selection model corresponding to the current user; wherein the mode selection model is determined based on the pre-acquired user information and is trained based on the special observation mode selected by the current user in the historical period and the historical video data;
[0027] The real-time video data is judged and processed through the mode selection model corresponding to the current user to determine the target observation mode matched by the current user, so that the current user can use the real-time video data for auxiliary detection through the target observation mode.
[0028] In a sixth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0029] Acquire the collected real-time video data and a mode selection model corresponding to the current user; wherein the mode selection model is determined based on the pre-acquired user information and is trained based on the special observation mode selected by the current user in the historical period and the historical video data;
[0030] The real-time video data is judged and processed through the mode selection model corresponding to the current user to determine the target observation mode matched by the current user, so that the current user can use the real-time video data for auxiliary detection through the target observation mode.
[0031] The embodiments of the present application provide an auxiliary detection method, apparatus, system, device, storage medium and program product, which can pre-establish a mode selection model corresponding to the user according to the user's selection habits for special observation modes. During the user's use of the endoscope system, there is no need for the user to manually switch the special observation mode. The mode selection model can determine the target observation mode that the endoscope system should currently use based on the real-time video data collected by the endoscope system. The endoscope system automatically switches modes according to the target observation mode output by the mode selection model, so that the endoscope system detects the target organ according to the switched target observation mode. In the auxiliary detection method provided by the embodiments of the present application, the endoscope system can automatically determine and switch the special observation mode that should be currently used according to the pre-established mode selection model that conforms to the user's habits, thereby improving the selection efficiency of the special observation mode. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A schematic diagram of a flow chart of an auxiliary detection method in an embodiment;
[0033] Figure 2 Another schematic diagram of the auxiliary detection method in one embodiment;
[0034] Figure 3 Another schematic diagram of the auxiliary detection method in one embodiment;
[0035] Figure 4 Another schematic diagram of the auxiliary detection method in one embodiment;
[0036] Figure 5 Another schematic diagram of the auxiliary detection method in one embodiment;
[0037] Figure 6 Another schematic diagram of the auxiliary detection method in one embodiment;
[0038] Figure 7 is a structural block diagram of an auxiliary detection device in an embodiment;
[0039] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0041] Endoscope systems can obtain image information of various organs inside the human body to help doctors analyze the condition of organs. When using endoscope systems, users often choose different special observation modes to observe the condition of organs more clearly.
[0042] The traditional endoscope system observation mode is still the white light observation mode, but some early lesions are less different from the surrounding tissues under white light and are easily overlooked. Therefore, during the use of the endoscope system, special observation modes such as endoscopic narrow band imaging technology (Narrow Band Imaging, NBI), texture and color enhancement technology (Texture and Color Enhancement Imaging, TXI), blue light imaging technology (Blue Light Imaging, BLI), and linked color imaging technology (Linked Color Imaging, LCI) can also be used to highlight the lesion area and improve the observation effect by increasing the difference between capillaries and mucosa, enhancing color differences, and enhancing contours.
[0043] Different special observation modes can be used to observe different scenarios. For example, the TXI mode or LCI mode is suitable for observing and identifying lesions at medium and long distances, and the NBI mode or BLI mode is suitable for observing and identifying lesions at close range. For example, the BLI mode can be used to observe blood vessels, especially capillary structures, and the LCI mode can be used to improve the contrast between different human tissues. However, in actual application, the application scenarios of the above special observation modes are not fixed. The same scene may clearly show the lesion area under different special observation modes. Therefore, different doctors have different habits in using special observation modes. For the same scene, different doctors may choose different special observation modes based on their own habits.
[0044] At present, doctors often switch special observation modes by manual selection when using endoscope systems. However, manual selection is inefficient and cannot adapt to scenes where image information changes rapidly, such as intestinal peristalsis.
[0045] In one embodiment, Figure 1 As shown, an auxiliary detection method is provided. This embodiment uses the method applied to an endoscope system as an example, and includes the following steps:
[0046] Step 101: Acquire the collected real-time video data and the mode selection model corresponding to the current user.
[0047] In the embodiment of the present application, a plurality of mode selection models are stored in the endoscope system, and different mode selection models correspond to different users. The mode selection model is constructed based on the special observation mode selection habits of the current user when using the endoscope system, and is specifically trained based on the special observation mode selected by the current user in the historical period and the historical video data.
[0048] When the endoscope system is started, the endoscope host can first determine the user who currently starts the endoscope system based on the user information collected during the startup process, and then select the mode selection model corresponding to the user from multiple mode selection models stored locally.
[0049] In one embodiment, the endoscope system may include an image acquisition sensor and an endoscope host. The image acquisition sensor is disposed at the lens position of the endoscope body, and can acquire images of the target organ in real time at a certain frequency as the lens moves, thereby obtaining real-time video data of the target organ. When the endoscope system detects that the user switches the endoscope system from the white light mode to the special observation mode through the conversion button on the handheld part during use, the real-time video data collected in the special observation mode is sent to the endoscope host, so that the endoscope host can determine the target observation mode based on the real-time video data.
[0050] Step 102: The real-time video data is judged and processed by the mode selection model corresponding to the current user to determine the target observation mode matched by the current user, so that the current user can use the real-time video data for auxiliary detection through the target observation mode.
[0051] In the embodiment of the present application, after receiving the real-time video data, the endoscope host inputs the real-time video data into the mode selection model corresponding to the user, and runs the mode selection model corresponding to the user. After receiving the real-time video data, the mode selection model corresponding to the user can analyze and judge each frame of medical image in the real-time video data in turn, determine the special observation mode corresponding to each frame of medical image, and determine the special observation mode corresponding to each frame of medical image as the target observation mode for output.
[0052] In one of the embodiments, in order to avoid the special observation mode switching too fast and affect the doctor's observation of the target organ, the mode selection model corresponding to the user can also reduce the determination frequency of the target observation mode. For example, for the received real-time video data, the mode selection model corresponding to the user selects one frame of medical image for analysis and judgment every M frames of medical image, obtains the corresponding special observation mode, and outputs each obtained special observation mode as the target observation mode. Wherein, M is the number of selected interval frames of medical images in the real-time video data. For example, after the mode selection model corresponding to the user determines the special observation mode corresponding to each frame of medical image in the real-time video data, every N special observation modes are taken as a group of special observation modes, and the special observation mode with the largest number of occurrences in each group of special observation modes is selected as the target observation mode for output. Wherein, N is the number of special observation modes in each group of special observation modes corresponding to each target observation mode.
[0053] In an embodiment of the present application, after the mode selection model corresponding to the user outputs the target observation mode, the endoscope host can first compare the current target observation mode with the previous target observation mode. If the current target observation mode is the same as the previous target observation mode, no mode switching process is performed; if the current target observation mode is different from the previous target observation mode, a mode switching process is performed to switch the observation mode of the endoscope system to the current target observation mode, so that the endoscope system can detect the target organ based on the current target observation mode.
[0054] The auxiliary detection method provided in the embodiment of the present application can pre-establish a mode selection model corresponding to the user according to the user's selection habits for the special observation mode. During the user's use of the endoscope system, there is no need for the user to manually switch the special observation mode. The mode selection model can determine the target observation mode that the endoscope system should currently use based on the real-time video data collected by the endoscope system. The endoscope system automatically switches modes according to the target observation mode output by the mode selection model, so that the endoscope system can detect the target organ according to the switched target observation mode. In the auxiliary detection method provided in the embodiment of the present application, the endoscope system can automatically determine and switch the special observation mode that should be currently used according to the pre-established mode selection model that conforms to the user's habits, thereby improving the selection efficiency of the special observation mode.
[0055] The above-mentioned embodiment introduces a scheme for determining a target observation mode according to a mode selection model. In another embodiment of the present application, a target observation mode can be determined based on multiple frames of medical images within a unit time period, including: Figure 2 Steps shown:
[0056] Step 201: Acquire each frame of medical image of real-time video data.
[0057] Step 202: input each medical image into the mode selection model in sequence to obtain a candidate observation mode corresponding to each medical image; the medical images and the candidate observation modes correspond one to one.
[0058] Step 203: For each unit time period, determine the candidate observation mode with the largest proportion among the multiple candidate observation modes as the target observation mode.
[0059] The unit time period may be one second.
[0060] In an embodiment of the present application, after the image acquisition sensor in the endoscope system collects real-time video data, each frame of medical image in the video data can be input into the mode selection model corresponding to the user in sequence. Each time the mode selection model obtains a frame of medical image, it determines the special observation mode corresponding to the medical image and records it as a candidate observation mode.
[0061] For each unit time period, the mode selection model can determine multiple candidate observation modes based on multiple medical images received in the unit time period. Then the mode selection model can calculate the proportion of different types of candidate observation modes among the multiple candidate modes, and determine the candidate observation mode with the largest proportion as the target observation mode. For example, if the candidate observation modes include BLI and LCI, and the image acquisition frequency of the image acquisition sensor is 60 frames of medical images per second, then the mode selection model can determine 60 candidate observation modes in the unit time period, and then the mode selection model can calculate the proportion of candidate observation modes when they are BLI and LCI respectively, and determine the candidate observation mode with the largest proportion as the target observation mode.
[0062] In one of the embodiments, after receiving multiple medical images within a unit time period, the mode selection model can also first determine whether the multiple medical images are medical images of the same part. If the multiple medical images are medical images of the same part, the candidate observation mode with the largest proportion is determined as the target observation mode in accordance with the above-mentioned method of determining the proportion. If the multiple medical images are medical images of multiple parts, the mode selection model first classifies the multiple medical images according to different parts, and then for each type of medical image, the multiple candidate observation modes corresponding to the multiple medical images of the same type are determined as the target observation mode in accordance with the above-mentioned method of determining the proportion. In this case, the mode selection model will output multiple target selection modes within a unit time period, and the endoscope system can switch modes according to the target selection mode.
[0063] The method provided in the embodiment of the present application can process real-time video data in segments. For multiple frames of medical images in real-time video data in each unit time period, the mode selection model first determines the special observation mode corresponding to each frame of medical image, that is, the candidate observation mode, and then calculates the proportion of various candidate observation modes among multiple candidate observation modes, and determines the candidate observation mode with the largest proportion as the target observation mode. In the embodiment of the present application, the mode selection model determines the target observation mode once every unit time period, and controls the frequency of mode switching of the endoscope system by setting the time of the unit time period, thereby avoiding the special observation mode switching too fast and the imaging doctor's observation of the target organ.
[0064] The above-mentioned embodiment introduces that the target observation frequency can be determined by the mode selection model. In another embodiment of the present application, a process of constructing the mode selection model is provided, including: Figure 3 Steps shown:
[0065] Step 301, obtaining multiple training samples and labels corresponding to each training sample; the training samples are multiple frames of historical images in historical video data collected when the user uses the endoscope system, and the labels are observation modes corresponding to each historical image.
[0066] Step 302: Input the training samples into the initial model to obtain the training observation pattern output by the initial model.
[0067] Step 303: Perform model training according to the training observation patterns and annotations to obtain a pattern selection model.
[0068] In an embodiment of the present application, the endoscope system can collect video data of the user in the process of using a special observation mode as historical video data, and then send the historical video data to the user client for the user to annotate. After receiving the historical video data, the user determines the observation mode that will be selected based on each frame of historical image (i.e., training sample) in the historical video data, and annotates the corresponding historical image according to the observation mode determined by habit.
[0069] Then, the training samples are input into the initial model to obtain the training observation pattern output by the initial model. The output error of the initial model is determined based on the training observation pattern and the annotation, and the objective function is established with the goal of minimizing the output error. Next, the objective function is iterated to obtain the output error corresponding to each iteration. If the output error meets the iteration end condition, the iteration is terminated, and the initial model at the end of the iteration is determined as the mode selection model corresponding to the user.
[0070] Optionally, the initial model processes the training sample and outputs a corresponding training observation pattern, wherein the intermediate processing process may include: inputting the training sample into the initial model, the initial model obtains at least one feature information such as color, texture, structure, etc. corresponding to the training sample, and determines the training observation pattern corresponding to the training sample based on the acquired feature information; then, the initial model can be trained based on the training observation pattern corresponding to the training sample output by the initial model and the annotation corresponding to the training sample, so as to obtain a mode selection model that matches the user's usage habits. It should be noted that the feature information extracted by the initial model is not limited to color, texture, and structural feature information, and it can also include other types of feature information, such as edge and depth feature information, etc. This embodiment does not specifically limit the feature information.
[0071] Accordingly, when using a pre-trained mode selection model corresponding to the current user to perform adaptive observation mode switching, each frame of medical image in the collected real-time video data can be input into the mode selection model in turn, and the medical image is processed by the mode selection model, and at least one feature information such as color, texture, structure, etc. corresponding to the medical image is extracted to obtain the feature data of the medical image; then, the feature data is calculated based on the trained neuron parameters in the mode selection model to obtain a special observation mode matching the medical image; and then, according to the special observation modes corresponding to each medical image, the target observation mode matched by the current user is determined, so that the current user can use the real-time video data for auxiliary detection through the target observation mode.
[0072] The method provided in the embodiment of the present application can train an initial model based on historical video data collected by the user during the use of the endoscope system in a historical period, and the user's annotation of each frame of historical images in the historical video data to obtain a mode selection model corresponding to the user, so that when the user subsequently uses the endoscope system, the endoscope system can automatically determine and switch the special observation mode that should be used currently according to the pre-established mode selection model that conforms to the user's habits, thereby improving the selection efficiency of the special observation mode.
[0073] The above-mentioned embodiment introduces a scheme for determining the target observation mode according to the medical image. In another embodiment of the present application, the endoscope system also includes a distance measuring sensor. During use, the endoscope system can also determine the target observation mode according to the medical image and the distance information corresponding to the medical image, including: Figure 4 Steps shown:
[0074] Step 401: Add the distance information collected by the distance measuring sensor to each frame of the medical image of the real-time video data to obtain a medical image carrying the distance information.
[0075] In an embodiment of the present application, the endoscope system may further include a distance measuring sensor, which is arranged at the lens position of the endoscope body like the image acquisition sensor, and is used to collect real-time distance information between the distance measuring sensor and the target organ.
[0076] The distance measuring sensor can be connected to the image acquisition sensor by wire or wirelessly to facilitate information synchronization. When the endoscope system uses a special observation mode, the distance measuring sensor can send the measured real-time distance information to the endoscope host. The endoscope host can determine the distance information corresponding to each frame of the medical image through information such as time, and add the distance information corresponding to the medical image to the medical image, thereby obtaining a medical image carrying distance information.
[0077] Step 402: input each frame of medical image carrying distance information into the mode selection model in sequence, obtain the candidate observation mode output by the mode selection model according to the medical image carrying distance information, and determine the target observation mode according to the multiple candidate observation modes.
[0078] In an embodiment of the present application, the mode selection model is obtained by training an initial model based on historical images carrying distance information obtained by image acquisition sensors during the user's use of the endoscope system during a historical period of time, and the user's annotations of each frame of the historical images carrying distance information.
[0079] Therefore, during the use of the endoscope system, the mode selection model can determine multiple candidate observation modes based on multiple medical images carrying distance information received within the unit time period. Then the mode selection model can calculate the proportion of different types of candidate observation modes among the multiple candidate modes, and determine the candidate observation mode with the largest proportion as the target observation mode.
[0080] The pre-trained mode selection model is obtained by training based on multiple frames of historical images carrying distance information and the annotations corresponding to each historical image carrying distance information. The specific training process includes:
[0081] The endoscope system collects video data of the user in the process of using the special observation mode as historical video data. Then it receives the distance information sent by the distance measuring sensor, and determines the distance information corresponding to each frame of the historical image through information such as time, and adds the distance information corresponding to the historical image to the historical image, thereby obtaining the historical image carrying the distance information, that is, obtaining the historical video data carrying the distance information.
[0082] Then, the historical video data carrying the distance information is sent to the user client for the user to annotate. After receiving the historical video data carrying the distance information, the user determines the observation mode that will be selected based on each frame of the historical image carrying the distance information (i.e., the training sample) in the historical video data carrying the distance information, and annotates the corresponding historical image according to the observation mode determined by habit.
[0083] Then, the training samples are input into the initial model to obtain the training observation pattern output by the initial model. The output error of the initial model is determined based on the training observation pattern and the annotation, and the objective function is established with the goal of minimizing the output error. Next, the objective function is iterated to obtain the output error corresponding to each iteration. If the output error meets the iteration end condition, the iteration is terminated, and the initial model at the end of the iteration is determined as the mode selection model corresponding to the user.
[0084] In an embodiment of the present application, the endoscope system also includes a distance measuring sensor. After the image acquisition sensor acquires the medical image, the real-time distance information acquired by the distance measuring sensor can be added to each corresponding frame of the medical image. The mode selection model can determine the target observation mode based on the medical image carrying the distance information. The method provided in the embodiment of the present application adds distance information in the process of determining the target observation mode, thereby improving the accuracy of the determined target observation mode.
[0085] In another embodiment of the present application, the mode selection model corresponding to the user may also be updated, including: Figure 5 Steps shown:
[0086] Step 501: Receive historical video data uploaded by a user and observation patterns annotated by the user.
[0087] Step 502: Update the mode selection model according to the historical video data uploaded by the user.
[0088] In the embodiment of the present application, when the user is using the endoscope system and the target observation mode switched by the endoscope system is not the special observation mode that the user wants to select, the mode selection model can be actively updated. At this time, the user can actively obtain the real-time video data in the process of using the special observation mode of the endoscope system as historical video data, and annotate the observation mode for each frame of historical image in the historical video data, and then upload the historical video data and annotation to the endoscope system.
[0089] When the endoscope system receives historical video data and annotations actively uploaded by the user, it first detects whether there is a mode selection model corresponding to the user locally. If so, the mode selection model is retrained and updated based on the historical video data and annotations uploaded by the user.
[0090] In one of the embodiments, the user may also carry update instructions on the uploaded historical video data and annotations, directly instructing the endoscope system to update the mode selection model corresponding to the user according to the historical video data and annotations.
[0091] In the method provided in the embodiment of the present application, the user can actively upload historical video data and annotations when the endoscope system switches inaccurately to a special observation mode, so as to instruct the endoscope system to promptly update the mode selection model corresponding to the user, so that the mode selection model in the endoscope system always fits the user's usage habits, thereby improving the accuracy of the determined target observation mode.
[0092] The above-mentioned embodiment introduces that there are multiple mode selection models in the endoscope system. In another embodiment of the present application, a process for establishing a mode selection model in the endoscope system is provided, including: Figure 6 Steps shown:
[0093] Step 601: Obtain the user information input by the user when logging in.
[0094] Step 602: Search a preset model library for a mode selection model corresponding to the user information.
[0095] Step 603: If the mode selection model corresponding to the user information is not found, historical video data is obtained according to the user information.
[0096] Step 604: Perform model training based on historical video data to obtain a mode selection model corresponding to the user information.
[0097] In an embodiment of the present application, when a user uses the endoscope system, he or she needs to first log in by entering user information such as name and work number, so that the endoscope system can search for a mode selection model corresponding to the user information in a preset model library based on the user information, and determine whether a mode selection model corresponding to the user has been established in the endoscope system.
[0098] If a mode selection model corresponding to the user information is found, it is determined that the endoscope system has established a mode selection model corresponding to the user. When the user uses a special observation mode of the endoscope system, the mode selection model can be directly run.
[0099] If the mode selection model corresponding to the user information is not found, it is determined that the endoscope system has not established a mode selection model corresponding to the user. When the user uses the special observation mode of the endoscope system, real-time video data is collected as historical video data, and the historical video data is sent to the user client for annotation. After receiving the annotation of the historical video data sent by the user client, the initial model is trained based on the historical video data and the annotation to obtain the mode selection model corresponding to the user information.
[0100] After the above process, the endoscope system can gradually establish multiple mode selection models locally, so that when different users use the special observation mode of the endoscope system, the endoscope system directly determines and switches the target observation mode according to the mode selection model corresponding to the user.
[0101] In the method provided in the embodiment of the present application, when a user uses the endoscope system, the user needs to first enter the user information to log in, so that the endoscope system can determine whether there is a mode selection model corresponding to the user information in the preset model library based on the user information, and when the mode selection model corresponding to the user information does not exist in the preset model library, the endoscope system actively collects historical video data of the user using the special observation mode of the endoscope system, and establishes a mode selection model corresponding to the user based on the historical video data and the user's annotations to the historical video data, so that the endoscope system can gradually establish multiple mode selection models, so that when different users use the special observation mode of the endoscope system, the endoscope system can automatically determine and switch the target observation mode directly according to the mode selection model corresponding to the user, thereby improving the mode switching efficiency of the endoscope system.
[0102] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0103] Based on the same inventive concept, the embodiment of the present application also provides an auxiliary detection device for implementing the auxiliary detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more auxiliary detection device embodiments provided below can refer to the limitations on the auxiliary detection method above, and will not be repeated here.
[0104] In one embodiment, Figure 7 As shown, an auxiliary detection device is provided, including: an acquisition module 701 and an acquisition module 702, wherein:
[0105] The acquisition module 701 is used to acquire the collected real-time video data and the mode selection model corresponding to the current user; wherein the mode selection model is determined based on the pre-acquired user information and is trained based on the special observation mode selected by the current user in the historical period and the historical video data;
[0106] The determination module 702 is used to judge and process the real-time video data through the mode selection model corresponding to the current user, and determine the target observation mode matched by the current user, so that the current user can use the real-time video data for auxiliary detection through the target observation mode.
[0107] In one embodiment, the determination module 702 is specifically used to obtain medical images of each frame of the real-time video data; input each medical image into the mode selection model in turn to obtain the candidate observation mode corresponding to each medical image; the medical images and the candidate observation modes correspond one to one; for each unit time period, the candidate observation mode with the largest proportion among the multiple candidate observation modes is determined as the target observation mode.
[0108] In one embodiment, the auxiliary detection device also includes a construction module 704, which is specifically used to obtain multiple training samples and annotations corresponding to each training sample; the training samples are multiple frames of historical images in the historical video data collected when the user uses the endoscope system, and are annotated as observation modes corresponding to each historical image; the training samples are input into the initial model to obtain the training observation mode output by the initial model; model training is performed according to the training observation mode and annotations to obtain a mode selection model.
[0109] In one embodiment, the endoscope system also includes a ranging sensor; the auxiliary detection device also includes an adding module 705, which is specifically used to add the distance information collected by the ranging sensor to each frame of medical image in the real-time video data to obtain a medical image carrying the distance information; correspondingly, the determination module 702 is also used to input each frame of medical image carrying the distance information into the mode selection model in turn, to obtain the candidate observation mode output by the mode selection model according to the medical image carrying the distance information, and to determine the target observation mode according to the multiple candidate observation modes; wherein the pre-trained mode selection model is obtained by training based on multiple frames of historical images carrying distance information and the annotations corresponding to each historical image carrying distance information.
[0110] In one embodiment, the auxiliary detection device further includes an updating module 706, which is specifically configured to receive historical video data uploaded by a user and observation patterns annotated by the user; and update the pattern selection model according to the historical video data uploaded by the user.
[0111] In one embodiment, the auxiliary detection device also includes a training module 707, which is specifically used to obtain user information input by the user when logging in; search for a mode selection model corresponding to the user information in a preset model library; if the mode selection model corresponding to the user information is not found, obtain historical video data based on the user information; perform model training based on the historical video data to obtain a mode selection model corresponding to the user information.
[0112] Each module in the auxiliary detection device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0113] In one embodiment, an endoscope system is further provided, characterized in that the endoscope system comprises an endoscope body, an endoscope host and a display; the endoscope body comprises a lens and a handheld part; the lens comprises an image acquisition sensor, and the handheld part comprises a switching button; the endoscope host is respectively connected to the endoscope body and the display for communication;
[0114] The endoscope body is used to enter the human body, collect real-time video data, and send it to the endoscope host.
[0115] The lens is arranged at the front end of the endoscope body, and the lens includes an image acquisition sensor, which is used to collect medical images in real time to obtain real-time video data.
[0116] The handheld part is arranged at the end of the endoscope body and is used to control the length of the endoscope body entering the human body. The handheld part includes a conversion button, which is used to realize the mode conversion between the white light mode and the special light mode of the endoscope system.
[0117] The endoscope host is used to execute the steps of the auxiliary detection method described in the above embodiment.
[0118] The display is used to display the medical images collected in real time by the endoscope system in various observation modes (white light mode and special observation mode); the conversion button is used to realize the mode switching between the white light mode and the special light observation mode.
[0119] In the embodiment of the present application, the endoscope system stores multiple mode selection models, and different mode selection models correspond to different users. The mode selection model is constructed based on the user's special observation mode selection habits when using the endoscope system, and is specifically trained based on the special observation mode selected by the user when using the endoscope system in a historical period and historical video data.
[0120] When the endoscope system is started, the endoscope host can first determine the user who currently starts the endoscope system based on the user information collected during the startup process, and then select the mode selection model corresponding to the user from multiple mode selection models stored locally.
[0121] During use, the endoscope system can collect images of the target organ in real time at a certain frequency through the image acquisition sensor set at the lens position, thereby obtaining real-time video data of the target organ. When the user switches the endoscope system from the white light mode to the special observation mode through the conversion button on the handheld part, the real-time video data collected in the special observation mode will be sent to the endoscope host.
[0122] After receiving the real-time video data, the endoscope host inputs the real-time video data into the mode selection model corresponding to the user and runs the mode selection model corresponding to the user. After receiving the real-time video data, the mode selection model corresponding to the user can analyze and judge each frame of medical image in the real-time video data in turn, determine the special observation mode corresponding to each frame of medical image, and determine the special observation mode corresponding to each frame of medical image as the target observation mode for output.
[0123] In one of the embodiments, in order to avoid the rapid switching of special observation modes and the observation of the target organ by the imaging doctor, the mode selection model corresponding to the user can also reduce the determination frequency of the target observation mode. For example, for the received real-time video data, the mode selection model corresponding to the user selects one frame of medical image for analysis and judgment every M frames of medical image, obtains the corresponding special observation mode, and outputs each obtained special observation mode as the target observation mode. For example, after the mode selection model corresponding to the user determines the special observation mode corresponding to each frame of medical image in the real-time video data, for every N special observation modes, the special observation mode with the largest number of occurrences among the N special observation modes is selected as the target observation mode and output.
[0124] After the mode selection model corresponding to the user outputs the target observation mode, the endoscope host can first compare the current target observation mode with the previous target observation mode. If the current target observation mode is the same as the previous target observation mode, no mode switching process is performed; if the current target observation mode is different from the previous target observation mode, a mode switching process is performed to switch the observation mode of the endoscope system to the current target observation mode, so that the endoscope system can detect the target organ based on the current target observation mode.
[0125] The endoscope system provided in the embodiment of the present application can pre-establish a mode selection model corresponding to the user according to the user's selection habits for the special observation mode. During the user's use of the endoscope system, the user does not need to manually switch the special observation mode. The mode selection model can determine the target observation mode that the endoscope system should currently use according to the real-time video data collected by the endoscope system. The endoscope system automatically switches modes according to the target observation mode output by the mode selection model, so that the endoscope system can detect the target organ according to the switched target observation mode. In the endoscope system provided in the embodiment of the present application, the endoscope system can automatically determine and switch the special observation mode that should be currently used according to the pre-established mode selection model that conforms to the user's habits, thereby improving the selection efficiency of the special observation mode.
[0126] In one embodiment, the lens further includes a distance measuring sensor; the distance measuring sensor is used to collect the distance between the lens and the target organ.
[0127] In an embodiment of the present application, the ranging sensor can be set at the lens position of the endoscope body like the image acquisition sensor, and communicated with the endoscope host to collect real-time distance information between the ranging sensor and the target organ.
[0128] When the endoscope system uses a special observation mode, the distance sensor can send the measured real-time distance information to the endoscope host. The endoscope host can determine the distance information corresponding to each frame of the medical image through information such as time, and add the distance information corresponding to the medical image to the medical image, thereby obtaining a medical image carrying the distance information. The endoscope host can then input the medical image carrying the distance information into the mode selection model.
[0129] The mode selection model determines multiple candidate observation modes according to multiple medical images carrying distance information received within the unit time period. Then, the mode selection model can calculate the proportion of different types of candidate observation modes among the multiple candidate modes, and determine the candidate observation mode with the largest proportion as the target observation mode.
[0130] Among them, the mode selection model is obtained by training the initial model based on the historical images carrying distance information obtained by the image acquisition sensor during the user's use of the endoscope system during the historical period, and the user's annotation of each frame of the historical image carrying distance information.
[0131] In an embodiment of the present application, the endoscope system also includes a distance measuring sensor. After the endoscope host obtains the real-time video data sent by the image acquisition sensor and the real-time distance information sent by the distance measuring sensor, it can determine the distance information corresponding to each frame of medical image in the real-time video data through information such as time, and add the distance information to each corresponding frame of medical image. The mode selection model can determine the target observation mode based on the medical image carrying the distance information. The endoscope system provided in the embodiment of the present application adds distance information in the process of determining the target observation mode, thereby improving the accuracy of the determined target observation mode.
[0132] In one embodiment, a computer device is provided, which includes an endoscope system, and its internal structure diagram can be as follows: Figure 8As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface and the display unit are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an auxiliary detection method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen.
[0133] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0134] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0135] Acquire the collected real-time video data and a mode selection model corresponding to the current user; wherein the mode selection model is determined based on the pre-acquired user information and is trained based on the special observation mode selected by the current user in the historical period and the historical video data;
[0136] The real-time video data is judged and processed through the mode selection model corresponding to the current user to determine the target observation mode matched by the current user, so that the current user can use the real-time video data for auxiliary detection through the target observation mode.
[0137] In one embodiment, the processor also implements the following steps when executing the computer program: judging and processing the real-time video data through the mode selection model corresponding to the user, and determining the target observation mode that matches the real-time video data, including: obtaining medical images of each frame of the real-time video data; inputting each medical image into the mode selection model in turn to obtain the candidate observation mode corresponding to each medical image; one-to-one correspondence between the medical images and the candidate observation modes; for each unit time period, determining the candidate observation mode with the largest proportion among multiple candidate observation modes as the target observation mode.
[0138] In one embodiment, the processor further implements the following steps when executing the computer program: obtaining multiple training samples and labels corresponding to each training sample; the training samples are multiple frames of historical images in the historical video data collected when the user uses the endoscope system, and are labeled as observation modes corresponding to each historical image; the training samples are input into the initial model to obtain the training observation mode output by the initial model; and the model is trained according to the training observation mode and the labels to obtain a mode selection model.
[0139] In one embodiment, the endoscope system also includes a ranging sensor; when the processor executes the computer program, the following steps are also implemented: adding the distance information collected by the ranging sensor to each frame of medical image in the real-time video data to obtain a medical image carrying the distance information; inputting each frame of medical image carrying the distance information into the mode selection model in turn to obtain a candidate observation mode output by the mode selection model according to the medical image carrying the distance information, and determining a target observation mode according to the multiple candidate observation modes; wherein the pre-trained mode selection model is obtained by training based on multiple frames of historical images carrying distance information and the annotations corresponding to each historical image carrying distance information.
[0140] In one embodiment, when the processor executes the computer program, the following steps are also implemented: receiving historical video data uploaded by the user and observation patterns annotated by the user; and updating the pattern selection model according to the historical video data uploaded by the user.
[0141] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining user information input by the user when logging in; searching for a mode selection model corresponding to the user information in a preset model library; if the mode selection model corresponding to the user information is not found, obtaining historical video data based on the user information; and performing model training based on the historical video data to obtain a mode selection model corresponding to the user information.
[0142] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0143] Acquire the collected real-time video data and a mode selection model corresponding to the current user; wherein the mode selection model is determined based on the pre-acquired user information and is trained based on the special observation mode selected by the current user in the historical period and the historical video data;
[0144] The real-time video data is judged and processed through the mode selection model corresponding to the current user to determine the target observation mode matched by the current user, so that the current user can use the real-time video data for auxiliary detection through the target observation mode.
[0145] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: judging and processing the real-time video data through the mode selection model corresponding to the user, and determining the target observation mode that matches the real-time video data, including: obtaining medical images of each frame of the real-time video data; inputting each medical image into the mode selection model in turn to obtain the candidate observation mode corresponding to each medical image; one-to-one correspondence between the medical images and the candidate observation modes; for each unit time period, determining the candidate observation mode with the largest proportion among multiple candidate observation modes as the target observation mode.
[0146] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining multiple training samples and labels corresponding to each training sample; the training samples are multiple frames of historical images in the historical video data collected when the user uses the endoscope system, and are labeled as observation modes corresponding to each historical image; the training samples are input into the initial model to obtain the training observation mode output by the initial model; model training is performed according to the training observation mode and the labels to obtain a mode selection model.
[0147] In one embodiment, the endoscope system also includes a ranging sensor; when the computer program is executed by the processor, the following steps are also implemented: adding the distance information collected by the ranging sensor to each frame of medical image in the real-time video data to obtain a medical image carrying the distance information; inputting each frame of medical image carrying the distance information into the mode selection model in turn to obtain a candidate observation mode output by the mode selection model according to the medical image carrying the distance information, and determining a target observation mode according to the multiple candidate observation modes; wherein the pre-trained mode selection model is obtained by training based on multiple frames of historical images carrying distance information and the annotations corresponding to each historical image carrying the distance information.
[0148] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: receiving historical video data uploaded by the user and observation patterns annotated by the user; and updating the pattern selection model according to the historical video data uploaded by the user.
[0149] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining user information input by the user when logging in; searching for a mode selection model corresponding to the user information in a preset model library; if the mode selection model corresponding to the user information is not found, obtaining historical video data based on the user information; and performing model training based on the historical video data to obtain a mode selection model corresponding to the user information.
[0150] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0151] Acquire the collected real-time video data and a mode selection model corresponding to the current user; wherein the mode selection model is determined based on the pre-acquired user information and is trained based on the special observation mode selected by the current user in the historical period and the historical video data;
[0152] The real-time video data is judged and processed through the mode selection model corresponding to the current user to determine the target observation mode matched by the current user, so that the current user can use the real-time video data for auxiliary detection through the target observation mode.
[0153] In one embodiment, the real-time video data is judged and processed by the mode selection model corresponding to the user to determine the target observation mode that matches the real-time video data, including: obtaining medical images of each frame of the real-time video data; inputting each medical image into the mode selection model in turn to obtain the candidate observation mode corresponding to each medical image; the medical images and the candidate observation modes correspond one to one; for each unit time period, determining the candidate observation mode with the largest proportion among multiple candidate observation modes as the target observation mode.
[0154] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining multiple training samples and labels corresponding to each training sample; the training samples are multiple frames of historical images in the historical video data collected when the user uses the endoscope system, and are labeled as observation modes corresponding to each historical image; the training samples are input into the initial model to obtain the training observation mode output by the initial model; model training is performed according to the training observation mode and the labels to obtain a mode selection model.
[0155] In one embodiment, the endoscope system also includes a ranging sensor; when the computer program is executed by the processor, the following steps are also implemented: adding the distance information collected by the ranging sensor to each frame of medical image in the real-time video data to obtain a medical image carrying the distance information; inputting each frame of medical image carrying the distance information into the mode selection model in turn to obtain a candidate observation mode output by the mode selection model according to the medical image carrying the distance information, and determining a target observation mode according to the multiple candidate observation modes; wherein the pre-trained mode selection model is obtained by training based on multiple frames of historical images carrying distance information and the annotations corresponding to each historical image carrying the distance information.
[0156] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: receiving historical video data uploaded by the user and observation patterns annotated by the user; and updating the pattern selection model according to the historical video data uploaded by the user.
[0157] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining user information input by the user when logging in; searching for a mode selection model corresponding to the user information in a preset model library; if the mode selection model corresponding to the user information is not found, obtaining historical video data based on the user information; and performing model training based on the historical video data to obtain a mode selection model corresponding to the user information.
[0158] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0159] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0160] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0161] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. An auxiliary detection method, It is characterized in that The method comprises: Acquire the collected real-time video data and a mode selection model corresponding to the current user; wherein the mode selection model is determined based on the pre-acquired user information and is trained based on the special observation mode selected by the current user in a historical period and historical video data; The real-time video data is judged and processed through the mode selection model corresponding to the current user to determine the target observation mode matched by the current user, so that the current user can use the real-time video data for auxiliary detection through the target observation mode.
2. The method according to claim 1, It is characterized in that The judging and processing the real-time video data by using the mode selection model corresponding to the current user to determine the target observation mode matched by the current user includes: Acquire each frame of medical image of the real-time video data; Inputting each of the medical images into the mode selection model in turn to obtain a candidate observation mode corresponding to each of the medical images; the medical images and the candidate observation modes correspond one to one; For each unit time period, the candidate observation mode with the largest proportion among the plurality of candidate observation modes is determined as the target observation mode.
3. The method according to claim 1, It is characterized in that The process of constructing the mode selection model includes: Acquire multiple training samples and annotations corresponding to each of the training samples; the training samples are multiple frames of historical images in the historical video data collected when the user uses the endoscope system, and the annotations are observation modes corresponding to each of the historical images; Inputting the training samples into the initial model to obtain a training observation pattern output by the initial model; Model training is performed according to the training observation pattern and the annotation to obtain the pattern selection model.
4. The method according to claim 1, It is characterized in that The endoscope system includes a range sensor; the method further includes: Adding the distance information collected by the distance measuring sensor to each frame of the medical image of the real-time video data to obtain a medical image carrying the distance information; Correspondingly, determining the target observation mode according to the pre-trained mode selection model and the real-time video data includes: Inputting each frame of the medical image carrying the distance information into the mode selection model in sequence, obtaining the candidate observation mode output by the mode selection model according to the medical image carrying the distance information, and determining the target observation mode according to the plurality of the candidate observation modes; The pre-trained mode selection model is obtained by training based on multiple frames of historical images carrying distance information and annotations corresponding to each of the historical images carrying distance information.
5. The method according to any one of claims 1 to 4, It is characterized in that The method further comprises: Receiving historical video data uploaded by the user and observation patterns annotated by the user; The mode selection model is updated according to the historical video data uploaded by the user.
6. The method according to claim 1, It is characterized in that The method further comprises: Get the user information entered when the user logs in; Searching for a mode selection model corresponding to the user information in a preset model library; If no mode selection model corresponding to the user information is found, acquiring historical video data according to the user information; Model training is performed based on the historical video data to obtain a mode selection model corresponding to the user information.
7. An auxiliary detection device, It is characterized in that The device comprises: An acquisition module, used to acquire the collected real-time video data and a mode selection model corresponding to the current user; wherein the mode selection model is determined based on the pre-acquired user information and is trained based on the special observation mode selected by the current user in a historical period and historical video data; A determination module is used to judge and process the real-time video data through the mode selection model corresponding to the current user, and determine the target observation mode matched by the current user, so that the current user can use the real-time video data for auxiliary detection through the target observation mode.
8. An endoscope system, It is characterized in that The endoscope system comprises an endoscope body, an endoscope host and a display; the endoscope host is respectively connected to the endoscope body and the display for communication; The endoscope body is used to obtain real-time video data and send it to the endoscope host; The endoscope host is used to perform the steps of the auxiliary detection method according to any one of claims 1 to 6; The display is used to display the real-time video data according to the target observation mode determined by the endoscope host.
9. The system according to claim 8, It is characterized in that The endoscope body includes a lens; the lens includes an image acquisition sensor, and the image acquisition sensor is used to acquire medical images in real time to obtain the real-time video data; the lens also includes a distance measuring sensor; the distance measuring sensor is used to collect the distance between the lens and the target organ.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
12. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
