ROP laser spot quantification method and device
Through the ROP laser spot quantification method, laser fundus images and network models are used to solve the subjectivity problem of fundus prognosis and refractive status assessment in children with ROP after laser photocoagulation treatment, provide objective quantitative assessment, and improve the accuracy of assessment. and efficiency.
Patent Information
- Application Number
- CN202410790937.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-19
AI Technical Summary
The existing technology lacks objective quantitative methods to evaluate the prognosis and refractive status of the fundus of children with ROP after laser photocoagulation treatment, resulting in unstable subjective judgment and the inability to achieve efficient and objective prognosis judgment.
The ROP laser spot quantification method is used to obtain the laser fundus image, outline the laser spot boundary with a solid line, perform binarization and network model training, segment and predict the laser spot area, calculate the laser area index, and provide an objective quantitative assessment.
It realizes the quantification of the laser spot area after laser photocoagulation, provides an objective prediction method for the fundus prognosis and refractive status of children with ROP, and improves the accuracy and efficiency of assessment.
Smart Images

Figure CN118587445A
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a ROP laser spot quantification method and device. Background Art
[0002] At present, due to the advocacy and popularization of fundus screening for premature infants, more and more children with retinopathy of prematurity (ROP) receive early treatment. Researchers have also begun to pay attention to the prognosis of children with ROP after laser photocoagulation. Many research results have shown that laser treatments will increase the incidence of refractive errors in children with ROP.
[0003] Currently, the prognosis of ROP is mainly judged by relatively experienced ophthalmologists. However, due to the limited and uneven distribution of expert resources and the instability of subjective judgment of ROP prognosis, it is not possible to efficiently and objectively judge the prognosis of the fundus and refractive status of children after laser photocoagulation. At present, there is no objective quantitative method to evaluate the degree of laser photocoagulation treatment and its impact on the refractive status and fundus development of children. Summary of the invention
[0004] The present application provides a ROP laser spot quantification method and device, which can segment and quantify the laser spot area after laser photocoagulation, and provide an objective quantification method for predicting the fundus prognosis and refractive state of children after ROP laser photocoagulation.
[0005] In a first aspect, an embodiment of the present application provides a ROP laser spot quantification method, comprising:
[0006] Acquire multiple laser fundus images, and outline the laser spot boundary in each laser fundus image with a solid line;
[0007] Binarizing each laser fundus image to obtain a mask corresponding to each laser fundus image;
[0008] Inputting each laser fundus image into a first network model in batches, and training with the mask of each laser fundus image as a true label to obtain a trained laser spot segmentation model;
[0009] Acquire the laser spot area surrounded by the laser spot boundary in each laser fundus image;
[0010] Inputting each laser fundus image into a second network model in batches, training with the laser spot area in each laser fundus image as a true label, and obtaining a trained area prediction model;
[0011] Obtain the image to be diagnosed and input it into the laser spot segmentation model to obtain the laser spot segmentation area;
[0012] Input the laser spot segmentation area into the area prediction model to obtain the laser spot prediction area;
[0013] The circular area of the circular area of the fundus in the image to be diagnosed is calculated, and the predicted area of the laser spot is divided by the circular area to obtain the laser area index.
[0014] Furthermore, the method further comprises:
[0015] Calculate the optic disc area of the image to be diagnosed; compare the predicted area of the laser spot with the optic disc area to obtain the optic disc area percentage.
[0016] Furthermore, the method also includes: before training the first network model, adjusting each laser fundus image and the corresponding mask to a preset size, and normalizing each mask of the preset size.
[0017] Furthermore, the method also includes: before training the second network model, adjusting each laser fundus image to a preset size and performing normalization processing so that the pixel value of each laser fundus image is within a preset range.
[0018] Furthermore, the preset size is 800×800 and the preset range is 0-1.
[0019] Furthermore, the first network model is a Unet architecture model.
[0020] Furthermore, the second network model is a Resnet50 model.
[0021] In a second aspect, an embodiment of the present application provides a ROP laser spot quantification device, comprising:
[0022] A delineation module, used for acquiring a plurality of laser fundus images and delineating the laser spot boundary in each laser fundus image with a solid line;
[0023] A binary module is used to binarize each laser fundus image to obtain a mask corresponding to each laser fundus image;
[0024] A first training module is used to input each laser fundus image into a first network model in batches, and train the laser fundus image using the mask of each laser fundus image as a true label to obtain a trained laser spot segmentation model;
[0025] An area acquisition module, used to acquire the laser spot area surrounded by the laser spot boundary in each laser fundus image;
[0026] A second training module is used to input each laser fundus image into a second network model in batches, and use the laser spot area in each laser fundus image as a true label for training to obtain a trained area prediction model;
[0027] The first diagnosis module is used to obtain the image to be diagnosed and input it into the laser spot segmentation model to obtain the laser spot segmentation area;
[0028] The second diagnosis module is used to input the laser spot segmentation area into the area prediction model to obtain the laser spot prediction area;
[0029] The index module is used to calculate the circular area of the circular area of the fundus in the image to be diagnosed, and divide the predicted area of the laser spot by the circular area to obtain the laser area index.
[0030] In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of a ROP laser spot quantification method as described in any of the above embodiments are performed.
[0031] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of a ROP laser spot quantification method as in any of the above embodiments are implemented.
[0032] In summary, compared with the prior art, the technical solution provided in the embodiment of the present application has at least the following beneficial effects:
[0033] The embodiment of the present application provides a ROP laser spot quantification method, which obtains a mask of a laser fundus image by binarization, and simultaneously obtains the laser spot area surrounded by the laser spot boundary outlined in the laser fundus image, distinguishes the laser spot falling in the circular area of the fundus image by the mask, and uses the mask to train to obtain a laser spot segmentation model, and uses the laser spot area to train to obtain an area prediction model, so that the laser spot segmentation area of the image to be diagnosed and the laser spot prediction area corresponding to the laser segmentation area can be obtained by the trained laser spot segmentation model and the area prediction model, and the laser area index is obtained by comparing with the circular area of the circular area. The present application uses the laser area index to realize the quantification of the laser spot area after laser photocoagulation, and provides an objective quantification method for predicting the fundus prognosis and refractive state of children after ROP laser photocoagulation. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A flowchart of a ROP laser spot quantification method provided as an exemplary embodiment of the present application.
[0035] Figure 2 A structural diagram of the Unet architecture model provided for an exemplary embodiment of the present application.
[0036] Figure 3 A schematic diagram of the structure of the Resnet50 model provided as an exemplary embodiment of the present application.
[0037] Figure 4 A structural diagram of a ROP laser spot quantification device provided as an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0038] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0039] Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative work shall fall within the scope of protection of this application.
[0040] See also Figure 1 , the embodiment of the present application provides a ROP laser spot quantification method, comprising:
[0041] Step S1, acquiring a plurality of laser fundus images, and outlining the laser spot boundary in each laser fundus image with a solid line.
[0042] Among them, laser fundus images are fundus images of ROP children at different stages after laser treatment. Laser fundus images are required not to be laser scanning fundus offset images or images in which multiple doctors cannot distinguish laser spots, in order to ensure the accuracy of the training.
[0043] Step S2, binarizing each laser fundus image to obtain a mask corresponding to each laser fundus image.
[0044] The mask corresponding to the image is a binary image used to identify different areas in the image. Each pixel in the mask indicates whether the corresponding position belongs to a specific category. The mask has the same size as the original laser fundus image, and the value of each pixel is usually a binary value, indicating the classification of the pixel, that is, laser spot and non-laser spot. Therefore, the trained laser spot segmentation model can realize the recognition and segmentation of laser spots falling in the circular area of the fundus image.
[0045] Step S3, inputting each laser fundus image into the first network model in batches, and training with the mask of each laser fundus image as the true label to obtain a trained laser spot segmentation model.
[0046] Step S4, obtaining the laser spot area surrounded by the laser spot boundary in each laser fundus image.
[0047] Step S5, inputting each laser fundus image into the second network model in batches, and training with the laser spot area in each laser fundus image as the true label to obtain a trained area prediction model.
[0048] Step S6, obtaining the image to be diagnosed and inputting the laser spot segmentation model to obtain the laser spot segmentation area.
[0049] Step S7, inputting the laser spot segmentation area into the area prediction model to obtain the laser spot prediction area.
[0050] The laser spot segmentation area is the part of the laser spot in the image to be diagnosed that falls in the circular area of the fundus, which is identified and segmented by the laser spot segmentation model, and the corresponding laser spot predicted area is the area of the laser spot in the image to be diagnosed that falls in the circular area of the fundus.
[0051] Step S7, calculate the circular area of the circular area of the fundus in the image to be diagnosed, divide the predicted area of the laser spot by the circular area, and obtain the laser area index. Among them, in the third edition of the International Classification of Retinopathy of Prematurity (ICROP), there is the concept of "Posterior Pole Zone II". The circular area of the fundus specifically refers to Zone I + Posterior Pole Zone II in the definition of ROP partition of the fundus image, that is, the area of the circle with the optic disc as the center, and the sum of the distance from the center of the optic disc to the fovea of the macula and the diameter of the two optic discs as the radius. The lesions in the posterior pole zone II are more threatening than the lesions in the more peripheral zone II, which is of great value in guiding the clinical selection of treatment timing and treatment methods and judging the prognosis. The circular area of Zone I + Posterior Pole Zone II is selected as the cropping standard.
[0052] Specifically, the OpenCV library can be used to read the entire fundus circular area, and then numpy can be used to calculate the circular area of the entire fundus circular area, and then the laser predicted area is divided by the circular area to obtain the laser area index.
[0053] The calculation of step S7 is expressed by the formula: Laser Area Index LAI = (A laser / A circle )×100%; where A laser is the predicted area of the laser spot, A circle It is the circular area of the circular area of the fundus.
[0054] The above embodiment provides a ROP laser spot quantification method, which obtains a mask of the laser fundus image by binarization, and simultaneously obtains the laser spot area surrounded by the laser spot boundary outlined in the laser fundus image, distinguishes the laser spot falling in the circular area of the fundus image by the mask, and uses the mask to train to obtain a laser spot segmentation model, and uses the laser spot area to train to obtain an area prediction model, so that the laser spot segmentation area of the image to be diagnosed and the laser spot prediction area corresponding to the laser segmentation area can be obtained by the trained laser spot segmentation model and the area prediction model, and the laser area index is obtained by comparing with the circular area of the circular area. The present application uses the laser area index to realize the quantification of the laser spot area after laser photocoagulation, and provides an objective quantification method for predicting the fundus prognosis and refractive state of children after ROP laser photocoagulation.
[0055] In some embodiments, the method further comprises:
[0056] Calculate the optic disc area of the image to be diagnosed; compare the predicted area of the laser spot with the optic disc area to obtain the optic disc area percentage.
[0057] After quantifying the laser spot, the above embodiment further calculates the percentage of the optic disc area occupied by the laser spot, which helps doctors evaluate the long-term refractive changes of children after laser photocoagulation and quantifies the long-term impact of photocoagulation treatment on refraction, allowing clinicians to evaluate the condition from multiple angles and develop more accurate refractive treatment plans.
[0058] In some embodiments, the method may further include: before training the first network model, adjusting each laser fundus image and the corresponding mask to a preset size, and normalizing each mask of the preset size.
[0059] If the image is too large, the computer storage space is insufficient; if the image is too small, too much pixel information will be lost. Therefore, it is more appropriate to set the preset size to 800×800. In the specific implementation process, the preset size also needs to adapt to the input requirements of the first network model.
[0060] In some embodiments, the method may further include: before training the second network model, adjusting each laser fundus image to a preset size, and performing normalization processing so that the pixel values of each laser fundus image are within a preset range.
[0061] Among them, the preset range can be 0-1 or a specific mean and standard deviation to reduce the computational complexity in model training and improve performance; when the amount of data is limited, data enhancement techniques (such as rotation, scaling, flipping, etc.) can also be applied to improve the model's adaptability to images under different conditions and enhance the model's generalization ability.
[0062] In some embodiments, the first network model may be a Unet architecture model. Figure 2 ,This architecture is specially designed to process the complex features in fundus images, thereby achieving accurate segmentation of the ROP laser spot.
[0063] The main advantage of the Unet architecture is its symmetrical structure, which consists of a contraction path (for capturing background information) and an expansion path (for precise positioning). By fusing the high-resolution features of the contraction path in the expansion path, Unet is able to accurately segment key features in the image while maintaining background information, which is particularly important for the segmentation of ROP laser spots.
[0064] It is worth noting that this application uses a custom DICELossMultiClass loss function in the Unet architecture model. This special loss function can calculate the Dice coefficient between the model output and the true mask, which is a metric commonly used in medical image segmentation. Considering that the mask has a single-channel structure, DICELossMultiClass is designed to only consider the first channel of the output, making it more suitable for the laser spot segmentation task.
[0065] In some embodiments, the second network model may be a Resnet50 model.
[0066] See also Figure 3 , the deep learning model of Resnet50 has been specifically trained to accurately estimate the area of the laser spot from the fundus image. The Resnet50 model is a deep residual network that solves the gradient vanishing problem in deep network training by introducing residual connections. Therefore, this application uses the Resnet50 model to extract the ROP laser spot area features in the laser fundus image and predicts the area of the laser spot through a linear regression layer.
[0067] In addition, this application uses a standard optimizer configuration for the Resnet50 model for area prediction, such as SGD (stochastic gradient descent) with a high momentum parameter (0.99), which helps the model converge stably during training.
[0068] During the training process, cross-validation is used to adjust and optimize model parameters to ensure the generalization ability of the model on different data sets. The main evaluation indicators of the segmentation task are Dice coefficient and intersection over union (IoU). Dice coefficient is a set similarity measurement function, which is usually used to calculate the similarity of two samples. IoU is defined as the ratio between the intersection size and the union size of two sets. After multiple training optimizations, it is determined that the test results of the segmentation model on the image set are average Dice: 0.8633 and average IoU: 0.7716. The evaluation indicator of the Resnet50 linear regression model is R-squared. R-squared is an indicator used to evaluate the degree of model fit. It is the degree of dispersion between the model's fitting line and the true value. The value range of R-squared is between 0 and 1. The closer the value is to 1, the better the model fit is, and the closer the predicted value is to the true value. After multiple training optimizations, the prediction of the model is more accurate when the R-squared of the Resnet50 linear regression model is 0.993. In the evaluation phase of the Unet architecture model, in addition to using the Dice coefficient and intersection over union (IoU) as the main evaluation indicators for the segmentation task, this application also pays special attention to the performance of the customized DICELossMultiClass loss function in evaluating model performance. In addition, for the Resnet50 model, this application monitors the error between the predicted area value and the true area value, and analyzes the model's ability to handle laser spots of different sizes to evaluate its accuracy and reliability in area prediction.
[0069] See also Figure 4 Another embodiment of the present application provides a ROP laser spot quantification device, comprising:
[0070] The outlining module 101 is used to acquire a plurality of laser fundus images and outline the laser spot boundary in each laser fundus image with a solid line.
[0071] The binary module 102 is used to binarize each laser fundus image to obtain a mask corresponding to each laser fundus image.
[0072] The first training module 103 is used to input the laser fundus images into the first network model in batches, and perform training using the masks of the laser fundus images as true labels to obtain a trained laser spot segmentation model.
[0073] The area acquisition module 104 is used to acquire the laser spot area surrounded by the laser spot boundary in each laser fundus image.
[0074] The second training module 105 is used to input the laser fundus images into the second network model in batches, and perform training using the laser spot area in each laser fundus image as a true label to obtain a trained area prediction model.
[0075] The first diagnosis module 106 is used to obtain the image to be diagnosed and input the laser spot segmentation model to obtain the laser spot segmentation area.
[0076] The second diagnosis module 107 is used to input the laser spot segmentation area into the area prediction model to obtain the laser spot prediction area.
[0077] The index module 108 is used to calculate the circular area of the circular area of the fundus in the image to be diagnosed, and divide the predicted area of the laser spot by the circular area to obtain the laser area index.
[0078] Furthermore, the device also includes a comparison module for calculating the optic disc area of the image to be diagnosed; comparing the predicted area of the laser spot with the optic disc area to obtain the optic disc area percentage.
[0079] Furthermore, the device also includes a first preprocessing module, which is used to adjust each laser fundus image and the corresponding mask to a preset size before training the first network model, and normalize each mask of the preset size.
[0080] Furthermore, the device also includes a second preprocessing module, which is used to adjust each laser fundus image to a preset size and perform normalization processing before training the second network model so that the pixel value of each laser fundus image is within a preset range.
[0081] The specific definition of a ROP laser spot quantification device provided in this embodiment can be found in the above embodiment of a ROP laser spot quantification method, which will not be repeated here. Each module in the above ROP laser spot quantification device can be fully or partially implemented by software, hardware and their combination.
[0082] The above modules may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to the above modules.
[0083] The embodiment of the present application provides a computer device, which may include a processor, a memory, a network interface and a database connected through a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the processor executes the steps of a ROP laser spot quantification method as in any of the above embodiments.
[0084] The working process, working details and technical effects of the computer device provided in this embodiment can be found in the above embodiment of a ROP laser spot quantification method, which will not be described in detail here.
[0085] The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of a ROP laser spot quantification method as in any of the above embodiments are implemented. The computer-readable storage medium refers to a carrier for storing data, which may include but is not limited to a floppy disk, an optical disk, a hard disk, a flash memory, a USB flash drive and / or a memory stick, etc. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The working process, working details and technical effects of the computer-readable storage medium provided in this embodiment can be found in the above embodiment of a ROP laser spot quantification method, and will not be repeated here.
[0086] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0087] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0088] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A ROP laser spot quantification method, characterized in that: include: Acquire multiple laser fundus images, and outline the laser spot boundary in each of the laser fundus images with a solid line; Binarizing each of the laser fundus images to obtain a mask corresponding to each of the laser fundus images; Inputting the laser fundus images into a first network model in batches, and training the model using the masks of the laser fundus images as true labels to obtain a trained laser spot segmentation model; Acquire the laser spot area surrounded by the laser spot boundary in each laser fundus image; Inputting the laser fundus images into a second network model in batches, and training the model using the laser spot area in the laser fundus images as true labels to obtain a trained area prediction model; Acquire the image to be diagnosed and input it into the laser spot segmentation model to obtain the laser spot segmentation area; Inputting the laser spot segmentation area into the area prediction model to obtain the laser spot prediction area; The circular area of the circular area of the fundus in the image to be diagnosed is calculated, and the predicted area of the laser spot is divided by the circular area to obtain a laser area index.
2. The ROP laser spot quantification method according to claim 1, characterized in that: Also includes: Calculating the optic disc area of the image to be diagnosed; The predicted area of the laser spot is compared with the optic disc area to obtain the optic disc area percentage.
3. The ROP laser spot quantification method according to claim 1, characterized in that: Also includes: Before training the first network model, each of the laser fundus images and the corresponding masks are adjusted to a preset size, and each of the masks of the preset size is normalized.
4. The ROP laser spot quantification method according to claim 3, characterized in that: Also includes: Before training the second network model, each of the laser fundus images is adjusted to the preset size and normalized so that the pixel values of each of the laser fundus images are within a preset range.
5. The ROP laser spot quantification method according to claim 4, characterized in that: The preset size is 800×800, and the preset range is 0-1.
6. The ROP laser spot quantification method according to claim 1, characterized in that: The first network model is a Unet architecture model.
7. The ROP laser spot quantification method according to claim 1, characterized in that: The second network model is a Resnet50 model.
8. A ROP laser spot quantification device, characterized in that: include: A delineation module, used to acquire a plurality of laser fundus images and to delineate the laser spot boundary in each of the laser fundus images with a solid line; A binary module, used for binarizing each of the laser fundus images to obtain a mask corresponding to each of the laser fundus images; A first training module, used for inputting the laser fundus images into a first network model in batches, and performing training using the masks of the laser fundus images as true labels to obtain a trained laser spot segmentation model; An area acquisition module, used for acquiring the laser spot area surrounded by the laser spot boundary in each laser fundus image; A second training module is used to input the laser fundus images into a second network model in batches, and use the laser spot area in each laser fundus image as a true label for training to obtain a trained area prediction model; A first diagnosis module is used to obtain an image to be diagnosed and input it into the laser spot segmentation model to obtain a laser spot segmentation area; A second diagnosis module is used to input the laser spot segmentation area into the area prediction model to obtain the laser spot prediction area; The index module is used to calculate the circular area of the circular area of the fundus in the image to be diagnosed, and divide the predicted area of the laser spot by the circular area to obtain the laser area index.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that:When the processor executes the computer program, the steps of the ROP laser spot quantification method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the ROP laser spot quantification method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Lesion detection method and apparatus of eye fundus image
CN107180421A
Fundus image-based health insurance fee control method and system
CN111325631A
A fundus leopard spot feature extraction and feature index determination method and device
CN113344894A
Myopia eye bottom change visualization method and device, storage medium and electronic equipment
CN116503405A
Device and method for disease prediction based on eye fundus image and related product
CN116563196A
