AI system, method and storage medium for detecting and measuring lesion size
Through the deep learning algorithm and real-time video analysis system of the artificial intelligence platform, the problem of inaccuracy in polyp size detection is solved, real-time and accurate measurement during surgery is achieved, and the accuracy of adenoma detection and the quality of patient care are improved.
Patent Information
- Application Number
- CN201980093189.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-02-28
- Filing Date
- 2019-06-21
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2039-06-21
AI Technical Summary
Existing polyp size detection methods suffer from significant inaccuracies, with large discrepancies between the measurement results of endoscopists and pathologists, affecting the accuracy of adenoma detection and patient prognosis.
An artificial intelligence platform was developed to detect and measure the size of lesions in real time. It uses deep learning algorithms and real-time video analysis systems to identify the pixel sizes of lesions and reference objects through a trained classifier, calculate the actual size of the lesions, and calculate the actual size of the lesions during surgery. Real-time output during the period.
Improves the accuracy of polyp size detection and reduces measurement errors during surgery, promoting better patient care and early adenoma detection.
Smart Images

Figure CN113573654B_ABST
Abstract
Description
Technical Field
[0001] The subject matter of the present invention relates to detecting and determining lesion size, and more particularly, to an artificial intelligence platform for detecting and determining lesion size in real time. Background Art
[0002] Colon polyps grow on the inner lining of the colon and are very common. Colon polyps are important because they can be or may become malignant (cancer). They are also important because based on their size, number, and microanatomy (tissue structure), clinicians can predict which patients are more likely to develop more polyps and colon cancer.
[0003] Polyps can take on a variety of shapes. For example, pedunculated polyps look like mushrooms, attached to the lining of the colon by a thin stalk and everted inside the intestine. Sessile polyps have no stalk and are attached to the lining by a wide base. Flat colon polyps are flat and even slightly concave. These can be difficult to identify because they are not as prominent as polyps or sessile polyps with commonly used polyp diagnostic methods.
[0004] The most common type of polyp is an adenoma or adenomatous polyp. This is an important type of polyp to recognize, not only because it is the most common, but also because it is the most common risk factor for colon cancer. The likelihood that an adenoma will develop into (or has developed into) cancer depends in part on its type, shape, and size; the larger the polyp, the more likely it is to be or will become malignant (e.g., concern about potential malignancy increases as polyps grow larger than 1 centimeter in size).
[0005] It is also important if there is a single polyp or multiple polyps. Patients with multiple polyps (even if they are not malignant when examined under a microscope) are more likely to develop additional polyps that may become malignant in the future. Concerns about this increased likelihood of malignancy begin when there are three or more polyps.
[0006] Because of the strong link between polyp size and subsequent development of malignancy, it is important to accurately detect and size polyps. The most common method for determining polyp size involves an endoscopist viewing a high-definition video during a procedure and visually estimating the size of the polyp. Polyps removed during surgery, such as with forceps or a snare, can then be further measured by a pathologist. However, a recent NIH study found significant discrepancies between endoscopists' estimates and pathologists' measurements of colon polyp size (e.g., a mean difference of 0.3 cm).
[0007] The results of this study suggest widespread inconsistency in the documentation of polyp size. Neither clinician estimates nor pathologist measurements accurately reflect colon polyp size. Inaccurate determination of polyp size can adversely affect patient outcomes involving the detection of advanced adenomas. Summary of the invention
[0008] Various aspects of the present disclosure provide an artificial intelligence (AI) platform for detecting and sizing lesions (e.g., polyps) and other diseased tissue in real time during surgery. Thus, using the described platform and methods, clinicians can, for example, detect and size flat or sessile serrated polyps in real time while performing surgery on a patient, thereby facilitating better patient care. While the clinician is performing surgery in real time, the AI platform uses a two-step approach where the lesion is first detected and then sized using a reference object like a surgical forceps or any other device used for intervention during surgery. A deep learning algorithm predicts the context of a video stream collected during a clinical procedure for an intervention, where the context identifies, for example, a colon polyp (lesion) as well as a surgical forceps (reference object).
[0009] In a first aspect, an artificial intelligence (AI) platform for real-time detection and determination of lesion size during clinical surgery is disclosed, the AI platform comprising: a trained classifier comprising a deep learning model trained to detect lesions and reference objects in image data; a real-time video analysis system that receives a video feed during clinical surgery, uses the trained classifier to determine whether a video frame from the video feed has both a lesion and a reference object, calculates an actual size of the lesion based on the pixel sizes of both the lesion and the reference object, and outputs an indication that a lesion has been detected and the actual size of the lesion.
[0010] A second aspect discloses a method for detecting and determining lesion size in real time during clinical surgery using artificial intelligence (AI), the method comprising the following steps: providing a trained classifier, the trained classifier comprising a deep learning model trained to detect lesions and reference objects in image data; processing a video feed during clinical surgery; using the trained classifier to determine whether a video frame from the video feed has a lesion and a reference object; calculating an actual size of the lesion based on the pixel size of both the lesion and the reference object; and outputting an indication that a lesion has been detected and the actual size of the lesion.
[0011] A third aspect discloses a computer program product stored on a computer-readable storage medium, which, when executed by a computing system, uses artificial intelligence (AI) to detect and determine lesion size in real time during clinical surgery, the program product comprising: program code for processing a video feed during clinical surgery; program code for determining whether a video frame from the video feed has a lesion and a reference object using a trained classifier; program code for calculating an actual size of the lesion based on the pixel sizes of both the lesion and the reference object; and program code for outputting an indication of a detected lesion and the actual size of the lesion.
[0012] A fourth aspect discloses a method for detecting lesions in a saved video (e.g., a video collected from a video capsule endoscopy (VCE) surgery) using artificial intelligence (AI), the method comprising the following steps: providing a trained classifier, the trained classifier comprising a deep learning model trained to detect lesions; processing the video after the video has been created using images transmitted from a recorder; and determining whether a video frame from the video has a lesion using the trained classifier. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] These and other features of the present invention will be more readily understood from the following detailed description of various aspects of the present invention taken in conjunction with the accompanying drawings, in which:
[0014] Figure 1 An artificial intelligence platform according to an embodiment is shown.
[0015] Figure 2 An interface for training a classifier according to an embodiment is shown.
[0016] Figure 3 Another interface for training a classifier according to an embodiment is shown.
[0017] Figure 4 Shown is an XML output of an image analyzed using a trained classifier, according to an embodiment.
[0018] Figure 5 Depicted is the processing of image data to capture a polyp and surgical forceps according to an embodiment.
[0019] Figure 6 Depicted is a diagram of a device according to an embodiment of the present invention. Figure 5 The crop rectangle of the polyp image.
[0020] Figure 7 Depicted is a flow chart of a process for calculating the pixel size of a polyp, in accordance with an embodiment.
[0021] Figure 8Depicted are a pair of contour images of a polyp, according to an embodiment.
[0022] Fig. 9 Depicted is a flow chart of a process for calculating pixel dimensions of surgical forceps, in accordance with an embodiment.
[0023] Figures 10 to 13 Depicted is line image data used to calculate pixel size of surgical forceps, according to an embodiment.
[0024] Fig.14 A client-service flow diagram of a process according to an embodiment is depicted.
[0025] The accompanying drawings are not necessarily drawn to scale. The accompanying drawings are merely schematic representations and are not intended to describe specific parameters of the present invention. The accompanying drawings are intended only to depict typical embodiments of the present invention and therefore should not be considered to limit the scope of the present invention. In the accompanying drawings, similar numbers represent similar elements. DETAILED DESCRIPTION
[0026] Reference Figure 1 , an artificial intelligence (AI) platform 10 is provided for detecting and sizing lesions in real time during surgery. Note that while embodiments are generally described with reference to detecting and sizing polyps, it should be understood that the method can be applied to any diseased tissue (i.e., lesions). The AI platform 10 generally includes: (1) a training system 12 that trains a detection classifier 20 based on a set of training images 16 and labels 18; and (2) a real-time video analysis system 14 that utilizes the detection classifier 20 to analyze a video feed 22 in real time to provide polyp detection 24 and polyp sizing 28. The AI platform 10 can, for example, employ a neural network or other machine learning system.
[0027] In this exemplary embodiment, a detection classifier 20 is trained using a deep learning system to detect both lesions and reference objects (such as surgical forceps) in the same image. (Alternatively, two detection classifiers 20 can be trained; one detection classifier to detect lesions and one detection classifier to detect reference objects.) As described herein, the reference objects are used to help determine the size of the lesions.
[0028] For example, the training images 16 can be obtained from frames in a captured video. The images used for training include random objects as well as the desired objects (in this case, polyps), and have a variety of background and lighting conditions. In addition, in some training images 16, the desired object is partially occluded, overlapped with something else, only half is in the picture, etc.
[0029] Once a set of training images 16 have been collected, they are labeled 18 to reference the desired object in each picture. The desired object may be a polyp or any other lesion, or some other object that may be present in the video feed 22, such as a finger, noise, shadow, etc. Any labeling system may be employed, such as LabelImg available as open source on GitHub. Figure 2 An exemplary labeling tool 40 is depicted in which a user places a bounding box 42 around a lesion in a displayed training image 16 and selects a label for the type of lesion shown, eg, pedunculated polyp, sessile polyp, flat polyp, etc. Figure 3 Another training image 16 is depicted, wherein a first bounding box 44 is placed around the lesion, and a second bounding box 46 is placed around the reference object. In the exemplary embodiment, approximately 3000 training images 16 are used, wherein each training image has a resolution of 1280 x 1024 pixels.
[0030] Once all training images 16 are labeled, the training system 12 can be used to train the detection classifier 20. The detection classifier 20 may include, for example, a neural network model that processes pixel data from each training image. In an exemplary method, TensorFlow TM An application programming interface (API) is used to construct a neural network model that represents a graph consisting of nodes and edges. In this case, the model is mapped to the underlying machine hardware. The nodes in the graph represent operations (e.g., machine learning functions, mathematical operations, etc.), and the edges represent multidimensional data arrays also called tensors that are transferred between nodes. Unique edges called control dependencies can exist in the graph and indicate that the source node must complete execution before the target node begins execution. (Tensorflow provides a platform in which the designer's design algorithm flow and computing architecture are automatically optimized.) Nodes are assigned to computing devices and executed asynchronously, and executed in parallel once all tensors become available on the edges entering the nodes.
[0031] The video processing required by the AI platform 10 can be expensive in terms of CPU power. Therefore, certain computer vision subtasks are assigned to dedicated hardware architectures, such as the GPU 23 (graphics processing unit), while other subtasks are assigned to the CPU 21. For example, the GPU 23 is an accelerator that is available not only on desktop computers but also on mobile devices such as smartphones and tablets. Therefore, the model used herein has a built-in ability to configure GPU usage as well as CPU usage to most efficiently utilize machine resources.
[0032] AI platform 10 can use NVIDIA Deep Neural Network Library (cuDNN), which is a GPU-accelerated primitive library for deep neural networks. cuDNN provides highly tuned standard routine implementations such as forward and reverse convolutions, pooling normalization, and activation layers. cuDNN provides high-performance GPU acceleration, which automates low-level GPU performance tuning. AI platform 10 can also utilize NVIDIA Quadro P5000 16GB-2560CUDA CORES graphics cards for development and testing, for example. Similarly, anything higher than NVIDIA GeForce GTX 1080-2560CUDA CORES can be used.
[0033] In the present case, the model is trained until the calculated "loss" is consistently below a threshold (e.g., 0.005 in the case of Tensorflow). Once training is complete, an inference graph representing the classification model is generated, which can then be deployed to a real-time video analysis system 14 ( Figure 1 )middle.
[0034] Once deployed, images from a video feed 22 (eg, generated during surgery) may be analyzed by the real-time video analysis system 14 to provide polyp detection 24 and reference object detection 26 (to determine polyp sizing 28 ). Figure 4 An exemplary .xml file is depicted for an image in video feed 22 including identified surgical forceps and a polyp.
[0035] In this two-step method, the lesion is first detected in real time while the clinician is performing the procedure. Next, the size of the lesion is calculated using a reference object, and then an indication of the lesion as well as the size is output along with the video feed. In a typical procedure involving polyps, surgical forceps are used for intervention during clinical surgery. The surgical forceps include an elongated, flexible tool with a movable cup-shaped jaw that is used to obtain a biopsy specimen. The actual polyp size is determined based on: (1) a measurement of the polyp size in pixels, (2) a measurement of the size of the surgical forceps in pixels, and (3) a recalculation of the actual polyp size into units of length (e.g., millimeters) based on the known size of the surgical forceps.
[0036] like Figure 5 As shown, when the system identifies a polyp and a surgical forceps in the same video frame, a bounding rectangle 50 surrounding the polyp and a bounding rectangle 52 surrounding the surgical forceps are defined, and the coordinates of the corners of the rectangles are recorded. The area defined by the bounding rectangle 50 surrounding the polyp is cut out from the frame to become Figure 6 Shown is a separate image 54. A similar separate cropped image (not shown) is created for the reference object.
[0037] Figure 7 An exemplary method for processing polyp image data is described. First, at S1, a rectangular cropped image 54 ( Figure 6 ) (e.g., as an RGB image). Next, at S2, the RGB image is separated into three monochrome channels: red, green, and blue, and converted into a grayscale image. At S3, the image is smoothed by applying a Gaussian function to reduce image details and brightness variations, thereby enhancing the image structure. At S4, for example, a Canny multi-level edge detection algorithm is used to identify polyp edges or contours, and at S5, multiple polyp contours are identified using an OpenCV function. Contours below a threshold (e.g., containing less than 50 pixels) are filtered out. Figure 8 An example of this process is shown, where the image on the right depicts a filtered contour image and the image on the left depicts an unfiltered contour image.
[0038] At S6, for all remaining contours, the minimum and maximum x and y coordinates (ie, Xmin; Xmax; Ymin; Ymax) are determined. At S7, the rectangular dimensions of the polyp are recalculated 50. The new coordinates are defined as:
[0039] Xnew=X+Xmin; Ynew=Y+Ymin.
[0040] The rectangle dimensions are recalculated as:
[0041] Height H = Ymax - Ymin;
[0042] Width W = Xmax - Xmin.
[0043] The larger of the two dimensions is equal to the polyp size in pixels (Dpx), for example, 220×280 pixels. At S8, a circle is drawn around the polyp. The coordinates of the center of the circle are represented as:
[0044] Xc=Xnew+W / 2; Yc=Ynew+H / 2;
[0045] Here, the diameter of the circle Dc=Dpx.
[0046] Fig. 9 An exemplary process for calculating the pixel size of a surgical forceps is depicted. At S10, a region defined by a bounding rectangle surrounding the surgical forceps is cropped from the frame into a separate image, and at S11, the color image is converted into a grayscale monochrome image. At S12, the image is smoothed by, for example, applying a Gaussian function to reduce image detail and brightness variations, thereby enhancing image structure, and at S13, the edge of the surgical forceps is identified, for example, using a Canny multi-level edge detection algorithm. At S14, a straight line is drawn along the edge of the surgical forceps using a Hough transform technique, for example, Fig.10 The exemplary results are shown in .
[0047] At S15, the edges are filtered and processed as follows. The number of lines is reduced by filtering out short lines (e.g., less than 10 pixels). A straight line can be represented by the following formula:
[0048] y=mx+b.
[0049] For the remaining lines, calculate the coefficients m and b and the inclination of these lines relative to the x-axis. Remove lines with inclinations of, for example, less than 21° and greater than 150°. Extend the remaining lines on the image to the image border. Calculate the coordinates of the intersections (midpoints) of these lines with the horizontal border of the image.
[0050] Groups of lines with the following differences: the difference between the coefficients m of these lines is <0.307 or the difference between the inclinations of these lines is <2°, and the difference between the x-coordinates of the intersections of these lines with the upper horizontal border of the image is <20 pixels, are replaced by a smaller number of center lines. The coefficients m of the center lines of each group are calculated as follows:
[0051] m=(m1+m2+…+mn) / n;
[0052] The coefficient b of the median line is calculated as follows:
[0053] b=(b1+b2+…+bn) / n
[0054] For the remaining few lines on the image, those lines whose x-coordinates of the intersections with the lower horizontal border of the image are located 30 pixels or more from the left or right vertical image border are removed.
[0055] Further line filtering leaves only two lines on the image: the "left line", whose intersection with the upper horizontal image boundary has the minimum x-coordinate ("x-left"); and the "right line", whose intersection with the upper horizontal image boundary has the maximum x-coordinate ("x-right"), as shown in Fig.11 If the intersection of the left and right lines is within the image boundaries, the frame is considered unsuitable for forceps size calculation. Another frame with a different forceps position must be used. If the intersection of the left and right lines is outside the image boundaries, the inclination of the lines relative to the x-axis will be evaluated.
[0056] like Fig.12As shown, if the inclination angles of both lines are less than or equal to 90°, a perpendicular line to the right line is drawn from the intersection of the right line with the upper image boundary toward the left line until the perpendicular line intersects with the left line (left figure). If the inclination angles of both lines are greater than or equal to 90°, a perpendicular line to the left line is drawn from the intersection of the left line with the upper image boundary toward the right line until the perpendicular line intersects with the right line (right figure). The forceps size in pixels (Fpx) is the average of the length of the perpendicular line between the left and right lines and the distance between the x left point and the x right point.
[0057] If the inclination of the left line is >90° and the inclination of the right line is <90°, then the forceps size in pixels (Fpx) is considered to be equal to the distance between the x-left point and the x-right point ( Fig.13 ).
[0058] Once the pixel sizes of both the polyp and the forceps are calculated as above, the actual size of the polyp (e.g., in millimeters (mm)) is determined as follows. The size of the forceps (in mm) (Fmm) is available, for example, based on the device model or actual measurements. The polyp size (in mm) (Dmm) is then calculated as follows and may be rounded to whole millimeters:
[0059] Dmm=(Dpx*Fmm) / Fpx
[0060] Once a polyp is detected during a medical procedure, the polyp size (in mm) is output on a computer screen in real time, for example along with a video feed.
[0061] As described above, the AI platform 10 is used to detect and measure the size of lesions. In addition, the described platform 10 can also be very useful in early detection of other diseases. The classifier can be trained to detect diseases such as inflammatory bowel disease (IBD). Inflammatory bowel disease is a general term used to describe the disorder of chronic inflammation involving the digestive tract. Types of IBD include ulcerative colitis, which causes persistent inflammation and sores (ulcers) in the innermost lining of the large intestine (colon) and rectum. Another type of IBD is Crohn's disease, which is characterized by inflammation of the lining of the digestive tract, which tends to extend deeply into the affected tissues. IBD can be debilitating, sometimes leading to life-threatening complications, and increases the risk of colon cancer.
[0062] The AI platform 10 can also be used to compare the size (area) before and after treatment of inflammation of the digestive tract lining, which may appear as patches in Crohn's disease or as a continuous pattern in ulcerative colitis, and for early detection of precancerous lesions in patients with Crohn's disease and ulcerative colitis.
[0063] Additionally, machine learning models that automatically detect the location of a disease are another way in which the AI platform 10 can be useful. Once a clinical procedure is performed, accurate detection of the location of a lesion can be beneficial to the surgeon performing the surgical treatment of the disease.
[0064] Additionally, determining gastroenterology (GI) quality metrics is another application of the AI platform 10. This would allow for the automated measurement of multiple metrics that are likely to reflect the quality of GI clinical procedures.
[0065] In addition, the process can be used to analyze digitized image frames captured during a colonoscopy procedure. The described method can be used to automatically measure, for example, insertion time, withdrawal time, images at maximum intubation, cecal intubation time, and information of identified feature points, quality of bowel preparation. Since these metrics can be obtained automatically, it will help quantify the care process and help provide high-quality care.
[0066] The primary colonoscopy quality metric is the adenoma detection rate (ADR), which is defined as the proportion of an endoscopist's screening colonoscopies that have detected one or more adenomas. To maximize adenoma detection, adequate mucosal examination is required to ensure complete examination. Studies of tandem colonoscopies have revealed that physicians may miss adenomas larger than 1 cm. To ensure adequate adenoma detection, studies suggest that the physician's pullout time (excluding polypectomy) should average at least 6 to 9 minutes. A 2006 paper published by the ASGE / ACG Taskforce in Quality in Endoscopy suggested that pullout time should be measured as an aggregate of physician practice rather than on an individual patient basis, given anatomical variations such as prominent colonic folds.
[0067] Another quality metric that influences adenoma detection is the quality of bowel preparation. Adequate colon preparation is critical to ensure complete mucosal examination. It has been reported that only three quarters of colonoscopies have an adequate colon preparation. High rates of missed adenomas and advanced tumors have been observed in patients with suboptimal colon preparation.
[0068] How should physicians ensure high-quality colonoscopies for CRC screening in their practice? Despite some limitations, individual endoscopists should calculate the ADR based on data from screening. If a physician's ADR is below a benchmark of 20%, quality improvement efforts are needed to increase this rate. Physicians should aim to achieve a cecal intubation rate of 95% or higher in screening colonoscopies. Techniques for mucosal examination should be evaluated with an emphasis on mean withdrawal time. The quality of bowel preparation in endoscopic practice should also be determined and optimized. Finally, in an adequately prepared and carefully examined colon, adherence to screening and surveillance guidelines for future examinations is strongly recommended. These steps will ensure that colonoscopy is maximally effective in preventing CRC.
[0069] Fig.14 Describes the use Figure 1 14 to implement an exemplary process of the client-service model. On the client 60 10 (e.g., where surgery is being performed), a video frame (image) is captured and forwarded to a service 62 (e.g., a remote server). The service 62 receives the request and searches for objects using a trained classifier. An XML result string is generated and sent back to the client 60 in real time.
[0070] The client 60 receives the response and analyzes the XML string to determine if a polyp was found. If no polyp was found, the next image is sent to the service 62. If a polyp was found, the detection of the polyp is indicated with the video feed (i.e., on the computer screen). Next, it is determined if forceps were also found in the image. If no forceps were found, the next image is sent to the service 62. If forceps were found, the size of the polyp is calculated and output with the video feed.
[0071] In another embodiment, the AI platform can be used for video capsule endoscopy (VCE), a procedure that uses a tiny wireless camera to take pictures of the digestive tract. The capsule endoscopy camera is inside a capsule that the patient swallows. As the capsule moves through the digestive tract, the camera takes thousands of pictures that are sent to a recorder worn by the patient, for example, on a belt around the patient's waist.
[0072] VCE helps doctors view areas inside the small intestine that are difficult to reach using more traditional endoscopy procedures. Traditional endoscopy involves passing a long, flexible tube equipped with a video camera down the throat or through the rectum.
[0073] The camera used in capsule endoscopy takes thousands of color pictures as it passes through the digestive tract. The images, saved on the recorder, are then passed to a computer with specialized software that strings the images together to create a video.
[0074] Once the video is created, the physician views it to look for abnormalities within the digestive tract. The process of viewing the entire VCE of the small intestine takes approximately 45 minutes to an hour. In addition to being used in real-time clinical procedures, an artificial intelligence (AI) platform can be used to analyze these videos in order to detect lesions, which can then be evaluated by clinicians.
[0075] A method for using artificial intelligence (AI) to detect lesions in a saved video (e.g., from a VCE surgery) may, for example, include the following steps: providing a trained classifier comprising a deep learning model trained to detect lesions; processing the video after the video has been created using images transferred from a recorder; and determining whether a video frame from the video has a lesion using the trained classifier.
[0076] It should be understood that the AI platform 10, client 60, and service 62 described herein can be implemented as a computer program product stored on a computer-readable storage medium. The computer-readable storage medium can be a tangible device that can hold and store instructions for use by an instruction execution device. The computer-readable storage medium can be, for example, but not limited to, an electronic storage device, a magnetic storage device; an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of computer-readable storage media includes the following items: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium should not be interpreted as a temporary signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated through a waveguide or other transmission medium (e.g., a light pulse through an optical cable), or an electrical signal transmitted through a wire.
[0077] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to a corresponding computing / processing device, or downloaded to an external computer or external storage device via a network (e.g., the Internet, a local area network, a wide area network, and / or a wireless network). The network can include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network, and forwards the computer-readable program instructions to be stored in a computer-readable storage medium in the corresponding computing / processing device.
[0078] The computer-readable program instructions for performing the operations of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages (such as Java, Python, SmallTalk, C++, etc.), and conventional procedural programming languages (such as "C" programming language or similar programming languages). The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or a connection may be established with an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuits (e.g., including: programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs)) can execute computer-readable program instructions by personalizing the electronic circuits using state information of the computer-readable program instructions so as to perform various aspects of the present invention.
[0079] Various aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each frame in the flowchart illustration and / or block diagram and the combination of frames in the flowchart illustration and / or block diagram can be implemented by computer-readable program instructions.
[0080] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device for generating a machine, so that these instructions executed by the processor of the computer or other programmable data processing device create a means to implement the functions / behaviors specified in the flow chart and / or block diagram box. These computer-readable program instructions can also be stored in a computer-readable storage medium, which can instruct a computer, a programmable data processing device, and / or other devices to function in a particular manner, so that the computer-readable storage medium storing the instructions includes an article of manufacture, which includes instructions for implementing various aspects of the functions / behaviors specified in the flow chart and / or block diagram box.
[0081] The computer-readable program instructions may also be loaded onto a computer, other programmable data processing device, or other apparatus to cause a series of operable steps to be executed on the computer, other programmable device, or other apparatus to generate a computer-implemented process, so that the instructions executed on the computer, other programmable device, or other apparatus implement the functions / behaviors specified in the flowchart and / or block diagram.
[0082] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention.In this regard, each frame in the flow chart or block diagram can represent the module, program segment or part of the instruction including one or more executable instructions for realizing the specified logical function.In some alternative implementations, the function mentioned in the frame can occur in the order other than mentioned in the figure.For example, according to the function involved, the two frames shown in succession can in fact be executed roughly at the same time, or these frames can sometimes be executed in reverse order.It should also be noted that each frame in the block diagram and / or flow chart illustration, and the combination of the frames in the block diagram and / or flow chart illustration can be realized by a system based on special hardware that performs a specified function or behavior or implements a combination of special hardware and computer instructions.
[0083] A computing system may include any type of computing device, and for example include at least one processor, memory, input / output (I / O) (e.g., one or more I / O interfaces and / or devices) and a communication path. Typically, a processor executes a program code that is at least partially fixed in the memory. When executing the program code, the processor can process data, which may result in reading the transformed data from the memory and / or I / O and / or writing the transformed data to the memory and / or I / O for further processing. The path provides a communication link between the various components in the components in the computing system. The I / O may include one or more personal I / O devices that enable a user to interact with the computing system. The computing system may also be implemented in a distributed manner so that different components reside in different physical locations.
[0084] Moreover, it should be understood that the AI platform 10 or its related components (such as API components, agents, etc.) can also be automatically or semi-automatically deployed to a computer system by sending the components to a central server or a group of central servers. The component is then downloaded to the target computer that will execute the component. The component is then dispatched to a directory or loaded into a directory that executes the program that dispatched the component to the directory. Another alternative is to send the component directly to a directory on the client computer's hard disk. When there is a proxy server, the process will select the proxy server code, determine which computers to place the proxy server code on, send the proxy server code, and then install the proxy server code on the proxy computer. The component will be sent to the proxy server and then it will be stored on the proxy server.
[0085] The foregoing description of various aspects of the present invention is presented for the purpose of illustration and description. It is not intended to exclude or limit the present invention to the precise form disclosed, and it is apparent that many modifications and variations are possible. Such modifications and variations obvious to those skilled in the art are included within the scope of the present invention as defined by the appended claims.
Claims
1. An artificial intelligence (AI) platform for real-time detection and determination of lesion size during clinical surgery, the AI platform comprising: a trained classifier comprising a deep learning model trained to detect lesions and reference objects in the image data; as well as a real-time video analysis system that receives a video feed during a clinical procedure, determines using the trained classifier whether a video frame from the video feed has both a lesion and a reference object, calculates an actual size of the lesion based on pixel sizes of both the lesion and the reference object, and outputs an indication that the lesion is detected and the actual size of the lesion; The pixel size of the reference object is determined by the following operation: capturing a cropped image containing the reference object and converting the cropped image into a grayscale monochrome image; enhancing the cropped image; identifying an edge of the reference object and applying a straight line along the edge; filtering the straight lines based on line lengths of the straight lines, line inclinations of the straight lines, and intersection coordinates of the straight lines with a boundary of the cut-out image to identify a pair of intersecting lines from the straight lines; and Determining the pixel size of the reference object based on the pair of intersection lines Fpx .
2. The AI platform according to claim 1, wherein: The lesions include polyps.
3. The AI platform according to claim 1, wherein: The reference object includes at least one of a snare or surgical forceps.
4. The AI platform according to claim 1, wherein: The trained classifier comprises a neural network trained using a set of training images, wherein a subset of the training images includes different types of polyps, polyps displayed on different backgrounds, and polyps displayed under different lighting conditions.
5. The AI platform according to claim 1, wherein: An indication of the detection of the lesion and the actual size of the lesion is output along with the video feed during the clinical procedure.
6. The AI platform according to claim 1, wherein: The pixel size of the lesion is determined as follows: capturing a rectangular cropped image containing the lesion; enhancing the cropped image using Gaussian smoothing; Detecting the contour of the lesion using an edge detection algorithm; and The new rectangular coordinates of the lesion are calculated to provide the pixel size Dpx of the lesion.
7. The AI platform according to claim 6, wherein: The pixel size of the reference object is further determined by: The cropped image is enhanced using Gaussian smoothing.
8. The AI platform according to claim 7, wherein: The actual size D of the lesion is calculated as: D=(Dpx*F) / Fpx, Wherein, F is the actual size of the reference object.
9. A method for real-time detection and determination of lesion size during clinical surgery using artificial intelligence (AI), the method comprising the following steps: providing a trained classifier, the trained classifier comprising a deep learning model trained to detect lesions and reference objects in image data; Processing video feeds during clinical procedures; utilizing the trained classifier to determine whether a video frame from the video feed has both a lesion and a reference object; calculating the actual size of the lesion based on the pixel sizes of both the lesion and the reference object; as well as outputting an indication that the lesion is detected and an actual size of the lesion; The pixel size of the reference object is determined by the following operation: capturing a cropped image containing the reference object and converting the cropped image into a grayscale monochrome image; enhancing the cropped image; identifying an edge of the reference object and applying a straight line along the edge; filtering the straight lines based on line lengths of the straight lines, line inclinations of the straight lines, and intersection coordinates of the straight lines with a boundary of the cut-out image to identify a pair of intersecting lines from the straight lines; and Determining the pixel size of the reference object based on the pair of intersection lines Fpx .
10. The method according to claim 9, wherein: The lesions include polyps.
11. The method according to claim 9, wherein: The reference object includes a snare.
12. The method according to claim 9, wherein: The reference object includes surgical forceps.
13. The method according to claim 9, wherein: The trained classifier comprises a neural network trained using a set of training images, wherein a subset of the training images includes different types of polyps, polyps displayed on different backgrounds, and polyps displayed under different lighting conditions.
14. The method according to claim 9, wherein: An indication of the detection of the lesion and the actual size of the lesion is output along with the video feed during the clinical procedure.
15. The method according to claim 9, wherein: The pixel size of the lesion is determined by the following steps: capturing a rectangular cropped image containing the lesion; enhancing the cropped image using Gaussian smoothing; Detecting the contour of the lesion using an edge detection algorithm; and New rectangular coordinates of the lesion are calculated based on the contour to provide a pixel size Dpx of the lesion.
16. The method according to claim 15, wherein: The pixel size of the reference object is further determined by the following steps: The cropped image is enhanced using Gaussian smoothing.
17. The method according to claim 16, wherein: The actual size D of the lesion is calculated as: D=(Dpx*F) / Fpx, Wherein, F is the actual size of the reference object.
18. A computer readable storage medium having stored thereon computer readable code which, when executed by a computing system, causes the method according to any one of claims 9 to 17 to be performed.
