Image processing device, method and computer program product for endoscope

The endoscopic image processing device detects the lesion status and sets the display extension time, which solves the problem of detecting the lesion during endoscopic observation, improves visual visibility, and prevents the lesion from being missed.

CN112312822BActive Publication Date: 2024-10-11OLYMPUS CORPORATION(JP)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201880094602.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-07-06
Publication Date
2024-10-11
Estimated Expiration
2038-07-06

AI Technical Summary

Technical Problem

During endoscopic observation, the temporary detection of the lesion is difficult to detect correctly in all frames, resulting in impaired visual recognition or the possibility of the lesion being missed when markers are displayed for an extended period of time.

Method used

The image processing device sequentially inputs the observation images captured by the endoscope, detects the lesion, analyzes the lesion status, sets the display extension time of the lesion detection result according to the status, and adjusts the display duration of the marker image to improve visibility.

Benefits of technology

It reduces the possibility of the lesion being overlooked, improves visual visibility during endoscopic observation, and ensures that the marked image continues to be displayed within an appropriate period of time after the detection of the lesion area is interrupted, preventing a decrease in visual visibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112312822B_ABST
    Figure CN112312822B_ABST
Patent Text Reader

Abstract

The image processing device (32) for endoscope includes: an image input unit (33) to which a plurality of observation images obtained by photographing a subject by an endoscope (21) are sequentially input; a lesion detection unit (34) to detect a lesion as an observation object of the endoscope (21) from the observation images; and a display control unit (36) to add the detection result of the lesion to the observation image and output it. The display control unit (36) includes: a lesion state analysis unit (36b) to analyze the state of the lesion; and a display extension time setting unit (36c) to set the display extension time of the detection result of the lesion according to the state of the lesion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an image processing device for endoscope, an image processing method for endoscope, and an image processing program for endoscope. Background Art

[0002] Conventionally, endoscopes are widely used in the medical field and the industrial field. For example, in the medical field, a surgeon can observe an endoscopic image of the inside of a subject displayed on a display device to find and identify a lesion, and then treat the lesion using a treatment instrument.

[0003] Generally, there is widely known an image processing apparatus that displays a lesion detected from an endoscopic image by giving it an emphasized display using a mark such as a frame in order to prevent a surgeon from missing the lesion when observing the endoscopic image.

[0004] However, during endoscopic observation, the relative position of the subject in the body cavity photographed by the endoscope and the insertion portion of the endoscope inserted into the body cavity may change frequently, making it difficult to correctly detect the temporarily detected lesion in all frames. Therefore, a method of extending the display of a mark or the like using information of the most recent frame in which the lesion was detected for the frame in which the lesion was not detected is considered.

[0005] For example, by applying Japanese Patent Application Laid-Open No. 2009-105705, which proposes a method of extending the display information for a general image, to an image processing apparatus for an endoscopic image, it is possible to realize extended display of a mark or the like.

[0006] However, in the extended display unit of Japanese Patent Publication No. 2009-105705, the processing of extending the display for a certain time is performed in any case. Therefore, for example, there is a problem that the mark is displayed longer than necessary for obvious lesions, thereby impairing visual recognition. In addition, for example, there is a problem that the mark disappears before the lesion is recognized for a difficult-to-find lesion, thereby possibly missing the lesion.

[0007] The present invention is completed in view of the above situation, and its purpose is to provide an endoscope image processing device, an endoscope image processing method and an endoscope image processing program that can reduce the possibility of missing the lesion during endoscopic observation and improve visual recognition. Summary of the invention

[0008] Means for solving problems

[0009] An endoscope image processing device according to one embodiment of the present invention comprises: an image input unit to which a plurality of observation images obtained by photographing a subject by an endoscope are sequentially input; a lesion detection unit to detect a lesion as an observation target of the endoscope from the observation images; and a display control output unit to which the detection result of the lesion is added to the observation image and output. The display control output unit comprises: a lesion state analysis unit to analyze the state of the lesion; and a display extension time setting unit to set the display extension time of the detection result of the lesion according to the state of the lesion.

[0010] An image processing method for an endoscope according to one embodiment of the present invention sequentially inputs a plurality of observation images obtained by photographing a subject with an endoscope, detects a lesion that is an observation object of the endoscope from the observation images, analyzes a state of the lesion, sets a display extension time of a detection result of the lesion according to the state, and outputs the observation image with the detection result of the lesion attached thereto.

[0011] An image processing program for an endoscope in one embodiment of the present invention causes a computer to execute the following steps: an image input unit sequentially obtains a plurality of observation images obtained by photographing a subject with an endoscope; a lesion detection unit detects a lesion portion that is an observation object of the endoscope from the observation images; a lesion status analysis unit analyzes the status of the lesion portion; a display extension time setting unit sets a display extension time of the detection result according to the status of the lesion portion; and a display control output unit adds the detection result of the lesion portion to the observation image and outputs it. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 It is a diagram showing the configuration of a main part of an endoscope system including the image processing device according to the first embodiment.

[0013] Figure 2 This is a block diagram for explaining an example of the configuration of image processing by the image processing apparatus according to the first embodiment.

[0014] Figure 3 This is a flowchart showing an example of processing performed in the image processing device of the first embodiment.

[0015] Figure 4 This is a timing chart for explaining an example of processing performed in the image processing device according to the first embodiment.

[0016] Figure 5 This is a timing chart for explaining another example of the processing performed in the image processing apparatus according to the first embodiment.

[0017] Figure 6FIG. 1 is a diagram showing an example of a display image that is displayed on a display device after being processed by the image processing device according to the first embodiment.

[0018] Figure 7 FIG. 1 is a diagram showing another example of the display image that is displayed on the display device after being processed by the image processing device according to the first embodiment.

[0019] Figure 8 FIG. 1 is a diagram showing another example of the display image that is displayed on the display device after being processed by the image processing device according to the first embodiment.

[0020] Fig. 9 This is a block diagram for explaining an example of the configuration of a lesion state analysis unit according to the second embodiment.

[0021] Fig.10 This is a flowchart showing an example of the flow of the lesion analysis process according to the second embodiment.

[0022] Fig.11 This is a flowchart showing an example of the flow of lesion analysis processing according to a modification of the second embodiment.

[0023] Fig.12 This is a flowchart showing an example of the flow of the lesion analysis process according to the third embodiment.

[0024] Fig.13 This is a flowchart showing an example of the flow of lesion analysis processing according to a modification of the third embodiment. DETAILED DESCRIPTION

[0025] Hereinafter, embodiments of the present invention will be described with reference to the drawings.

[0026] (First Embodiment)

[0027] Figure 1 1 is a diagram showing the configuration of the main parts of an endoscope system including the image processing device according to the first embodiment. Figure 1 As shown, the endoscope system 1 includes a light source driving device 11 , an endoscope 21 , a video processor 31 , an endoscope image processing device (hereinafter referred to as an image processing device) 32 , and a display device 41 .

[0028] The light source driving device 11 is configured to include a driving circuit, for example. The light source driving device 11 is connected to the endoscope 21 and the video processor 31. The light source driving device 11 is configured to generate a light source driving signal for driving the light source unit 23 of the endoscope 21 based on a light source control signal from the video processor 31, and output the generated light source driving signal to the endoscope 21.

[0029] The endoscope 21 is connected to the light source driving device 11 and the video processor 31. The endoscope 21 has an elongated insertion portion 22 that can be inserted into a body cavity of a subject. A light source portion 23 and an imaging portion 24 are provided at the distal end of the insertion portion 22.

[0030] The light source unit 23 includes, for example, a light emitting element such as a white LED, and generates illumination light by emitting light in accordance with a light source driving signal output from the light source driving device 11, and emits the generated illumination light toward a subject such as a living tissue.

[0031] The imaging unit 24 is configured to include an image sensor such as a color CCD or a color CMOS. The imaging unit 24 is configured to perform an operation corresponding to an imaging control signal output from the video processor 31. The imaging unit 24 receives reflected light reflected from a subject illuminated by the illumination light from the light source unit 23, captures the received reflected light to generate an imaging signal, and outputs the generated imaging signal to the video processor 31.

