Learning support device, endoscope system, learning support method, and recording medium
The learning support device generates realistic training images by arranging and coloring treatment tools within background images, addressing the lack of clinical data to enhance treatment tool recognition accuracy in endoscopic surgery.
Patent Information
- Application Number
- JP2024049549
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-28
- Filing Date
- 2024-03-26
- Publication Date
- 2024-10-11
AI Technical Summary
Existing methods for generating training images for deep learning-based treatment tool recognition in endoscopic images are inadequate, particularly when there are no or few clinical images available, leading to suboptimal recognition performance.
A learning support device that generates training images by arranging treatment tools in a three-dimensional manner within a background image, adjusting colors based on distance and illumination, and superimposing these foreground images to create realistic training images without relying on clinical data.
This approach enables the creation of high-accuracy learning models capable of accurately recognizing treatment tools in endoscopic images, even when clinical images are scarce, by ensuring the placement and color of training images closely resemble those in clinical scenarios.
Smart Images

Figure 2024144311000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a learning support device, an endoscope system, a learning support method, and a recording medium. [Background technology]
[0002] In endoscope systems, technology is used to automatically recognize treatment tools in endoscopic images. One of the techniques for recognizing treatment tools is a method that uses deep learning, which requires a large number of training images. Meanwhile, a technique for generating a training image from two images is known (see, for example, Patent Document 1). In Patent Document 1, a training image is generated by simply averaging the intensities of each pixel in a first image and a second image. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] U.S. Pat. No. 1,061,4346 Summary of the Invention [Problem to be solved by the invention]
[0004] In order to improve the recognition performance of a treatment tool during an endoscopic operation, it is desirable to use a clinical image including the treatment tool or an image with a similar reality as a training image. However, there are cases where there are no or few clinical images including a desired treatment tool. In addition, for a treatment tool with no or few clinical images, it is difficult to generate a training image with a similar reality to a clinical image by the simple method of Patent Document 1. [Means for solving the problem]
[0005] One aspect of the present invention is a learning support device that supports the creation of a learning model for recognizing treatment tools in endoscopic images, the learning support device comprising a processor that generates a foreground image including one or more treatment tools by arranging images of the one or more treatment tools within an image area based on arrangement data, the arrangement data being data that indicates the three-dimensional arrangement of the one or more treatment tools as seen from an endoscope, and the learning support device that superimposes the foreground image on a background image to generate a training image.
[0006] Another aspect of the present invention is an endoscopic system comprising the above-mentioned learning support device, an endoscope that acquires endoscopic images, and an image processing device having a processor and a memory unit that stores the learning model, wherein the processor of the image processing device inputs the endoscopic image to the learning model and acquires the recognition result of the treatment tool in the endoscopic image by the learning model.
[0007] Another aspect of the present invention is a learning support method for supporting the creation of a learning model for recognizing treatment tools in endoscopic images, the learning support method generating a foreground image including one or more treatment tools by arranging images of the one or more treatment tools within an image area based on arrangement data, the arrangement data being data indicating a three-dimensional arrangement of the one or more treatment tools as seen from an endoscope, and generating a training image by superimposing the foreground image on a background image. Another aspect of the present invention is a non-transitory computer-readable recording medium storing a learning support program for causing a computer to execute the above-mentioned learning support method. [Brief description of the drawings]
[0008] [Figure 1] 1 is an overall configuration diagram of an example of an endoscope system to which a learning support device is applied; [Figure 2A] 11A and 11B are diagrams illustrating endoscopic images for explaining tracking control. [Figure 2B] 11A and 11B are diagrams illustrating endoscopic images for explaining tracking control. [Diagram 3] 1 is a block diagram showing a configuration of a learning support device according to a first embodiment. [Figure 4] FIG. 11 is a diagram showing an example of arrangement data relating to a treatment tool. [Figure 5A] 1A and 1B are diagrams showing an example of the arrangement of endoscope ports and treatment instrument ports and the observation area in laparoscopic surgery. [Figure 5B] 13A to 13C are diagrams showing other examples of the arrangement of endoscope ports and treatment instrument ports and the observation area in laparoscopic surgery. [Figure 5C] 13A to 13C are diagrams showing other examples of the arrangement of endoscope ports and treatment instrument ports and the observation area in laparoscopic surgery. [Figure 6A] 4 is a diagram showing the three-dimensional positional relationship between a treatment tool and an endoscope in the abdominal cavity. FIG. [Figure 6B] FIG. 6B is a diagram showing arrangement data created based on the positional relationship of FIG. 6A. [Figure 7] 2 is a flowchart of a learning support method according to the first embodiment. [Figure 8] 8 is a diagram for explaining image processing in the learning support method of FIG. 7. [Figure 9] 11A and 11B are diagrams for explaining a method of selecting a treatment tool image based on arrangement data. [Figure 10] 13 is a flowchart of a modified example of the learning support method according to the first embodiment. [Figure 11] FIG. 11 is a block diagram showing the configuration of a learning support device according to a second embodiment. [Figure 12] FIG. 11 is a diagram illustrating a method for creating placement data. [Figure 13] 10 is a flowchart of a learning support method according to a second embodiment. [Figure 14] 14 is a diagram for explaining image processing in the learning support method of FIG. 13. [Figure 15] FIG. 13 is a block diagram showing the configuration of a learning support device according to a third embodiment. [Figure 16] 1A and 1B are diagrams illustrating the spatial distribution of brightness of illumination light from an endoscope. [Figure 17] 13 is a flowchart of a learning support method according to a third embodiment. [Figure 18]FIG. 13 is a block diagram showing the configuration of a learning support device according to a fourth embodiment. [Figure 19] 13 is a flowchart of a learning support method according to a fourth embodiment. [Figure 20] 13A and 13B are diagrams illustrating adjustment of the brightness of a treatment tool based on the brightness distribution of a background image. [Figure 21] FIG. 13 is a block diagram showing the configuration of an endoscope system according to a fifth embodiment. [Figure 22A] 13 is a flowchart of a learning support method according to a fifth embodiment. [Figure 22B] 13 is a flowchart of an image processing method according to a fifth embodiment. [Diagram 23] FIG. 13 is a diagram illustrating a learning support method according to the fifth embodiment. [Figure 24] 11A and 11B are diagrams illustrating an example of a recognition result of a treatment tool displayed on a display device. [Diagram 25] 11A and 11B are diagrams illustrating correction of an endoscopic image based on a training image. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] (First embodiment) A learning support device and a learning support method according to a first embodiment of the present invention will be described with reference to the drawings. The learning support device 10 according to this embodiment supports the creation of a learning model for recognizing a treatment tool in an endoscopic image, and specifically, generates training images necessary for creating the learning model.
[0010] 1 shows an example of an endoscopic system 100 to which a learning model created by a learning support device 10 is applied. The endoscopic system 100 includes an endoscope 11, a moving device 12 that changes the position and posture of the endoscope 11, a control device 13, and a display device 14. The endoscopic system 100 is used in surgery in which the endoscope 11 and a treatment tool 16 are inserted into the body of a patient, who is a subject X, and a target site is treated with the treatment tool 16 while the treatment tool 16 is observed by the endoscope 11, for example, in laparoscopic surgery.
[0011] The control device 13 performs tracking control to make the field of view of the endoscope 11 follow the treatment tool 16 by controlling the moving device 12 based on the position of the treatment tool 16. Figures 2A and 2B show an example of the tracking control. In this example, the moving device 12 is controlled so that the tip of the treatment tool 16 is positioned within a predetermined specific area H in the endoscopic image G. That is, when the tip is located within the specific area H, the endoscope 11 does not move (see Figure 2A), and when the tip is located outside the specific area H, the endoscope 11 is moved so that the tip enters the specific area H (see Figure 2B). The learning model is used, for example, to recognize the treatment tool 16 to be tracked in the endoscopic image G during tracking control.
[0012] As shown in FIG. 3, the learning support device 10 includes a processor 1 such as a central processing unit, a storage unit 2, a memory 3, and an input / output unit 4. The storage unit 2 is a computer-readable non-transitory recording medium, such as a hard disk drive, an optical disk, or a flash memory. The storage unit 2 stores a learning support program 5a for causing the processor 1 to execute a learning support method according to this embodiment, which will be described later. Furthermore, the storage unit 2 stores a group of sample images A1, A2, A3, ..., B and arrangement data 6a required for the learning support method.
[0013] The processor 1 generates a training image D from a group of sample images A1, A2, A3, . . . , B in accordance with a learning support program 5a that is loaded from a storage unit 2 into a memory 3 such as a RAM (Random Access Memory). The input / output unit 4 has a known input interface and output interface.
[0014] The sample image group A1, A2, A3, ..., B are images of objects that may appear in a clinical image. The clinical image is an endoscopic image captured by the endoscope 11 during an actual endoscopic surgery. In this embodiment, the sample image group includes a plurality of treatment tool image groups A1, A2, A3, ... and a background image group B.
[0015] The treatment tool image groups A1, A2, A3, . . . are made up of a plurality of treatment tool images including treatment tools 16a, 16b, 16c, . The multiple treatment tool images in the treatment tool image group A1 are made up of multiple color images in which the distance (i.e., size) and posture of the treatment tool 16a in the depth direction are different from each other. For example, the multiple treatment tool images are acquired by photographing the treatment tool 16a arranged at various distances and in various postures on an arbitrary background with an endoscope. Similarly, the multiple treatment tool images in the other treatment tool image groups A2, A3, ... are made up of multiple color images in which the distance and posture of the treatment tools 16b, 16c, ... are different from each other. Background image group B is made up of a plurality of background images of different colors. The background images are images of organs, and are acquired, for example, by photographing various positions in the abdominal cavity from various angles using an endoscope.
[0016] The arrangement data 6a is data showing the three-dimensional arrangement of one or more treatment tools as seen from the endoscope, and includes distance information on the distance of each of the one or more treatment tools from the endoscope. The arrangement data 6a is created based on the three-dimensional arrangement of the treatment tools in a clinical image that may actually occur during endoscopic surgery.
[0017] 4 shows an example of the arrangement data 6a. The arrangement data 6a is image data including one or more treatment tools 16, and includes information on the number of treatment tools 16, the type of each treatment tool 16, the positions of the distal end a and proximal end b, and the area Sa in the endoscopic image. The length d and area Sa of the treatment tool 16 from the distal end a to the proximal end b are correlated with the distance from the endoscope to the treatment tool 16, and the length d and area Sa are larger as the distance is shorter. In this embodiment, the distance information includes the length d and area Sa. The arrangement of treatment tools that may occur during endoscopic surgery is restricted by the conditions of the endoscopic surgery, such as the surgical procedure, and therefore the number of arrangement patterns is limited. A large number of arrangement data 6a that cover all arrangements of treatment tools that may occur during endoscopic surgery are prepared, for example, several thousand or more arrangement data 6a are prepared.
[0018] 5A to 6B explain an example of a method for creating the arrangement data 6a. As shown in Figures 5A to 5C, the arrangement of the endoscope port P1 and the treatment instrument port P2, and the position of the observation area Q in the abdominal cavity observed by the endoscope 11 are determined for each type of laparoscopic surgery. Figures 5A, 5B, and 5C respectively show a sigmoid colectomy, a cholecystectomy, and an inguinal hernia repair. As shown in Figure 6A, the endoscope 11 and the treatment instrument 16 are inserted into the abdominal cavity from ports P1 and P2 provided in the abdominal wall of the patient X.
[0019] Since the movements of the endoscope 11 and the treatment tool 16 are limited to swinging around the ports P1 and P2 and longitudinal movement, the three-dimensional positions and orientations that each treatment tool 16 can take relative to the tip of the endoscope 11 are limited within a certain range determined by the arrangement of the ports P1 and P2 and the observation area Q. Therefore, the number, positions, and orientations of the treatment tools 16 in the clinical image are determined according to the surgical procedure. As shown in Fig. 6B, by comprehensively changing the positions and orientations of each treatment tool 16 relative to the tip of the endoscope 11 within the certain range, a large number of arrangement data 6a are generated that cover the number, positions a, b, and area Sa of the treatment tools in the clinical image.
[0020] Next, a learning support method executed by the learning support device 10 will be described. As shown in Figure 7, the learning support method of this embodiment includes step S1 of generating a foreground image C, step S2 of adjusting the color of the foreground image C, and step S3 of generating a training image D in which the color-adjusted foreground image C' is superimposed on a background image. FIG. 8 explains image processing in the learning support method according to this embodiment.
[0021] The processor 1 reads data necessary for executing the learning support method, specifically, the image groups A1, A2, A3, . . . , B and the layout data 6a from the storage unit 2 (step S0). In step S1, the processor 1 generates a foreground image C including one or more treatment tools arranged based on the arrangement data 6a from a group of multiple treatment tool images A1, A2, A3, . . .
[0022] Specifically, the processor 1 selects one or more treatment tool images A1a, A3a, A3b from the treatment tool image groups A1, A2, A3, . . . based on the arrangement data 6a (step S1a). FIG. 9 illustrates a method for selecting a treatment tool image based on arrangement data 6a including one treatment tool 16a and three treatment tools 16c. The processor 1 selects the image group A1, A3 of the treatment tool of the same type as the treatment tool included in the arrangement data 6a from the multiple treatment tool image groups A1, A2, A3, .... The processor 1 then calculates the length d of each treatment tool from the arrangement data 6a, and selects the treatment tool images A1a, A3a, A3b, A3c of the treatment tools having the same or similar length and area as the length d and area Sa from the treatment tool image groups A1, A3. For example, the processor 1 calculates the degree of agreement between the length d and area Sa and the length and area of the treatment tool in each treatment tool image, and selects the treatment tool images whose degree of agreement is equal to or less than a threshold.
[0023] Next, the processor 1 removes the background of each of the selected treatment tool images A1a, A3a, and A3b, and extracts the images of the treatment tools 16a and 16c from each of the treatment tool images A1a, A3a, and A3b (step S1b). Next, the processor 1 generates a foreground image C by arranging the images of the treatment tools 16a and 16c within the two-dimensional image region J based on the arrangement data 6a (step S1c).
[0024] In the next step S2, the processor 1 adjusts the colors of the treatment tools 16a, 16c in the foreground image C based on the distance information of the treatment tools 16a, 16c included in the arrangement data 6a, and thereby generates an adjusted foreground image C'. In this specification, "color" refers to the three elements of color: saturation, hue, and brightness, and "adjusting the color" refers to adjusting at least one of saturation, hue, and brightness.
[0025] For example, the processor 1 estimates the distance of each of the treatment tools 16a, 16c from the endoscope based on the length d and area Sa of each of the treatment tools 16a, 16c, and adjusts the brightness of each of the treatment tools 16a, 16c so that the brightness increases as the distance decreases. The processor 1 may adjust the saturation and hue based on the distance. For example, the processor 1 may adjust the saturation so that the saturation is higher as the distance is closer, and may adjust the hue so that the hue is closer to the hue of the illumination light of the endoscope (e.g., white) as the distance is closer.
[0026] In the next step S3, the processor 1 selects any one of the background images Ba from the background image group B (step S3a), and generates a training image D by superimposing the color-adjusted foreground image C' on the background image Ba (step S3b). The processor 1 repeats steps S1 to S3 and uses all the arrangement data 6a to generate a large number of training images D (step S4). In this way, a large number of training images D are generated that cover all possible arrangements of treatment tools in clinical images during endoscopic surgery.
[0027] Thus, according to this embodiment, the training images D are generated from the image groups A1, A2, A3, ..., B, and clinical images including treatment tools are not required. Therefore, it is possible to generate training images D for various treatment tools including treatment tools with no or few clinical images, thereby supporting the creation of learning models for various treatment tools including treatment tools with no or few clinical images.
[0028] Moreover, according to this embodiment, the arrangement data 6a is created in advance based on the arrangement of the treatment tools during the actual endoscopic surgery. By using such arrangement data 6a, a training image D with a reality in which the arrangement and color of the treatment tools are close to those of the clinical image can be generated. Furthermore, by learning such training images D, a learning model with high recognition accuracy of the treatment tools in the clinical image can be generated, and the recognition performance of the treatment tools in the endoscopic image during the endoscopic surgery can be improved.
[0029] Specifically, the arrangement of the treatment tools in the foreground image C is determined based on the positions a, b and the area Sa, so that the arrangement of the treatment tools in the training image D becomes the same as or close to the three-dimensional arrangement of the treatment tools in the clinical image. Also, by adjusting the color of each treatment tool based on the distance from the endoscope, the color of each treatment tool in the training image D becomes the same as or close to the color of each treatment tool in the clinical image. In this way, a training image D can be generated that has little deviation from the arrangement and color of the treatment tool in the clinical image.
[0030] As shown in FIG. 10, the learning support method of this embodiment may further include a step S5 of generating a mask image E based on a foreground image C, and a step S6 of annotating a training image D based on the mask image E. The timing of steps S5 and S6 shown in FIG. 10 is an example and can be changed as appropriate.
[0031] 8, the mask image E is an image in which only the areas of the treatment tools 16a and 16c are extracted from the foreground image C. In step S6, the processor 1 selects an area from the training image D that is in the same position as the area of the treatment tools 16a and 16c in the mask image E, and adds the position of the selected area to the training image D as information on the position of the area of the treatment tool.
[0032] In order to create a learning model that recognizes the treatment tool, annotation is required to add information on the position of the treatment tool area to each training image D. By generating a mask image E from the foreground image C, annotation of the training images D can be automated, and the processor 1 can be made to perform annotation of a large number of training images D. In addition, since the position of the treatment tool area in the foreground image C matches the position of the treatment tool area in the training image D, the training image D can be accurately annotated by using the mask image E generated from the foreground image C.
[0033] 10, the learning support method of this embodiment may further include step S7 of creating a learning model for recognizing a treatment tool in an endoscopic image by learning a plurality of training images D. In this case, the storage unit 2 further stores a learning model 7 (see FIG. 3) that learns the training images D to create the learning model.
[0034] After annotation, the processor 1 trains the learning model 7 with a number of annotated training images D, which then creates a learning model. According to this configuration, the learning support device 10 can perform all processes from generating the training image D to creating the learning model.
[0035] The learning support method of this embodiment does not necessarily include step S2. That is, in step S3, the processor 1 may generate a training image D by superimposing the foreground image C on the background image Ba. The foreground image C generated based on the arrangement data 6a is an image in which the arrangement of the treatment tools is close to that of a clinical image. Therefore, by using the foreground image C, a realistic training image D can be generated.
[0036] Second embodiment Next, a learning support device and a learning support method according to a second embodiment of the present invention will be described. This embodiment differs from the first embodiment in that a foreground image C is generated from CG (computer graphics) instead of a treatment tool image. In this embodiment, configurations different from the first embodiment will be described, and configurations common to the first embodiment will be denoted by the same reference numerals and description thereof will be omitted.
[0037] As shown in FIG. 11, a learning support device 20 according to this embodiment includes a processor 1, a storage unit 2, a memory 3, and an input / output unit 4. The storage unit 2 stores a learning support program 5b for causing the processor 1 to execute a learning support method according to this embodiment, which will be described later. Furthermore, the storage unit 2 stores a plurality of CAD (Computer Aided Design) data I1, I2, I3, ..., a background image group B, and layout data 6b, which are necessary for the learning support method. The CAD data I1, I2, I3, . . . are three-dimensional CAD data of three-dimensional models of the treatment tools 16a, 16b, 16c, .
[0038] The arrangement data 6b includes the number of treatment tools and information on the position and orientation of each treatment tool. The position and orientation of the treatment tool is the three-dimensional position and orientation of the treatment tool as seen from the endoscope. In this embodiment, the distance information includes the position and orientation information. In this embodiment as well, a large number of pieces of arrangement data 6b are prepared that cover all arrangements of treatment tools in clinical images that may occur during endoscopic surgery, for example, several thousand or more pieces of arrangement data 6b are prepared.
[0039] FIG. 12 illustrates an example of a method for creating the arrangement data 6b. As described above, the three-dimensional positions and orientations that each treatment tool 16 can take relative to the tip of the endoscope 11 are limited to within a certain range determined by the arrangement of the ports P1, P2 of each surgical procedure and the observation area Q. By comprehensively changing the positions and orientations of each treatment tool 16 relative to the tip of the endoscope 11 within the certain range, a large amount of arrangement data 6b is generated that covers the number of treatment tools in the clinical image and the positions and orientations of each treatment tool.
[0040] Next, a learning support method executed by the learning support device 20 will be described. As shown in FIG. 13, the learning support method of this embodiment includes step S11 of generating a foreground image C, step S21 of adjusting the color of the foreground image C, and step S3 of generating a training image D in which the color-adjusted foreground image C' is superimposed on a background image. FIG. 14 explains image processing in the learning support method according to this embodiment.
[0041] The processor 1 reads data necessary for executing the learning support method, specifically, the CAD data I1, I2, I3, . . . , the background image group B, and the layout data 6b from the storage unit 2 (step S0). In step S11, the processor 1 generates a foreground image C including one or more treatment tools arranged based on the arrangement data 6b from the multiple CAD data I1, I2, I3, . . . Specifically, the processor 1 selects, from the plurality of CAD data I1, I2, I3, . . ., CAD data of a treatment tool of the same type as the treatment tool included in the arrangement data 6b (step S11a).
[0042] Next, the processor 1 arranges images of the treatment tools 16a, 16c, which are three-dimensional models of the CAD data, within the three-dimensional image area J based on the position and orientation of each treatment tool in the arrangement data 6b, thereby creating a three-dimensional CG image (step S11b). Next, the processor 1 generates a foreground image C, which is a two-dimensional CG image of the treatment tools 16a, 16c as viewed from the endoscope, by two-dimensionalizing the three-dimensional CG image based on the position and posture of the treatment tools 16a, 16c as viewed from the endoscope (step S11c).
[0043] In the next step S21, the processor 1 adjusts the colors of the treatment tools 16a and 16c in the foreground image C based on the distance information of each treatment tool included in the arrangement data 6b, thereby generating a foreground image C'. For example, the processor 1 calculates the distance of each of the treatment tools 16a, 16c from the endoscope based on the position and orientation of each of the treatment tools 16a, 16c, and adjusts the brightness of each of the treatment tools 16a, 16c so that the brightness increases as the distance decreases. As in the first embodiment, the processor 1 may adjust the saturation and hue based on the distance. Steps S3 and S4 are as described in the first embodiment.
[0044] Thus, according to this embodiment, the training images D are generated from the CAD data I1, I2, and I3 and the background image group B, and no clinical images including treatment tools are required. Therefore, it is possible to generate training images D for various treatment tools including treatment tools with no or few clinical images, thereby supporting the creation of learning models for various treatment tools including treatment tools with no or few clinical images.
[0045] Moreover, according to this embodiment, the arrangement data 6b is created in advance based on the arrangement of the treatment tools during the actual endoscopic surgery. By using such arrangement data 6b, a training image D with a reality in which the arrangement and color of the treatment tools are close to those of the clinical image can be generated. Furthermore, by learning such training images D, a learning model with high recognition accuracy of the treatment tools in the clinical image can be generated, and the recognition performance of the treatment tools in the endoscopic image during the endoscopic surgery can be improved.
[0046] Specifically, the arrangement of the treatment tools in the foreground image C is determined based on the position and orientation of each treatment tool included in the arrangement data 6b, so that the arrangement of the treatment tools in the training image D becomes the same as or close to the three-dimensional arrangement of the treatment tools in the clinical image. Also, by adjusting the color of each treatment tool based on the distance from the endoscope, the color of each treatment tool in the training image D becomes the same as or close to the color of each treatment tool in the clinical image. In this way, a training image D can be generated that has little deviation from the arrangement and color of the treatment tool in the clinical image.
[0047] As in the first embodiment, the learning support method of this embodiment may further include steps S5, S6, and S7, or may not include step S2.
[0048] Third embodiment Next, a learning support device and a learning support method according to a third embodiment of the present invention will be described. This embodiment differs from the first embodiment in that the color of the foreground image C is adjusted based on the illumination of the endoscope 11. In this embodiment, configurations different from the first embodiment will be described, and configurations common to the first embodiment will be denoted by the same reference numerals and description thereof will be omitted.
[0049] As shown in FIG. 15, a learning support device 30 according to this embodiment includes a processor 1, a storage unit 2, a memory 3, and an input / output unit 4. The storage unit 2 stores a learning support program 5c for causing the processor 1 to execute a learning support method according to this embodiment, which will be described later. Furthermore, the storage unit 2 stores a group of sample images A1, A2, A3, ..., B, arrangement data 6c, and a mathematical model 8 of lighting, which are necessary for the learning support method.
[0050] The arrangement data 6c includes information on the number of treatment tools, the type of each treatment tool, the position of the tip and base end of each treatment tool, and the area of each treatment tool, as described in the first embodiment, as well as position and posture information of each treatment tool as seen from the endoscope. The position and orientation information is information on the three-dimensional position and orientation of the treatment tool as seen from the endoscope. For example, the position and orientation information is information on the three-dimensional position and orientation of the treatment tool relative to the endoscope when the treatment tool image is captured by the endoscope, and a pair of the treatment tool image and the position and orientation information is stored in the storage unit 2. In this embodiment, the distance information includes the position and orientation information.
[0051] 16, in endoscopic surgery, a treatment tool 16 is illuminated with illumination light L emitted from the tip of an endoscope 11. The illumination light L has a spatial distribution of brightness, and becomes darker with increasing distance from the tip of the endoscope 11. Therefore, the brightness of a treatment tool in a clinical image decreases the farther it is from the tip of the endoscope 11. The mathematical model 8 is a mathematical model that expresses the spatial distribution of the brightness of the illumination light L, and is created based on the optical characteristics of the illumination light L and the endoscope 11 used in the endoscopic surgery, for example.
[0052] Next, a learning assistance method executed by the learning assistance device 30 will be described. As shown in FIG. 17, the learning support method of this embodiment includes step S1 of generating a foreground image C, step S22 of adjusting the color of the foreground image C, and step S3 of generating a training image D in which the color-adjusted foreground image C' is superimposed on a background image.
[0053] The processor 1 reads data necessary for executing the learning support method, specifically, the image groups A1, A2, A3, . . . , B, the arrangement data 6c, and the mathematical formula model 8 from the storage unit 2 (step S0). In step S1, the processor 1 selects one or more treatment tool images A1a, A3a, A3b together with position and orientation information from the treatment tool image group A1, A2, A3, ... (step S1a). The other processes in step S1 are as described in the first embodiment.
[0054] In step S22, the processor 1 adjusts the brightness of each treatment tool in the foreground image C based on the position and orientation information corresponding to each treatment tool in the foreground image C and the mathematical model 8, thereby generating a foreground image C'. In the foreground image C', the brightness of each treatment tool varies depending on the distance from the endoscope 11, and the closer the distance, the higher the brightness. Steps S3 and S4 are as described in the first embodiment.
[0055] As in the first embodiment, according to this embodiment, it is possible to generate training images D for various treatment tools, including treatment tools with no or few clinical images, thereby assisting in the creation of learning models for various treatment tools, including treatment tools with no or few clinical images. Furthermore, according to this embodiment, by using the arrangement data 6c, a training image D can be generated in which the arrangement of the treatment tools is realistic and close to that of a clinical image, thereby making it possible to generate a learning model with high recognition accuracy of the treatment tools in the clinical image, and improving the recognition performance of the treatment tools in the endoscopic image during endoscopic surgery.
[0056] Furthermore, according to this embodiment, the brightness of each treatment tool in the foreground image C is adjusted based on the position and orientation information and the mathematical model 8, so that the brightness of each treatment tool in the training image D becomes the same as or close to the brightness of each treatment tool in the clinical image. From such a foreground image C', a training image D with little deviation from the brightness of the treatment tool in the clinical image can be generated. As in the first embodiment, the learning support method of this embodiment may further include steps S5, S6, and S7.
[0057] In the present embodiment, the processor 1 may generate the foreground image C from computer graphics (CG) instead of the treatment tool image. That is, the memory unit 2 may store the CAD data I1, I2, I3, ... described in the second embodiment instead of the treatment tool image groups A1, A2, A3, ..., and the learning support method of this embodiment may include step S11 described in the second embodiment instead of step S1.
[0058] (Fourth embodiment) Next, a learning support device and a learning support method according to a fourth embodiment of the present invention will be described. This embodiment differs from the first embodiment in that the color of the foreground image C is adjusted based on the brightness distribution of the background image in addition to the distance from the endoscope. In this embodiment, configurations different from the first embodiment will be described, and configurations common to the first embodiment will be denoted by the same reference numerals and description thereof will be omitted.
[0059] As shown in FIG. 18, a learning support device 40 according to this embodiment includes a processor 1, a storage unit 2, a memory 3, and an input / output unit 4. The storage unit 2 stores a learning support program 5d for causing the processor 1 to execute a learning support method according to this embodiment, which will be described later. Furthermore, the storage unit 2 stores a group of sample images A1, A2, A3, ..., B and arrangement data 6a required for the learning support method.
[0060] Next, a learning support method executed by the learning support device 40 will be described. As shown in Figure 19, the learning support method of this embodiment includes step S1 of generating a foreground image C, step S23 of adjusting the color of the foreground image C, and step S3 of generating a training image D in which the color-adjusted foreground image C' is superimposed on a background image.
[0061] Steps S0, S1, and S4 are as described in the first embodiment. In step S23, the processor 1 selects one background image Ba from the background image group B, and adjusts the brightness of each treatment tool in the foreground image C based on the distance of each treatment tool from the endoscope and the brightness distribution of the background image Ba.
[0062] FIG. 20 shows an example of the training image D. Specifically, the processor 1 selects a treatment tool whose distance is equal to or greater than a predetermined value from among one or more treatment tools in the foreground image C. The processor 1 performs the following brightness adjustment for the selected treatment tool, and does not perform brightness adjustment for treatment tools whose distance is less than the predetermined value and that have not been selected. As described later, the brightness is adjusted according to the brightness of the background. When the distance is short, the brightness of the treatment tool is more susceptible to the influence of the illumination light from the endoscope than the brightness of the background, and as the distance increases, the brightness of the treatment tool is more influenced by the brightness of the background than by the illumination light. Therefore, the brightness adjustment is selectively performed for treatment tools whose distance is equal to or greater than a predetermined value.
[0063] Next, the processor 1 adjusts the brightness of the selected treatment tools 16b, 16c according to the brightness of the background image Ba in the area where the treatment tools 16b, 16c are superimposed, and increases the brightness of the treatment tools as the brightness of the background image Ba increases. For example, as shown in Fig. 20, when the background image Ba has a brightness distribution in which the lower left is bright and the upper right is dark, the brightness of the treatment tool 16c at the lower left is adjusted to be high, and the brightness of the treatment tool 16b at the upper right is adjusted to be low. In the next step S3, the processor 1 generates a training image D by superimposing the foreground image C' on the background image Ba selected in step S22.
[0064] In one example, the processor 1 adjusts the brightness according to the following formula (1), thereby adjusting the brightness of the treatment tool area according to the difference from the average brightness of the background image. (b,g,r)=(b+br_shift,g+gr_shift,r+br_shift) Here, (b, g, r) are the RGB values of each pixel in the treatment tool area in the foreground image C, br is the brightness of each pixel in the background image, Br is the average brightness of the background image, and br_shift = br - Br.
[0065] As in the first embodiment, according to this embodiment, it is possible to generate training images D for various treatment tools, including treatment tools with no or few clinical images, thereby assisting in the creation of learning models for various treatment tools, including treatment tools with no or few clinical images. Furthermore, according to this embodiment, by using the arrangement data 6a, a training image D can be generated in which the arrangement of the treatment tools is realistic and close to that of a clinical image, thereby making it possible to generate a learning model with high recognition accuracy of the treatment tools in the clinical image, and improving the recognition performance of the treatment tools in the endoscopic image during endoscopic surgery.
[0066] Furthermore, according to this embodiment, the brightness of each treatment tool in the foreground image C is adjusted based on the brightness distribution of the background image, so that the brightness of each treatment tool in the training image D becomes the same as or close to the brightness of each treatment tool in the clinical image. From such a foreground image C', a training image D with little deviation from the brightness of the treatment tool in the clinical image can be generated. As in the first embodiment, the learning support method of this embodiment may further include steps S5, S6, and S7.
[0067] In the present embodiment, the processor 1 may generate the foreground image C from computer graphics (CG) instead of the treatment tool image. That is, the memory unit 2 may store the CAD data I1, I2, I3, ... described in the second embodiment instead of the treatment tool image groups A1, A2, A3, ..., and the learning support method of this embodiment may include step S11 described in the second embodiment instead of step S1.
[0068] Fifth embodiment Next, a learning support device and an endoscope system according to a fifth embodiment of the present invention will be described. As shown in FIG. 21, the endoscopic system 200 of this embodiment includes an endoscope 11, a moving device 12 that changes the position and posture of the endoscope 11, a control device 13 that controls the endoscope 11 and the moving device 12, a display device 14, an image processing device 15, and a learning support device 50. The endoscope system 200 is used, for example, in laparoscopic surgery, similarly to the endoscope system 100 described in the first embodiment.
[0069] The endoscope 11 has a camera including an imaging element such as a CCD image sensor or a CMOS image sensor, and acquires an endoscopic image G of the inside of the subject X by the camera. The camera may be a three-dimensional camera that acquires stereo images. The endoscopic image G is transmitted from the endoscope 11 to the display device 14 via the control device 13 or the image processing device 15, and is displayed on the display device 14. The display device 14 is any display such as a liquid crystal display or an organic EL display.
[0070] The moving device 12 includes an electric holder 12a consisting of a multi-joint robot arm, and is controlled by a control device 13. The endoscope 11 is held at the tip of the electric holder 12a, and the position and orientation of the tip of the endoscope 11 are changed three-dimensionally by the operation of the electric holder 12a. The moving device 12 may be another mechanism capable of changing the position and orientation of the tip of the endoscope 11, such as a bending portion provided at the tip of the endoscope 11.
[0071] The control device 13 includes a processor, a storage unit, a memory, an input / output interface, etc. The control device 13 also includes a light source device 17 connected to the endoscope 11, and can control the intensity of the illumination light L supplied from the light source device 17 to the endoscope 11. The light source device 17 may be separate from the control device 13. As described in the first embodiment, the control device 13 executes tracking control to make the field of view of the endoscope 11 track a specific treatment tool 16 that is to be tracked. For example, in the tracking control, the control device 13 acquires the three-dimensional position of the tip of the treatment tool 16 from the stereo endoscopic image G, and controls the moving device 12 based on the position of the tip.
[0072] The image processing device 15 includes a processor 151, a storage unit 152, a memory, an input / output unit, and the like. The storage unit 152 is a computer-readable non-transitory recording medium, such as a hard disk drive, an optical disk, a flash memory, etc. The storage unit 152 stores an image processing program 152a for causing the processor 151 to execute an image processing method, which will be described later.
[0073] Similar to the learning support device 10, the learning support device 50 includes a processor 1, a storage unit 2, a memory 3, and an input / output unit 4. The storage unit 2 stores a learning support program for causing the processor 1 to execute a learning support method according to the present embodiment, which will be described later. The learning support method of the present embodiment is based on any one of the learning support methods described in the first to fourth embodiments. Therefore, the storage unit 2 stores any one of data A1, A2, A3, ..., B, I1, I2, I3, ..., 6a, 6b, 6c, and 8 according to the learning support method of the present embodiment.
[0074] Next, the learning support method executed by the learning support device 50 will be described by taking the learning support method of the first embodiment as an example. As shown in FIG. 22A, the learning support method of this embodiment includes step S12 of generating a foreground image C, step S2 of adjusting the color of the foreground image C, step S3 of generating a training image D in which the foreground image C' is superimposed on a background image, step S5 of generating a mask image E based on the foreground image C, step S6 of annotating the training image D based on the mask image E, and step S7 of creating a learning model that recognizes the treatment tool in the endoscopic image G by learning multiple training images D.
[0075] In step S12, the processor 1 generates a plurality of foreground images C having different brightness levels based on one piece of layout data. For example, as shown in Fig. 23, the memory unit 2 stores a plurality of sets α, β, and γ, each of which is made up of a plurality of treatment tool image groups. The plurality of sets α, β, and γ correspond to different brightness levels. For example, the set α is made up of treatment tool image groups A1, A2, and A3, each of which is made up of dark treatment tool images, and the set γ is made up of treatment tool image groups A1", A2", and A3", each of which is made up of bright treatment tool images. The processor 1 generates a foreground image C from each of the sets α, β, and γ, thereby generating, for each arrangement data 6, a plurality of foreground images C having the same number, type, and arrangement of treatment tools but different brightnesses.
[0076] In the next step S2, the processor 1 adjusts the color of the treatment tool in each foreground image C. In the next step S3, the processor 1 superimposes each foreground image C′ on the background image to generate a plurality of training images D with different brightness for one piece of layout data 6. Steps S4, S5, and S6 are as described in the first embodiment.
[0077] After annotation of all the training images D (step S6), the processor 1 learns a large number of training images D generated from the same set α, β, or γ, thereby creating a plurality of learning models 9a, 9b, and 9c corresponding to different brightnesses of the endoscopic image (step S7). For example, the learning model 9a is for a dark endoscopic image G, and the learning model 9c is for a bright endoscopic image G. The learning models 9a, 9b, and 9c are stored in the storage unit 2 of the learning support device 50.
[0078] Next, an image processing method executed by the image processing device 15 during endoscopic surgery will be described. As shown in FIG. 22B, the image processing method of this embodiment includes step S101 of acquiring brightness information of the illumination light L from the light source device 17, step S102 of reading a learning model from the learning support device 50 based on the brightness, step S103 of acquiring an endoscopic image G, step S104 of recognizing a treatment tool in the endoscopic image G using the learning model, and step S105 of outputting the recognition result to the display device 14.
[0079] During endoscopic surgery, endoscopic images G are sequentially input from the endoscope 11 to the image processing device 15 . The processor 151 acquires the current setting value of the brightness of the illumination light L from the light source device 17 (step S101), and reads the learning model 9a, 9b or 9c corresponding to the setting value from the learning support device 50 (step S102). Next, the processor 151 acquires the endoscopic image G input to the image processing device 15 (step S103), inputs the endoscopic image G into the loaded learning model, and obtains the position of the treatment tool area recognized as the recognition result by the learning model (step S104).
[0080] The processor 151 displays the recognition result of the treatment tool on the display device 14 (step S105). For example, as shown in Fig. 24, the processor 151 may superimpose a color marker on the area of the recognized treatment tool 16 in the endoscopic image G, or may superimpose a frame surrounding the recognized treatment tool 16 on the endoscopic image G. The recognition result of the treatment tool may be used for tracking control by the control device 13.
[0081] According to this embodiment, as described in the first to fourth embodiments, the training image D is a realistic image in which the arrangement and color of the treatment tool are close to those of a clinical image, and the learning model created by learning such a training image D has high recognition accuracy of the treatment tool in the clinical image. Therefore, it is possible to improve the recognition performance of the treatment tool in the endoscopic image G during the endoscopic surgery. In addition, this makes it possible to stably track the field of view of the endoscope 11 to the treatment tool in the tracking control, and to provide a more comfortable field of view to the user, such as the surgeon or assistant.
[0082] Furthermore, the brightness of the endoscopic image G differs depending on the brightness of the illumination light L. According to this embodiment, a learning model according to the brightness of the illumination light L is used to recognize the treatment tool. For example, when the illumination light L is dark, a learning model for a dark endoscopic image G created by learning a dark training image D is used. This can further improve the recognition accuracy of the treatment tool in the endoscopic image G.
[0083] In step S104 of this embodiment, the processor 151 may correct the endoscopic image G so that the endoscopic image G approaches the training image D (step S104a), and input the corrected endoscopic image G to the learning model (step S104b). 25, the processor 151 corrects at least one of the hue, saturation, and rotation angle of the endoscopic image G to make the appearance of the treatment tool in the endoscopic image G closer to the appearance of the treatment tool in the training image D. The training image D is any one of the multiple training images D used to create the learning model.
[0084] As described above, the arrangement of the treatment tool in the endoscopic image G is determined to some extent by the surgical procedure. However, the position of the treatment tool in the endoscopic image G may shift in the circumferential direction depending on the posture of the endoscope 11, etc. By rotating the endoscopic image G so that the arrangement of the treatment tool in the endoscopic image G approaches the arrangement of the treatment tool in the training image D and inputting the rotated endoscopic image G into the learning model, the recognition accuracy of the treatment tool can be improved.
[0085] In addition, the hue and saturation of the treatment tool in the endoscopic image G may differ from the hue and saturation of the treatment tool in the training image D. The hue and saturation of the treatment tool in the endoscopic image G can be corrected so that the hue and saturation of the treatment tool in the endoscopic image G approaches the hue and saturation of the treatment tool in the training image D, and the corrected endoscopic image G is input to the learning model, thereby improving the recognition performance. In step S105, the processor 151 may rotate the recognition result in the reverse direction (step S105a), and then display the recognition result on the display device 14 by superimposing the recognition result on the endoscopic image G.
[0086] In this embodiment, the processor 1 generates a plurality of training images D with different brightness from a plurality of sets α, β, and γ of the treatment tool image group, but the plurality of training images D may be generated using another method. For example, the processor 1 may generate a plurality of foreground images with different brightness from one foreground image C by image processing, and generate a plurality of training images D from the plurality of foreground images.
[0087] In the present embodiment, the learning support device 50 is separate from the control device 13 and the image processing device 15. However, instead, the learning support device 50 may be integrated with at least one of the control device 13 and the image processing device 15. For example, the learning support device 50 and the image processing device 15 may be incorporated in the control device 13.
[0088] Although the embodiment of the present invention and its modified examples have been described above, the present invention is not limited to this and can be modified as appropriate without departing from the gist of the present invention. In the above embodiments and modifications, the sample image group is composed of the treatment tool image group A1, A2, A3, ... and the background image group B, but may further include an image group of other objects. The other objects may be, for example, artificial objects such as gauze or Nelaton tubes, or organs. [Explanation of symbols]
[0089] 10,20,30,40,50 Learning support device 1 processor 2 Storage section 3. Memory 4 Input / output section 5a, 5b, 5c, 5d, 5e Learning Support Programs 6a, 6b, 6c, 6d Configuration data 7. Learning Model 8. Mathematical Model 11 Endoscopy 15 Image processing device 100 Endoscope system A1, A2, A3 Treatment tool image group B. Background images C,C' Foreground image D Training images E Mask Image I1, I2, I3 CAD data G Endoscopic image L illumination light
Claims
1. A learning support device that supports creation of a learning model for recognizing a treatment tool in an endoscopic image, comprising: A processor is provided. The processor: generating a foreground image including one or more treatment tools by arranging images of the one or more treatment tools within an image area based on arrangement data, the arrangement data being data indicating a three-dimensional arrangement of the one or more treatment tools as viewed from an endoscope; The learning support device generates a training image by superimposing the foreground image on a background image.
2. The learning support device according to claim 1, wherein the placement data includes at least one of the number of treatment tools in an endoscopic image, the positions of the distal and proximal ends of each of the treatment tools in the endoscopic image, the area of each of the treatment tools in the endoscopic image, and the three-dimensional position and orientation of each of the treatment tools as viewed from the endoscope.
3. The arrangement data includes distance information regarding a distance of each of the treatment tools from an endoscope, The processor, adjusting at least one of saturation, hue, and brightness of each of the treatment tools in the foreground image based on the distance information; The learning support device according to claim 1 , wherein the training image is generated by superimposing the adjusted foreground image on the background image.
4. The processor, correcting the brightness of each of the treatment tools in the foreground image based on a three-dimensional position and orientation of each of the treatment tools as viewed from the endoscope and a spatial distribution of brightness of illumination light of the endoscope; The learning support device according to claim 1 , wherein the training image is generated by superimposing the corrected foreground image on the background image.
5. The processor, adjusting the brightness of each of the treatment tools based on the brightness distribution of the background image; The learning support device according to claim 1 , wherein the training image is generated by superimposing the adjusted foreground image on the background image.
6. Further comprising a storage unit for storing the learning model, The learning support device according to claim 1 , wherein the processor creates a learning model that recognizes a treatment tool in an endoscopic image by having the learning model learn the training image.
7. The processor, generating a plurality of said training images having mutually different brightnesses; The learning support device according to claim 6 , wherein a plurality of learning models corresponding to different brightnesses of endoscopic images are created by having the learning model learn the plurality of training images.
8. The processor, generating a mask image by extracting only the area of the one or more treatment tools from the foreground image; The learning support device according to claim 6 , wherein a region of the treatment tool in the training image is annotated based on the mask image.
9. The learning support device according to claim 6 ; an endoscope for acquiring an endoscopic image; An image processing device having a processor and a storage unit that stores the learning model; Equipped with An endoscopic system in which a processor of the image processing device inputs the endoscopic image to the learning model and obtains a recognition result of the treatment tool in the endoscopic image by the learning model.
10. The processor, correcting at least one of the hue, saturation, and rotation angle of the endoscopic image based on the training images used to create the learning model; The endoscopic system according to claim 9 , wherein the corrected endoscopic image is input to the learning model to recognize a treatment tool in the endoscopic image.
11. Further comprising a display device, The endoscope system according to claim 9 , wherein the processor of the image processing device displays the recognition result on the display device.
12. A learning support method for supporting creation of a learning model for recognizing a treatment tool in an endoscopic image, comprising: generating a foreground image including one or more treatment tools by arranging images of the one or more treatment tools within an image area based on arrangement data, the arrangement data being data indicating a three-dimensional arrangement of the one or more treatment tools as viewed from an endoscope; and generating training images by superimposing the foreground images on background images.
13. A non-transitory computer-readable recording medium storing a learning support program for causing a computer to execute the learning support method according to claim 12.
Citation Information
Patent Citations
Data augmentation for image classification tasks
US10614346B2