[0032] The video processor 31 is connected to the light source driving device 11 and the endoscope 21. The video processor 31 is configured to generate a light source control signal for controlling the light emission state of the light source unit 23 and output it to the light source driving device 11. The video processor 31 is configured to generate and output an imaging control signal for controlling the imaging operation of the imaging unit 24. The video processor 31 is configured to perform a predetermined process on the imaging signal output from the endoscope 21, thereby generating an observation image G1 of the subject, and sequentially output the generated observation image G1 to the image processing device 32 frame by frame.

[0033] The image processing device 32 is configured to include an electronic circuit such as an image processing circuit. Furthermore, the image processing device 32 is configured to generate a display image based on the observation image G1 output from the video processor 31, and to perform an operation for displaying the generated display image on the display device 41. Figure 2 As shown, the image processing device 32 is configured to include an image input unit 33 , a lesion detection unit 34 , and a display control unit 36 ​​. Figure 2 This is a block diagram for explaining an example of the configuration of image processing by the image processing apparatus according to the first embodiment.

[0034] The image input unit 33 outputs the observation image G1 input from the video processor 31 to the lesion detection unit 34 .

[0035] The lesion detection unit 34 is configured to detect lesion areas Ln (n=1, 2, ...) included in the observation image G1 sequentially output from the image input unit 33. The lesion detection unit 34 detects the lesion area Ln from the observation image G1 by applying, for example, an image recognizer that has acquired a function capable of recognizing a polyp image in advance by a learning method such as deep learning to the observation image G1. In addition, the detection of the lesion area Ln is not limited to the learning method described above, and other methods may be used. For example, the polyp candidate detection process disclosed in Japanese Patent Application Laid-Open No. 2007-244518 may be used.

[0036] The display control unit 36 ​​as a display control output unit is connected to the display device 41. The display control unit 36 ​​is configured to include an emphasis processing unit 36a, a lesion state analysis unit 36b, a display extension time setting unit 36c, and a recording unit 36d. The display control unit 36 ​​is configured to perform processing for generating a display image using the observation image G1 sequentially output from the video processor 31, and to perform processing for displaying the generated display image on the display screen 41A of the display device 41.

[0037] The emphasis processing unit 36a performs an emphasis processing to emphasize the position of the lesion area Ln detected by the lesion detection unit 34, generates a marker image G2 surrounding the lesion area Ln, and adds it to the observation image G1. The emphasis processing starts at the moment when the lesion area Ln is detected. Moreover, the emphasis processing ends after the detection of the lesion area Ln is interrupted and the display extension time set in the display extension time setting unit 36c has passed. In addition, after the lesion area Ln is detected, the case where the lesion area Ln moves outside the screen or the case where the detection of the lesion area Ln fails is also included in the interruption.

[0038] In addition, the marker image G2 added by the emphasis processing of the emphasis processing unit 36a can have any form as long as it can indicate the position of the lesion area Ln as visual information, for example, it can be a quadrilateral, triangle, circle, star, etc. image. Moreover, as long as the marker image G2 can indicate the position of the lesion area Ln, it can also be an image that does not surround the lesion area Ln. For example, the position of the lesion area Ln can also be indicated by making the brightness or color tone of the lesion area Ln different from that of the surrounding area. Furthermore, a message indicating the lesion area can also be generated as auxiliary information, and displayed in the form of a pop-up message near the lesion area or around the observation screen, or a mark can be generated to display it, thereby indicating its existence.

[0039] The lesion state analysis unit 36b analyzes the state of the lesion region Ln detected by the lesion detection unit 34. The analysis result is output to the display extension time setting unit 36c.

[0040] The display extension time setting unit 36c sets the display extension time of the marker image G2 generated by the emphasis processing unit 36a based on the analysis result of the state of the lesion region Ln. The display extension time set by the display extension time setting unit 36c is a time for making the marker image G2 additionally displayed on the observation image G1 also displayed on the display image after the detection of the lesion region Ln is interrupted. The display extension time setting unit 36c sets two or more display extension times in advance, and selects an appropriate display extension time based on the analysis result input from the lesion state analysis unit 36b.

[0041] The display extension time is determined by the number of frames. For example, 1 frame is preset as the first display extension time and 10 frames are preset as the second display extension time. When the number of frames per second is 30, the first display extension time is about 0.03 seconds and the second display extension time is about 0.33 seconds.

[0042] When the result of analyzing the state of the lesion region Ln shows that the lesion region Ln is difficult to identify or has a high degree of malignancy, the second display extension time is selected to prevent the surgeon from missing the lesion. On the other hand, when the lesion region Ln is easy to identify or has a low degree of malignancy, the first display extension time is selected to improve visual recognition.

[0043] The recording unit 36 ​​d is configured to sequentially (in time series) record the plurality of observation images G1 sequentially output from the video processor 31 as a plurality of recorded images R1 .

[0044] The display device 41 is configured to include a monitor and the like, and can display the display image output from the image processing device 32 .

[0045] Next, the operation of this embodiment will be described. Figure 3 This is a flowchart showing an example of processing performed in the image processing apparatus according to the first embodiment.

[0046] In the endoscope 21, for example, when the power of the light source driving device 11 and the video processor 31 is turned on, illumination light is emitted to the subject, and reflected light from the subject is received, the received reflected light is photographed to generate an imaging signal, and the generated imaging signal is output to the video processor 31.

[0047] The video processor 31 performs predetermined processing on the imaging signal output from the endoscope 21, thereby generating an observation image G1 of the subject, and sequentially outputs the generated observation image G1 frame by frame to the image processing device 32. That is, the image input unit 33 obtains an endoscopic image (observation image G1) as an in vivo lumen image from the video processor 31 (S1). The image input unit 33 outputs the obtained image to the lesion detection unit 34.

[0048] The lesion detection unit 34 applies an image recognizer that has acquired the function of recognizing polyp images in advance through a learning method such as deep learning to the observation image G1, thereby detecting the lesion area Ln from the observation image G1 (S2). The detection result of the lesion area Ln is output to the display control unit 36.

[0049] In the display control unit 36, the lesion state analysis unit 36b analyzes the state of the lesion region Ln. The lesion state analysis unit 36b determines the importance (malignancy, etc.) and position of the lesion region Ln by image analysis, thereby evaluating the possibility of overlooking, etc. (S3). The analysis result of the state of the lesion region Ln is input to the display extension time setting unit 36c.

[0050] Next, the display extension time setting unit 36c sets the display extension time of the mark image G2 added to the display screen to emphasize the lesion region Ln based on the analysis result of the state of the lesion region Ln (S4). If the lesion region Ln is in a state that is difficult to identify or has a high degree of malignancy (S4, yes), the process proceeds to S6 to set the display extension time to be longer. On the other hand, if the lesion region Ln is in a state that is easy to identify or has a low degree of malignancy (S4, no), the process proceeds to S5 to set the display extension time to be shorter.

[0051] When the setting of the display extension time is completed through the processing of S5 or S6, the processing of S7 is entered. In S7, the emphasis processing unit 36a generates a marker image G2 surrounding the lesion area Ln and adds it to the observation image G1. The emphasis processing starts at the moment when the lesion area Ln is detected, and ends at the moment when the display extension time has passed after the detection of the lesion area Ln is interrupted due to the lesion area Ln moving outside the screen or the detection failure. The display control unit 36 ​​outputs the image obtained by adding the marker image G2 to the observation image G1 as needed as a display image to the display device 41, and ends a series of processing.

[0052] Figure 4 and Figure 5 This is a timing chart for explaining an example of processing performed in the image processing device of this embodiment. Figure 4 This is a timing diagram when the lesion area Ln is difficult to identify or the malignancy is high. Figure 5 This is a timing diagram when the lesion area Ln is easily identifiable or has a low malignancy. Figure 6 FIG. 1 is a diagram showing an example of a display image that is displayed on a display device after being processed by the image processing device of the present embodiment.

[0053] The display control unit 36 ​​performs processing for displaying a display image obtained by placing the observation image G1 obtained by assigning the mark image G2 to the lesion area L1 in the display area D1 of the display screen 41A at the timing (= time Ta) when the lesion detection unit 34 starts detecting the lesion area L1. Figure 4 and Figure 5 During the period from time Ta to Tb, Figure 6 The display image shown is displayed on the display screen 41A of the display device 41 .

[0054] Furthermore, the display control unit 36 ​​continues to add the mark image G2 to the observation image G1 from the time when the lesion detection unit 34 stops detecting the lesion area L1 (= time Tb) to the time when the display extension time has elapsed (= time Tc, Td).

[0055] That is, during the time TL when the lesion detection unit 34 continues to detect the lesion area L1, a display image is generated and displayed in which the marking image G2 is added to the observation image G1 regardless of the state of the lesion area Ln. After the detection of the lesion area L1 is interrupted, the time for adding the marking image G2 changes according to the state of the lesion area Ln.

[0056] That is, when the lesion region Ln is in a state where it is difficult to identify or the malignancy is high, a display image in which the mark image G2 is added to the observation image G1 is generated during the display extension time TD1 from the timing when the detection of the lesion region L1 is interrupted, and is displayed on the display screen 41A of the display device 41. On the other hand, when the lesion region Ln is in a state where it is easy to identify or the malignancy is low, a display image in which the mark image G2 is added to the observation image G1 is generated during the display extension time TD2 (TD2<TD1) from the timing when the detection of the lesion region L1 is interrupted, and is displayed on the display screen 41A of the display device 41.

[0057] Thus, according to the above-mentioned embodiment, based on the state of the lesion area Ln, after the detection of the lesion area Ln is interrupted, the time for which the mark image G2 is continued to be displayed (display extension time) is adjusted, thereby reducing the possibility of missing the lesion part during endoscopic observation and improving visual recognizability.

[0058] In the above description, an appropriate display extension time is selected from two preset times TD1 and TD2, but the configuration may be such that selection is made from three or more display extension times according to the state of the lesion region Ln.

[0059] In the above description, the display image is configured to include the observation image G1 as a dynamic image, but the display image may be configured to include the observation image G1 and the recorded image R1 as a static image.

[0060] Figure 7 2 is a diagram showing another example of a display image displayed on a display device after being processed by the image processing device of the present embodiment. In the case where the detection of the lesion region L1 is interrupted, at the timing when the detection of the lesion region L1 by the lesion candidate detection unit 34b is interrupted, the display control unit 36 ​​starts processing for displaying a display image obtained by arranging the observation image G1 in the display area D1 of the display screen 41A and arranging the recorded image R1 recorded by the recording unit 36d during the detection of the lesion region L1 in the display area D2 of the display screen 41A. Furthermore, at the timing when the display extension time has passed since the detection of the lesion region L1 was interrupted, the processing of arranging the recorded image R1 in the display area D2 of the display screen 41A is terminated.

[0061] According to the operation of the display control unit 36, for example, the period from the timing when the detection of the lesion area L1 is interrupted (= time Tb) to the time when the display extension time elapses is equivalent to Figure 6 The display image obtained by arranging the recorded image R1 of the observed image G1 in the display region D2 is displayed on the display screen 41A of the display device 41. The display region D2 is preset as a region having a smaller size than the above-mentioned display region D1 on the display screen 41A, for example.

[0062] That is, as described above, even after the detection of the lesion region L1 is interrupted, the position of the lesion region Ln is shown to the operator using the sub-screen, thereby suppressing the reduction in visibility of the observation image G1 and further reducing the possibility of missing the lesion.

[0063] In addition, if Figure 8 As shown, the display area D2 of the display screen 41A displays not only the recorded image R1 but also the lesion area L1 of the image with the mark image G2 added thereto. Figure 8 This is another example of a display image displayed on a display device after being processed by the image processing device of this embodiment. By also applying emphasis processing to the recorded image R1, the position of the lesion can be more easily identified, thereby further reducing the possibility of overlooking.

[0064] (Second Embodiment)

[0065] In the first embodiment described above, the time (display extension time) for which the marking image G2 is continued to be displayed after the detection of the lesion area Ln is interrupted is adjusted according to the state of the lesion area Ln, but in the present embodiment, the visual recognizability of the lesion area Ln is analyzed and the display extension time is determined based on the result.

[0066] The image processing device of this embodiment has the same configuration as the image processing device 32 of the first embodiment, and the same components are denoted by the same reference numerals, and description thereof is omitted.

[0067] Fig. 9 2 is a block diagram for explaining an example of the structure of the lesion state analysis unit of the second embodiment. Fig. 9 The present embodiment described below not only shows the structure of the present embodiment but also shows the structure of the third embodiment described after the present embodiment. The operation of each part will be described in detail by the corresponding part described below.

[0068] Fig.10 This is a flowchart showing an example of the flow of the lesion analysis process according to the second embodiment. Fig.10 The processing involves Fig. 9 The visual recognition analysis unit 361 in the lesion state analysis unit 36b, especially the lesion unit information analysis unit 361A.

[0069] The lesion state analysis unit 36b analyzes the visual recognition of the lesion area Ln. First, select the items for visual recognition analysis (S11). As the analysis items of visual recognition, for example, (a) the distance between the endoscope 21 and the lesion area Ln, (b) the proportion of the exclusive area of ​​the lesion area Ln in the observation image G1, (c) the shape of the lesion area Ln, (d) the size of the lesion area Ln, (e) the position of the lesion area Ln in the observation image G1, (f) the color / brightness of the lesion area Ln, and (g) the organ part where the lesion area Ln is located are listed. The lesion state analysis unit 36b analyzes the items selected from them. In addition, the analysis of visual recognition can be performed by selecting only one item or multiple items.

[0070] (a) Distance between the endoscope 21 and the lesion area Ln

[0071] When this item is selected as the analysis item, the following processing (S12) is performed. Fig. 9 The lesion distance estimation unit 361A1 in.

[0072] The lesion distance estimation unit 361A1 estimates the imaging distance to each pixel in the image. Here, among various known techniques, the imaging distance estimation based on the assumption that the imaging target is a uniform diffusion surface will be described.

[0073] Specifically, first, as a low absorption wavelength component, a low absorption wavelength component (for example, a red (R) wavelength) with the lowest degree of absorption or scattering in the living body is selected. This is to suppress the decrease in pixel value caused by blood vessels reflected on the mucosal surface, so as to obtain pixel value information most related to the imaging distance from the mucosal surface, and because in an image composed of three components of red (R), green (G), and blue (B), the red (R) component is a wavelength far from the absorption band of blood and is a long-wavelength component, which is not easily affected by absorption and scattering in the living body, so the red (R) component is selected.

[0074] Then, the lesion distance estimation unit 361A1 estimates the imaging distance obtained by assuming a uniform diffusion surface based on the pixel value of the low absorption wavelength component. Specifically, the imaging distance is calculated by the following formula (1).

[0075]

[0076] Here, r represents the imaging distance, I represents the radiation intensity of the light source measured in advance, and K represents the diffuse reflection coefficient of the mucosal surface measured in advance as an average value. θ represents the angle between the normal vector of the mucosal surface and the vector from the surface to the light source, which is a value determined by the positional relationship between the light source at the front end of the insertion portion of the endoscope 21 and the mucosal surface, and is set in advance as an average value. L represents the R component value of the pixel reflected on the mucosal surface as the object of imaging distance estimation.

[0077] Furthermore, before estimating the imaging distance, it is possible to correct the unevenness of pixel values ​​caused by the optical system or the lighting system, which may cause a decrease in the accuracy of each process, and remove non-mucous membrane areas such as specular reflections, residues, and bubbles.

[0078] In addition, although a method based on an image is shown here, calculation based on a distance measuring sensor or the like may also be performed.

[0079] As described above, the lesion distance estimation unit 361A1 estimates the distance between the endoscope 21 and the lesion region Ln, and outputs the estimated distance as an analysis result.

[0080] (b) Observe the ratio of the exclusive area of ​​the lesion region Ln in the image G1

[0081] When this item is selected as the analysis item, the following processing (S13) is performed. Fig. 9 The lesion-specific area calculation unit 361A2.

[0082] The lesion-specific area calculation unit 361A2 calculates the ratio of the area occupied by the lesion region Ln in the observation image G1. Specifically, for example, an image recognizer that has acquired the function of recognizing polyp images in advance through a learning method such as deep learning is applied to the observation image G1, thereby detecting the lesion region Ln from the observation image G1. In addition, the number of pixels included in the lesion region Ln is calculated. Finally, the specific area ratio is calculated by dividing the number of pixels included in the lesion region Ln by the total number of pixels constituting the observation image G1.

[0083] In addition, the position information of the lesion region Ln can also be obtained from the lesion detection unit 34. Moreover, the detection of the lesion region Ln is not limited to the above-mentioned learning method, and other methods can also be used. For example, the polyp candidate detection process disclosed in Japanese Patent Application Laid-Open No. 2007-244518 can also be used.

[0084] As described above, the lesion-specific area calculation unit 361A2 calculates the ratio of the specific area of ​​the lesion region Ln in the observation image G1 and outputs it as an analysis result.

[0085] (c) Shape of the lesion area Ln

[0086] When this item is selected as the analysis item, the following processing (S14) is performed. Fig. 9 Lesion shape analysis unit 361A3.

[0087] The lesion shape analysis unit 361A3 performs identification and classification based on the shape of the lesion. Specifically, the lesion shape analysis unit 361A3 creates a mask image representing the lesion area and calculates the shape feature based on the image. The shape feature is classified into one of the multiple categories generated by machine learning using a classifier such as SVM. Here, as the shape feature, well-known parameters such as circularity, moment, and fractal dimension are used.

[0088] For example, in the case of colorectal polyps, there are protruding type (type I) and surface type (type II), and the protruding type also includes sessile type (Is) in which the erect part has no necking, subpedunculated type (Isp) in which the erect part has a necking, and pedunculated type (Ip) in which the pedunculated part has a pedicle. In the surface type, there are classifications such as protruding type (IIa), flat type (IIb), and depressed type (IIc).

[0089] For example, in the case of gastric polyps, there are submucosal tumor type (protrusion type I), sessile type (protrusion type II), subpedunculated type (protrusion type III), and pedunculated type (protrusion type IV). In addition, in the case of gastric cancer, for example, there are superficial type (type 0), tumor type (type 1), localized ulcer type (type 2), ulcer infiltration type (type 3), diffuse infiltration type (type 4), etc.

[0090] As described above, the lesion shape analysis unit 361A3 identifies the shape of the lesion and outputs it as an analysis result.

[0091] (d) Size of the lesion area Ln

[0092] When this item is selected as the analysis item, the following processing (S15) is performed. Fig. 9 The lesion size estimation unit 361A4 in.

[0093] The lesion size estimation unit 361A4 first estimates the imaging distance to each pixel in the image. The imaging distance may be estimated in the lesion size estimation unit 361A4 using the above-mentioned method or the lesion distance estimation unit 361A1.

[0094] Next, the lesion size estimation unit 361A4 sets a threshold value smaller than the imaging distance and a threshold value larger than the imaging distance for the imaging distance of the pixels near the lesion, and extracts the region within the imaging distance range where the lesion is located by threshold processing. The lesion size estimation unit 361A4 calculates the circularity of the region, and if the circularity is greater than a predetermined value, detects the region as a lumen.

[0095] Finally, the lesion size estimation unit 361A4 compares the lumen and the lesion to estimate the size of the lesion.

[0096] Specifically, the lesion size estimation unit 361A4 calculates the ratio of the length of the lesion to the circumference of the detected lumen, thereby estimating the actual size of the lesion. In addition, the circumference of the lumen of each organ site (position) may be set in advance according to anatomy, thereby improving the accuracy of the size estimation. For example, in the case of a large intestine examination, the site (position) of the lesion of the large intestine may be estimated based on the insertion amount of the insertion unit, and compared with the circumference of the lumen set in advance, thereby improving the accuracy of the size estimation.

[0097] As described above, the lesion size estimation unit 361A4 estimates the size of the lesion by comparing it with the circular size of the lumen reflected in the endoscopic image, and outputs it as an analysis result.

[0098] (e) Observe the position of the lesion area Ln in the image G1

[0099] When this item is selected as the analysis item, the following processing (S16) is performed. Fig. 9 Lesion location analysis unit 361A5.

[0100] The lesion position analysis unit 361A5 first applies an image recognizer that has acquired the function of recognizing polyp images in advance by a learning method such as deep learning to the observation image G1, thereby detecting the lesion area Ln from the observation image G1 and obtaining the position information. In addition, the detection of the lesion area Ln is not limited to the learning method shown above, and other methods may be used. For example, the polyp candidate detection process disclosed in Japanese Patent Application Laid-Open No. 2007-244518 may be used. In addition, the position information of the lesion area Ln may also be obtained from the lesion detection unit 34 or the lesion-specific area calculation unit 361A2.

[0101] Next, the position of the lesion area Ln in the observation image G1 is analyzed. An example of a specific method is described below. First, the lesion area Ln in the observation image G1 is divided into three equal parts in the vertical direction and in the horizontal direction, thereby being divided into nine blocks. For example, when the observation image G1 is 1920×1080 pixels, assuming that the upper left corner of the image is the origin (0, 0), it is divided into an area (1A) of (0, 0) to (640, 360), an area (1B) of (641, 0) to (1280, 360), an area (1C) of (1281, 0) to (1920, 360), and an area (2C) of (0, 361) to (640, 720). A), the area from (641, 361) to (1280, 720) (2B), the area from (1281, 361) to (1920, 720) (2C), the area from (0, 721) to (640, 1080) (3A), the area from (641, 721) to (1280, 1080) (3B), and the area from (1281, 721) to (1920, 1080) (3C).

[0102] Among the 9 blocks 1A to 3C, the block where the lesion area Ln exists is determined and output as the position of the lesion area Ln. In addition, when the lesion area Ln exists across multiple blocks, the block with the largest area where the lesion area Ln exists is used as the block where the lesion area Ln exists. In addition, the method for determining the block where the lesion area Ln exists is not limited to the above method. For example, other methods such as setting the block where the pixel located at the center of the lesion area Ln exists may also be used. Moreover, the number of blocks generated by dividing the observation image G1 is not limited to 9 blocks. For example, it may be set to 2×2=4 blocks, 4×4=16 blocks, etc.

[0103] In addition, the position of the lesion region Ln may be calculated as the distance from the central pixel position of the observation image G1 instead of the above-mentioned block position.

[0104] As described above, the lesion position analysis unit 361A5 identifies the position of the lesion region Ln in the observation image G1 and outputs it as an analysis result.

[0105] (f) Color / brightness of the lesion area Ln

[0106] When this item is selected as the analysis item, the following processing (S17) is performed. Fig. 9 Lesion color / brightness analysis unit 361A6.

[0107] When the observed image G1 is composed of three components of red (R), green (G), and blue (B), the lesion color / brightness analysis unit 361A6 extracts the respective pixel values ​​(R pixel value, G pixel value, and B pixel value) of the pixels included in the lesion area Ln. Then, the average of the R pixel value, the G pixel value, and the B pixel value is calculated as the color pixel value of the lesion area Ln. In addition, the calculation of the pixel value of the lesion area Ln may use other statistical values ​​such as the most frequent value instead of the average value.

[0108] In addition, the brightness values ​​of the pixels included in the lesion area Ln are extracted and averaged to be the brightness value of the lesion area Ln. In addition, the brightness value may be calculated using other statistical values ​​such as the mode value instead of the average value.

[0109] As described above, the lesion color / brightness analysis unit 361A6 calculates the color pixel value / brightness value of the lesion area Ln in the observation image G1 and outputs it as an analysis result.

[0110] (g) The organ where the lesion area Ln is located

[0111] When this item is selected as the analysis item, the following processing (S18) is performed. Fig. 9 Organ location analysis section 361A7.

[0112] The organ part analysis unit 361A7 estimates the observed part. For example, when the observed organ is the large intestine, the rectum, sigmoid colon, descending colon, left flexure of the colon (splenic flexure), transverse colon, right flexure of the colon (hepatic flexure), ascending colon, and cecum are identified. When the observed organ is the stomach, the cardia, fundus, body, angle of the stomach, vestibule, pyloric part, pylorus, and duodenum are identified. In the case of the small intestine, the jejunum and ileum are identified. In the case of the esophagus, the cervical esophagus, the thoracic esophagus, and the abdominal esophagus are identified. Specifically, the image data of each projection is collected and machine learning is performed using the image data, thereby enabling part (position) estimation using SVM or the like.

[0113] As described above, the organ part analyzing unit 361A7 estimates the observation part and outputs it as the analysis result.

[0114] When the processing of one or more selected items in the processing from S12 to S18 is completed, the lesion state analysis unit 36b determines the visibility based on the analysis results (S19). First, the visibility is determined for each analysis item.

[0115] (a) Distance between the endoscope 21 and the lesion area Ln

[0116] When the distance between the endoscope 21 and the lesion area Ln outputted from the lesion distance estimation unit 361A1 as an analysis result is greater than a predetermined distance, it is determined that the visibility is low. On the other hand, when the distance between the endoscope 21 and the lesion area Ln is less than the predetermined distance, it is determined that the visibility is high.

[0117] (b) Observe the ratio of the exclusive area of ​​the lesion region Ln in the image G1

[0118] When the exclusive rate of the lesion area Ln output from the lesion exclusive area calculation unit 361A2 as an analysis result is less than a predetermined ratio (e.g., 5%), it is determined that the visual recognition is low. On the other hand, when the exclusive rate of the lesion area Ln is greater than the predetermined ratio, it is determined that the visual recognition is high.

[0119] (c) Shape of the lesion area Ln

[0120] When the shape of the lesion region Ln outputted from the lesion shape analysis unit 361A3 as the analysis result belongs to a pre-set shape with high visibility, it is determined to have high visibility. For example, the following shapes are set as shapes with high visibility.

[0121] When the lesion is in the large intestine: flat surface type (IIb) and concave surface type (IIc).

[0122] When the lesion is in the stomach: submucosal tumor type (protrusion type I).

[0123] In addition, when the shape of the lesion region Ln belongs to a shape with low visibility set in advance, it is determined that the visibility is low. For example, the following shapes are set as shapes with low visibility.

[0124] When the lesion is in the large intestine: sessile (Is), subpedunculated (Isp), pedunculated (Ip), and surface raised (IIa).

[0125] When the lesion is in the stomach: sessile type (type II), subpedunculated type (type III), pedunculated type (type IV), tumor type (type 1), localized ulcer type (type 2), ulcer infiltration type (type 3), diffuse infiltration type (type 4).

[0126] (d) Size of the lesion area Ln

[0127] When the size of the lesion area Ln outputted from the lesion size estimation unit 361A4 as an analysis result is less than a predetermined size (e.g., 5 mm), the visual recognition is determined to be low. On the other hand, when the size of the lesion area Ln is larger than the predetermined size, the visual recognition is determined to be high.

[0128] (e) Observe the position of the lesion area Ln in the image G1

[0129] Visual recognition is determined based on the position of the lesion region Ln output from the lesion position analysis unit 361A5 as the analysis result. That is, when the position of the lesion region Ln is far from the center of the image, it is determined that the visual recognition is low. On the other hand, when the position of the lesion region Ln is close to the center of the image, it is determined that the visual recognition is high.

[0130] For example, when the block position where the lesion area Ln exists is output as the analysis result, the visual recognition registered in advance for each block is used as the judgment result. Specifically, for example, the observation image G1 is divided into 3×3=9 blocks, and the four blocks located at the four corners of the image (blocks 1A, 3A, 1C, and 3C) are registered as having low visual recognition, and the other five blocks (blocks 2A, 1B, 2B, 3B, and 2C) are registered as having high visual recognition. In this case, if the block position where the lesion area Ln exists is block 1A, 3A, 1C, and 3C, it is judged that the visual recognition is low, and if it is block 2A, 1B, 2B, 3B, and 2C, it is judged that the visual recognition is high.

[0131] When the distance from the center pixel position of the observation image G1 is output as the analysis result, if it is greater than a predetermined distance, the visibility is determined to be low. On the other hand, if it is less than the predetermined distance, the visibility is determined to be high.

[0132] (f) Color / brightness of the lesion area Ln

[0133] When the color / brightness of the lesion area Ln output from the lesion color / brightness analysis unit 361A6 as the analysis result is close to the color / brightness of the normal mucosa, it is determined that the visual recognition is low. On the other hand, when the color / brightness of the lesion area Ln is far from the color / brightness of the normal mucosa, it is determined that the visual recognition is high. The color (color pixel value) / brightness (brightness value) of the normal mucosa as the judgment criterion can use the color / brightness registered in advance, or can use the value of the normal mucosa part in the observation image G1 where the lesion area Ln exists.

[0134] (g) The organ where the lesion area Ln is located

[0135] When the organ part where the lesion region Ln outputted from the organ part analyzing unit 361A7 as the analysis result is located belongs to a pre-set part with high visibility, it is determined to have high visibility. For example, the organ parts listed below are set as shapes with high visibility.

[0136] When the lesion is in the large intestine: descending colon, transverse colon, and cecum.

[0137] When the lesion is in the stomach: cardia, fundus, body, angle, vestibule, pyloric part, pylorus and duodenum.

[0138] When the lesion is in the small intestine: jejunum and ileum.

[0139] When the lesion is in the esophagus: cervical esophagus, thoracic esophagus, abdominal esophagus.

[0140] In addition, when the organ part where the lesion area Ln is located belongs to a pre-set part with low visibility, it is determined that the visibility is low. For example, the organ parts listed below are set as parts with low visibility.

[0141] When the lesion is in the large intestine: rectum, sigmoid colon, left flexure of the colon (splenic flexure), right flexure of the colon (hepatic flexure), and ascending colon.

[0142] That is, in the case of a site where lesions are common or a site where the inspection image is difficult to recognize and the lesions are easily missed, it is determined as a site with low visibility.

[0143] In S11, when only one item is selected as the analysis item of visual recognizability, the lesion state analysis unit 36b outputs the visual recognizability determination result of the item as the visual recognizability of the lesion area Ln, and ends a series of lesion analysis processing. In S11, when two or more items are selected as the analysis items of visual recognizability, the visual recognizability of the lesion area Ln is determined with reference to the visual recognizability determination result of the selected item.

[0144] As a method for determining visual recognizability when multiple items are selected, for example, a majority determination method is listed. That is, in the visual recognizability determination results of the selected items, when the number of items determined to have high visual recognizability is greater than the number of items determined to have low visual recognizability, it is determined that the visual recognizability of the lesion area Ln is high. On the other hand, when the number of items determined to have high visual recognizability is less than the number of items determined to have low visual recognizability, it is determined that the visual recognizability of the lesion area Ln is low.

[0145] In addition, as another determination method, for example, a scoring method is listed. That is, for each of the above-mentioned items (a) to (g), a score is assigned according to visual recognizability. For example, in each item, +1 point is assigned when it is determined that the visual recognizability is low, and -1 point is assigned when it is determined that the visual recognizability is high. In addition, it can also be set that for items that are particularly helpful for visual recognizability (for example, item (c) or item (e)), +3 points are assigned when it is determined that the visual recognizability is low, and -3 points are assigned when it is determined that the visual recognizability is high, thereby assigning a weighted score compared to other items.

[0146] The visual recognition judgment results of the selected items are converted into scores and the sum is calculated. When the sum of the scores is greater than a preset threshold value (e.g., 1 point), it is determined that the visual recognition of the lesion area Ln is low and output. On the other hand, when the sum of the scores is less than the preset threshold value, it is determined that the visual recognition of the lesion area Ln is high and output.

[0147] The determination result is output to the display extension time setting unit 36c. The display extension time setting unit 36c selects an appropriate display extension time according to the visual recognition determination result of the lesion state analysis unit 36b. That is, the lower the visual recognition, the longer the display extension time is set. In addition, the display extension time can also be calculated in the display extension time setting unit 36c according to the visual recognition determination result. For example, the increase or decrease value of the extended display time (number of frames) is pre-set according to the detection result for each of the above-mentioned items (a) to (g). For example, regarding the size of the lesion area Ln of item (d), it is pre-set to -2 frames in the case of a larger size, to ±0 frames in the case of a normal size, and to +2 frames in the case of a smaller size. In addition, for example, regarding the distance between the endoscope 21 and the lesion area Ln of item (a), it is +2 frames in the case of being farther than the prescribed distance range, to ±0 frames in the case of being within the prescribed range, and to -2 frames in the case of being closer than the prescribed distance range, and all items are pre-set in this way. Furthermore, the display extension time may be set by calculating the total of the increase and decrease values ​​of the extended display time (number of frames) based on the visibility determination result of the selected item.

[0148] In addition, when a score method is used, the visual recognition judgment in each item (a) to (g) can also be performed by a score method. For example, with respect to item (d), when the position of the lesion area Ln exists in the range from the central pixel position of the observation image G1 to the first threshold, a point of -1 is assigned, when it exists in the range from the first threshold to the second threshold, a point of 0 is assigned, and when it exists in the range from the second threshold to the third threshold, a point of +1 is assigned (where the first threshold < the second threshold < the third threshold). The assigned score is output as the visual recognition judgment result, and in S19, a method of calculating the sum of the scores output as the judgment results of each item can also be used.

[0149] As described above, according to the above embodiment, based on the visual recognizability of the lesion area Ln analyzed by the lesion status analysis unit 36b, the time (display extension time) for continuing to display the marking image G2 after the detection of the lesion area Ln is interrupted is adjusted, thereby reducing the possibility of missing the lesion area during endoscopic observation and improving visual recognizability.

[0150] (Variation of the Second Embodiment)

[0151] In the second embodiment described above, visibility is determined on a lesion-by-lesion basis, whereas in the present modification, visibility is determined on an image-by-image basis.

[0152] Fig.11 This is a flowchart showing an example of the flow of lesion analysis processing according to this modification. Fig.11 The processing involves Fig. 9 The visual recognition analysis unit 361 in the lesion state analysis unit 36b, especially the image unit information analysis unit 361B.

[0153] The lesion state analysis unit 36b analyzes the visibility of the lesion region Ln in the observation image G1. When the visibility is analyzed in image units, the lesion number analysis unit 361B1 extracts the number of lesion regions Ln existing in the observation image G1 (S21).

[0154] Next, the lesion state analysis unit 36b determines the visual recognition of the observation image G1 based on the number of lesion regions Ln extracted by the lesion number analysis unit 361B1 (S22). That is, when the number of lesion regions Ln is greater than a preset threshold value (for example, 3), it is determined that the visual recognition is low. On the other hand, when the number of lesion regions Ln is less than the preset threshold value, it is determined that the visual recognition is high.

[0155] The determination result is output to the display extension time setting unit 36c. The display extension time setting unit 36c selects an appropriate display extension time based on the visibility determination result of the lesion state analysis unit 36b.

[0156] Alternatively, the visual recognition may be determined using both the image unit analysis result and the lesion unit analysis result. Fig.10 After the visual recognition analysis of the lesion unit is performed through a series of steps S11 to S18, the following steps are continued: Fig.11 The analysis results of the lesion unit and the image unit obtained in these steps may be used to comprehensively determine the visibility.

[0157] As described above, according to this modification, the same effects as those of the above-described embodiments can be obtained.

[0158] (Third Embodiment)

[0159] In the above-mentioned second embodiment, the time (display extension time) for which the marked image G2 is continued to be displayed after the detection of the lesion area Ln is interrupted is adjusted according to the visual recognizability of the lesion area Ln, but in this embodiment, the importance of the lesion area Ln is analyzed and the display extension time is determined based on the result.

[0160] The image processing device of this embodiment has the same configuration as the image processing device 32 of the first embodiment, and the same components are denoted by the same reference numerals, and description thereof is omitted.

[0161] Fig.12 This is a flowchart showing an example of the flow of the lesion analysis process according to the third embodiment. Fig.12 The processing involves Fig. 9 The importance analysis unit 362 in the lesion state analysis unit 36b, especially the lesion type analysis unit 362A.

[0162] The lesion state analysis unit 36b analyzes the importance of the lesion area Ln. First, an item for importance analysis is selected (S31). As the analysis items of importance, for example, items such as (h) the malignancy of the lesion area Ln, (i) the organ part where the lesion area Ln is located, and (j) the color / brightness of the lesion area Ln are listed. The lesion state analysis unit 36b analyzes the items selected from them. In addition, the analysis of the malignancy can be performed by selecting only one item or multiple items.

[0163] (h) Malignancy of the lesion area Ln

[0164] When this item is selected as the analysis item, the following processing (S21) is performed. Fig. 9 The malignancy analysis unit 362A1.

[0165] The malignancy analysis unit 362A1 classifies the malignancy of the lesion area Ln. The classification of the malignancy is selected according to the observation method. For example, in the case of narrow-band observation, the malignancy of the lesion area Ln is classified using existing malignancy classifications such as NICE (NBI International Colorectal Endoscopic: NBI International Colorectal Endoscopic) classification and JNET (The Japan NBI Expert Team: Japan NBI Expert Team) classification.

[0166] The NICE classification is a simple classification of three categories, Type 1 to Type 3, based on three perspectives: (1) color, (2) microvascular architecture, and (3) surface pattern. Type 1 is an indicator of non-tumor, Type 2 is an indicator of adenoma to intramucosal carcinoma, and Type 3 is an indicator of SM deep invasive carcinoma.

[0167] In addition, in the case of pigment magnification observation, the malignancy of the lesion area Ln is classified using PIT pattern classification or the like.

[0168] As described above, the malignancy analysis unit 362A1 classifies the malignancy of the lesion region Ln and outputs the classification as the analysis result.

[0169] (i) The organ where the lesion area Ln is located

[0170] When this item is selected as the analysis item, the following processing (S33) is performed. Fig. 9 The organ location analysis unit 362A2.

[0171] The organ part analysis unit 362A2 estimates the observed part. For example, when the observed organ is the large intestine, the rectum, sigmoid colon, descending colon, left flexure of the colon (splenic flexure), transverse colon, right flexure of the colon (hepatic flexure), ascending colon, and cecum are identified. When the observed organ is the stomach, the cardia, fundus, body, angle of the stomach, vestibule, pyloric part, pylorus, and duodenum are identified. In the case of the small intestine, the jejunum and ileum are identified. In the case of the esophagus, the cervical esophagus, the thoracic esophagus, and the abdominal esophagus are identified. Specifically, the image data of each projection is collected and machine learning is performed using the image data, thereby enabling part (position) estimation using SVM or the like.

[0172] As described above, the organ part analyzing unit 362A2 estimates the observation part and outputs it as the analysis result. In addition, since the processing content of the organ part analyzing unit 362A2 is the same as that of the organ part analyzing unit 361A7, the result of the organ part analyzing unit 361A7 can also be used.

[0173] (j) Color / brightness of the lesion area Ln

[0174] When this item is selected as the analysis item, the following processing (S34) is performed. Fig. 9 Lesion color / brightness analysis unit 362A3.

[0175] When the observed image G1 is an image composed of three components of red (R), green (G), and blue (B), the lesion color / brightness analysis unit 362A3 extracts the respective pixel values ​​(R pixel value, G pixel value, and B pixel value) of the pixels included in the lesion area Ln. Then, the R pixel value, the G pixel value, and the B pixel value are averaged and used as the color pixel value of the lesion area Ln. In addition, the calculation of the pixel value of the lesion area Ln may also use other statistical values ​​such as the most frequent value instead of the average value.

[0176] In addition, the brightness values ​​of the pixels included in the lesion area Ln are extracted and averaged to be the brightness value of the lesion area Ln. In addition, the brightness value may be calculated using other statistical values ​​such as the mode value instead of the average value.

[0177] As described above, the lesion color / brightness analysis unit 362A3 calculates the color pixel value / brightness value of the lesion area Ln in the observation image G1 and outputs it as an analysis result. In addition, the processing content of the lesion color / brightness analysis unit 362A3 is the same as that of the lesion color / brightness analysis unit 361A6, so the processing result of the lesion color / brightness analysis unit 361A6 can also be used.

[0178] When the processing of one or more selected items in the processing of S32 to S34 is completed, the lesion state analysis unit 36b determines the importance based on the analysis results (S35). First, the importance is determined for each analysis item.

[0179] (h) Malignancy of the lesion area Ln

[0180] When the malignancy of the lesion region Ln output from the malignancy analysis unit 362A1 as the analysis result belongs to a preset category, it is determined that the importance is high.

[0181] (i) The organ where the lesion area Ln is located

[0182] When the organ part where the lesion area Ln outputted from the organ part analysis unit 362A2 as the analysis result is located belongs to a pre-set high importance part, it is determined to be of high importance. For example, the organ parts listed below are set as high importance parts. For example, the organ parts listed below are set as high visual recognition parts.

[0183] When the lesion is in the large intestine: sigmoid colon.

[0184] In addition, when the organ part where the lesion area Ln is located is other than the above-mentioned parts, it is determined to be of low importance. That is, in the case of a part where the risk of worsening symptoms is high if left alone, it is determined to be a part of high importance. In addition, the organ part where the lesion area Ln is located is also listed as a determination item of visual recognition, but the level of visual recognition and the level of importance are determined by independent evaluation indicators.

[0185] (j) Color / brightness of the lesion area Ln

[0186] When the color / brightness of the lesion area Ln output from the lesion color / brightness analysis unit 362A3 as an analysis result is close to the color / brightness of the lesion area with a higher importance registered in advance, it is determined to be of higher importance. In addition, the color / brightness of the lesion area Ln is also listed as a determination item of visual recognition, but the level of visual recognition and the level of importance are determined by independent evaluation indicators.

[0187] In S31, when only one item is selected as the analysis item of importance, the lesion state analysis unit 36b outputs the importance determination result of the item as the importance of the lesion region Ln, and ends a series of lesion analysis processing. In S31, when two items are selected as the analysis items of importance, the importance of the lesion region Ln is determined with reference to the importance determination result of the selected items.

[0188] The method for determining the importance when a plurality of items are selected is similar to the method for determining the visibility, and a majority decision method, a score method, or the like can be used.

[0189] The determination result is output to the display extension time setting unit 36c. The display extension time setting unit 36c selects an appropriate display extension time based on the importance determination result of the lesion state analysis unit 36b. That is, the higher the importance, the longer the display extension time is set.

[0190] As described above, according to the above embodiment, based on the importance of the lesion area Ln analyzed by the lesion status analysis unit 36b, the time (display extension time) for continuing to display the marked image G2 after the detection of the lesion area Ln is interrupted is adjusted, thereby reducing the possibility of missing the lesion area during endoscopic observation and improving visual recognizability.

[0191] (Variation of the Third Embodiment)

[0192] In the third embodiment described above, the importance is determined based on the type of lesion. In the present variation, the importance is determined based on the shape or size of the lesion.

[0193] Fig.13 This is a flowchart showing an example of the flow of lesion analysis processing according to this modification. Fig.13 The processing involves Fig. 9 The importance analysis unit 362 in the lesion status analysis unit 36b, especially the lesion shape / size analysis unit 362B.

[0194] The lesion state analysis unit 36b analyzes the importance of the lesion area Ln. First, an item for importance analysis is selected (S41). As analysis items for the importance of the shape or size of the lesion, for example, items such as (k) the shape of the lesion area Ln and (l) the size of the lesion area Ln are listed. The lesion state analysis unit 36b analyzes the item selected from them. In addition, the importance analysis can be performed by selecting only one item or multiple items.

[0195] (k) Shape of the lesion area Ln

[0196] When this item is selected as the analysis item, the following processing (S42) is performed. Fig. 9 Lesion shape analysis unit 362B1.

[0197] The lesion shape analysis unit 362B1 performs identification and classification based on the shape of the lesion. Specifically, the lesion shape analysis unit 362B1 creates a mask image representing the lesion area and calculates the shape feature based on the image. The shape feature is classified into one of multiple categories generated by machine learning using a classifier such as SVM. Here, as the shape feature, well-known parameters such as circularity, moment, and fractal dimension are used.

[0198] For example, in the case of colon polyps, there are protruding type (type I) and surface type (type II), and the protruding type also has: sessile type (Is) with no necking in the erect part, subpedunculated type (Isp) with necking in the erect part, and pedunculated type (Ip) with a pedicle. In the surface type, there are classifications such as protruding type (IIa), flat type (IIb), and depressed type (IIc).

[0199] For example, in the case of gastric polyps, there are submucosal tumor type (protrusion type I), sessile type (protrusion type II), subpedunculated type (protrusion type III), and pedunculated type (protrusion type IV). In addition, in the case of gastric cancer, for example, there are superficial type (type 0), tumor type (type 1), localized ulcer type (type 2), ulcer infiltration type (type 3), diffuse infiltration type (type 4), etc.

[0200] As described above, the lesion shape analysis unit 362B1 identifies the shape of the lesion and outputs it as an analysis result. In addition, the processing content of the lesion shape analysis unit 362B1 is the same as that of the lesion shape analysis unit 361A3, so the result of the lesion shape analysis unit 361A3 can also be used.

[0201] (l) Size of the lesion area Ln

[0202] When this item is selected as the analysis item, the following processing (S43) is performed. Fig. 9 The lesion size estimation section 362B2 in.

[0203] The lesion size estimation unit 362B2 first estimates the imaging distance to each pixel in the image. The imaging distance may be estimated by the lesion size estimation unit 361A4 using the above-mentioned method or the like, or may be processed and obtained in the lesion distance estimation unit 361A1.

[0204] Next, the lesion size estimation unit 362B2 sets a threshold value smaller than the imaging distance and a threshold value larger than the imaging distance for the imaging distance of the pixels near the lesion, and extracts the region within the imaging distance range where the lesion is located by threshold processing. The lesion size estimation unit 362B2 calculates the circularity of the region, and if the circularity is greater than a predetermined value, detects the region as a lumen.

[0205] Finally, the lesion size estimation unit 362B2 compares the lumen and the lesion to estimate the size of the lesion.

[0206] Specifically, the lesion size estimation unit 362B2 calculates the ratio of the length of the lesion to the circumference of the detected lumen, thereby estimating the actual size of the lesion. In addition, the circumference of the lumen of each organ site (position) may be set in advance according to anatomy, thereby improving the accuracy of the size estimation. For example, in the case of a large intestine examination, the site (position) of the lesion of the large intestine may be estimated based on the insertion amount of the insertion unit, and compared with the circumference of the lumen set in advance, thereby improving the accuracy of the size estimation.

[0207] As described above, the lesion size estimation unit 362B2 compares the circular size of the lumen reflected in the endoscopic image to estimate the size of the lesion and outputs it as an analysis result. In addition, the processing content of the lesion size estimation unit 362B2 is the same as that of the lesion size estimation unit 361A4, so the result of the lesion size estimation unit 361A4 can also be used.

[0208] When the processing of one or more selected items in the processing of S42 and S43 is completed, the lesion state analysis unit 36b determines the importance based on the analysis results (S44). First, the importance is determined for each analysis item.

[0209] (k) Shape of the lesion area Ln

[0210] When the shape of the lesion region Ln output from the lesion shape analysis unit 362B1 as the analysis result belongs to a shape with a high importance set in advance, it is determined to have a high importance. For example, the following shapes are set as shapes with a high importance.

[0211] When the lesion is in the large intestine: flat surface type (IIb) and concave surface type (IIc).

[0212] When the lesion is in the stomach: tumor type (type 1), localized ulcer type (type 2), ulcer infiltration type (type 3), diffuse infiltration type (type 4).

[0213] In addition, when the shape of the lesion area Ln is other than the above-mentioned shapes, it is determined to be of low importance. That is, in the case of a shape with a high risk of worsening symptoms if left alone, it is determined to be a site of high importance. In addition, the shape of the lesion area Ln is also listed as a determination item of visual recognition, but the level of visual recognition and the level of importance are determined by independent evaluation indicators.

[0214] (l) Size of the lesion area Ln

[0215] When the size of the lesion region Ln output from the lesion size estimation unit 362B2 as an analysis result is less than a predetermined size (e.g., 5 mm), it is determined that the importance is low. On the other hand, when the size of the lesion region Ln is larger than the predetermined size, it is determined that the importance is high. In addition, the size of the lesion region Ln is also listed as a visual recognition judgment item, but the level of visual recognition and the level of importance are determined by independent evaluation indicators.

[0216] The method for determining the importance when a plurality of items are selected is similar to the method for determining the visibility, and a majority decision method, a score method, or the like can be used.

[0217] The determination result is output to the display extension time setting unit 36c. The display extension time setting unit 36c selects an appropriate display extension time based on the importance determination result of the lesion state analysis unit 36b. That is, the higher the importance, the longer the display extension time is set.

[0218] Alternatively, the importance may be determined using both the analysis results of the lesion type and the analysis results of the lesion shape / size. Fig.12 After analyzing the importance of the lesion type through a series of steps S31 to S34, the following steps are continued: Fig.13 The analysis results of the lesion type and the lesion shape / size obtained in these steps may be used to comprehensively determine the importance.

[0219] Alternatively, the state of the lesion may be determined using both the result of the analysis of the visibility and the result of the analysis of the importance.

[0220] As described above, according to the above-mentioned embodiments and variations, the following endoscopic image processing device can be provided: according to the state of the lesion area Ln, the time (display extension time) for continuing to display the marking image G2 after the detection of the lesion area Ln is interrupted is adjusted, thereby reducing the possibility of missing the lesion part during endoscopic observation and improving visual recognizability.

[0221] The present invention is not limited to the above-described embodiments, and various modifications and applications are possible without departing from the gist of the invention.

Claims

1. An image processing device for an endoscope, It is characterized in that The endoscope image processing device includes a processor. The processor is sequentially input with a plurality of observation images obtained by photographing the subject with the endoscope. detecting a lesion as an observation target of the endoscope from the observation image, analyzing visual recognizability, the visual recognizability being at least one of a distance from the endoscope, an occupied area, a shape, a size, a position in the observed image, a color, a brightness, and an organ location related to the detected lesion; According to the analysis result, when it is determined that the visual recognition is high, the display extension time of the detection result of the lesion part is set to be shorter, and when it is determined that the visual recognition is low, the display extension time is set to be longer, The detection result of the lesion is added to the observation image and output.

2. The endoscope image processing device according to claim 1, It is characterized in that The processor analyzes the visual visibility of each of the lesions.

3. The endoscope image processing device according to claim 2, It is characterized in that The processor estimates a distance of the lesion from the endoscope.

4. The endoscope image processing device according to claim 2, It is characterized in that The processor calculates an area specific to the lesion in the observation image.

5. The endoscope image processing device according to claim 2, It is characterized in that The processor analyzes the shape of the lesion.

6. The endoscope image processing device according to claim 5, It is characterized in that When the organ part to be observed by the endoscope is the large intestine, the processor analyzes whether the shape is sessile, subpedicular, pedunculated, surface raised, surface flat, or surface depressed; and when the organ part to be observed is the stomach, the processor analyzes whether the shape is submucosal tumor type, sessile, subpedicular, pedunculated, superficial, tumor type, localized ulcer type, ulcer infiltration type, or diffuse infiltration type.

7. The endoscope image processing device according to claim 2, It is characterized in that The processor estimates the size of the lesion itself.

8. The endoscope image processing device according to claim 2, It is characterized in that The processor analyzes the position of the lesion in the observation image.

9. The endoscope image processing device according to claim 2, It is characterized in that The processor analyzes at least one of the color and the brightness of the lesion.

10. The endoscope image processing device according to claim 2, It is characterized in that The processor analyzes a part of an organ that is an observation target of the endoscope.

11. The endoscope image processing device according to claim 10, It is characterized in that When the organ is the large intestine, the processor estimates the rectum, sigmoid colon, descending colon, left colon flexure (splenic flexure), transverse colon, right colon flexure (hepatic flexure), ascending colon and cecum; when the organ is the stomach, the processor estimates the cardia, fundus, body, angle, vestibule, pyloric part, pylorus and duodenum; when the organ is the small intestine, the processor estimates the jejunum and ileum; when the organ is the esophagus, the processor estimates the cervical esophagus, thoracic esophagus and abdominal esophagus.

12. The endoscope image processing device according to claim 1, It is characterized in that The processor analyzes visibility for each of the observation images.

13. The endoscope image processing device according to claim 12, It is characterized in that The processor analyzes the number of the lesion parts in the observation image.

14. The endoscope image processing device according to claim 1, It is characterized in that The processor analyzes the importance of the lesion.

15. The endoscope image processing device according to claim 14, It is characterized in that The processor analyzes the importance determined by the type of the lesion.

16. The endoscope image processing device according to claim 15, It is characterized in that The processor analyzes the malignancy of the lesion.

17. The endoscope image processing device according to claim 15, It is characterized in that The processor analyzes a part of an organ that is an observation target of the endoscope.

18. The endoscope image processing device according to claim 17, It is characterized in that When the organ is the large intestine, the processor estimates the rectum, sigmoid colon, descending colon, left colon flexure (splenic flexure), transverse colon, right colon flexure (hepatic flexure), ascending colon and cecum; when the organ is the stomach, the processor estimates the cardia, fundus, body, angle, vestibule, pyloric part, pylorus and duodenum; when the organ is the small intestine, the processor estimates the jejunum and ileum; when the organ is the esophagus, the processor estimates the cervical esophagus, thoracic esophagus and abdominal esophagus.

19. The endoscope image processing device according to claim 15, It is characterized in that The processor analyzes the color and brightness of the lesion.

20. The endoscope image processing device according to claim 14, It is characterized in that The processor analyzes the importance determined by the shape or size of the lesion.

21. The endoscope image processing device according to claim 20, It is characterized in that The processor analyzes the shape of the lesion.

22. The endoscope image processing device according to claim 21, It is characterized in that When the organ part to be observed by the endoscope is the large intestine, the processor analyzes whether the shape is sessile, subpedicular, pedunculated, surface raised, surface flat, or surface depressed; and when the organ part to be observed is the stomach, the processor analyzes whether the shape is submucosal tumor type, sessile, subpedicular, pedunculated, superficial, tumor type, localized ulcer type, ulcer infiltration type, or diffuse infiltration type.

23. The endoscope image processing device according to claim 20, It is characterized in that The processor estimates the size of the lesion itself.

24. The endoscope image processing device according to claim 14, It is characterized in that The processor sets the display extension time to be longer when it is determined that the importance is high, and sets the display extension time to be shorter when it is determined that the importance is low, based on the analysis result of the importance of the lesion.

25. The endoscope image processing device according to claim 1, It is characterized in that The processor analyzes the importance of the lesion part, and sets the display extension time according to an analysis result of the visibility of the lesion part and an analysis result of the importance of the lesion part.

26. An image processing method for endoscope, It is characterized in that A plurality of observation images obtained by photographing a subject with an endoscope are sequentially inputted. detecting a lesion as an observation target of the endoscope from the observation image, analyzing visual recognizability, the visual recognizability being at least one of a distance from the endoscope, an occupied area, a shape, a size, a position in the observed image, a color, a brightness, and an organ location related to the detected lesion; According to the analysis result, when it is determined that the visual recognition is high, the display extension time of the detection result of the lesion part is set to be shorter, and when it is determined that the visual recognition is low, the display extension time is set to be longer, The detection result of the lesion is added to the observation image and output.

27. A computer program product, It is characterized in that The computer program product comprises a computer program, wherein the computer program causes a computer to execute the following steps: A plurality of observation images obtained by photographing a subject with an endoscope are sequentially inputted. detecting a lesion as an observation target of the endoscope from the observation image, analyzing visual recognizability, the visual recognizability being at least one of a distance from the endoscope, an occupied area, a shape, a size, a position in the observed image, a color, a brightness, and an organ location related to the detected lesion; According to the analysis result, when it is determined that the visual recognition is high, the display extension time of the detection result of the lesion part is set to be shorter, and when it is determined that the visual recognition is low, the display extension time is set to be longer, and The detection result of the lesion is added to the observation image and output.