Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention provides a medical image grading method. The execution subject of the medical image grading method includes, but is not limited to, at least one of the electronic devices of the server, the terminal, and the like, which can be configured to execute the method provided by the embodiment of the present application. In other words, the medical image ranking method may be performed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
Referring to a flow diagram of a medical image ranking method provided in an embodiment of the present invention shown in fig. 1, in an embodiment of the present invention, the medical image ranking method includes:
s1, obtaining a medical image to be classified, and performing feature extraction on the medical image to be classified by using a feature extraction network in a pre-constructed focus detection model to obtain a feature map;
optionally, in an embodiment of the present invention, the medical image to be graded is a fundus color Doppler ultrasound image, and the lesion detection model includes: a feature extraction network, a focus classification network and a focus segmentation network. The feature extraction network is used for feature extraction, the focus classification network is used for focus classification, and the focus segmentation network is used for focus region segmentation.
In detail, in the embodiment of the present invention, an initial feature extraction network in the feature extraction network is used to perform a convolution pooling operation on the medical image to be classified to obtain an initial feature map; and marking the interested region in the initial characteristic diagram by using the region extraction network in the characteristic extraction network to obtain the characteristic diagram.
Optionally, in this embodiment of the present invention, the initial feature extraction Network is a convolutional neural Network, and the Region extraction Network is an RPN (Region pro-potential Network).
Further, before performing feature extraction on the medical image to be classified by using a feature extraction network in a lesion detection model in the embodiment of the present invention, the method further includes: acquiring a historical medical image set, and carrying out preset label marking on the historical medical image set to obtain a first training image set; and performing iterative training on a pre-constructed first deep learning network model by using the first training image set to obtain the focus detection model. Wherein the historical medical image set comprises a plurality of historical medical images, and the historical medical images are medical images with the same content and different content with the type of the image to be graded.
In detail, the embodiment of the present invention performs preset label labeling on the historical medical image set to obtain a first training image set, including: performing focus region marking on a focus in each historical medical image in the historical medical image set to obtain a target region, and performing focus category marking on each target region in each historical medical image to obtain a first training image set; optionally, the preset lesion area comprises a microangioma area, a hemorrhage area, a sclerosmosis area, a cotton wool spot area, a laser spot area, a neovascular area, a vitreous hemorrhage area, a pre-retinal hemorrhage area, a fibromembranous area; the preset lesion category and the preset lesion area are in one-to-one correspondence, and the method comprises the following steps: microangioma focus, bleeding focus, hard infiltration focus, cotton wool spot focus, laser spot focus, neovascular focus, vitreous hemorrhage focus, pre-retinal hemorrhage focus, fibro-membranous focus, marking the region as laser spot focus if the target region is a laser spot region.
Further, the lesion detection model is trained by a first deep learning model, so that the first deep learning model and the lesion detection model have the same network structure, and therefore, the first deep learning model also includes: a feature extraction network, a focus classification network and a focus segmentation network.
In detail, in the embodiment of the present invention, the first training image set is used to perform iterative training on a first deep learning network model that is pre-constructed, so as to obtain the lesion detection model, where the first deep learning network model is a Mask-RCNN model, and includes:
step A: performing convolution pooling on each image in the first training image set by using a feature extraction network in the first deep learning network model, and performing region-of-interest marking on the image subjected to convolution pooling to obtain a historical feature map;
optionally, the feature extraction network in the embodiment of the present invention includes an initial feature extraction network and a regional extraction network; the initial feature extraction Network is a convolutional neural Network, and the Region extraction Network is an RPN (Region pro-social Network).
In detail, in the embodiment of the present invention, an initial feature extraction network is used for convolution pooling, and the region of interest is marked by using the region extraction network.
And B: performing boundary box marking prediction and classification prediction on the region of interest in the historical feature map by using a focus classification network in the first deep learning network model to obtain boundary box prediction coordinates and classification prediction values;
and C: obtaining a real coordinate of a boundary frame according to a focus area marked by a historical characteristic image corresponding to the historical characteristic image; obtaining a classification true value according to the focus category marked by the historical characteristic image corresponding to the historical characteristic image;
for example: the marked lesion class is a laser speckle lesion, and the classified true value of the corresponding laser speckle lesion is 1.
Step D: calculating by using a preset first loss function according to the classification predicted value and the classification true value to obtain a first loss value; and calculating by using a preset second loss function according to the real coordinate of the boundary box and the predicted coordinate of the boundary box to obtain a second loss function.
Optionally, in this embodiment of the present invention, the first loss function or the second loss function may be a cross-entropy loss function.
Optionally, the lesion segmentation network in the embodiment of the present invention includes a full link layer and a softmax network.
Step E: performing region segmentation prediction on the historical feature map by using a focus segmentation network in the first deep learning network model to obtain a total pixel number predicted value and a region edge pixel number predicted value corresponding to each region;
optionally, in an embodiment of the present invention, the lesion segmentation network is a full convolution network.
Step F: obtaining the true value of the total number of pixels of the corresponding region and the true value of the number of pixels at the edge of the region according to the lesion region marked by the historical characteristic image corresponding to the historical characteristic image;
step G: calculating by using a preset third loss function according to the predicted value of the total number of pixels and the predicted value of the number of the edge pixels of each area, and the real value of the total number of pixels and the real value of the number of the edge pixels of the corresponding area to obtain a third loss value; summing the first loss value, the second loss value and the third loss value to obtain a target loss value;
optionally, in this embodiment of the present invention, the third loss function is a cross entropy loss function.
Step H: and when the target loss value is greater than or equal to a preset loss threshold value, updating the first deep learning network model parameters, and returning to the step A until the target loss value is less than the preset loss threshold value, and stopping training to obtain the focus detection model.
In another embodiment of the invention, the medical image to be graded is stored in the blockchain node by utilizing the high throughput characteristic of the blockchain, so that the data access efficiency is improved.
S2, carrying out classification identification and result statistics on the feature map to obtain a classification result;
in detail, in the embodiment of the present invention, the feature map is subjected to bounding box labeling and classification by using the lesion segmentation network in the lesion detection model, and the number of bounding boxes of the same class is summarized to obtain a classification result. For example: the feature map has A, B, C, D boundary frames in total, the boundary frame A is classified as a bleeding focus, the boundary frame B is a laser spot focus, the boundary frame C is a pre-retinal bleeding focus, and the boundary frame D is a bleeding focus, so that the number of the boundary frames of the same category is converged to obtain a classification result, the classification result is the bleeding focus, the two positions are the boundary frame A and the boundary frame D, 1 position of the laser spot focus is the boundary frame B, and one position of the pre-retinal bleeding focus is the boundary frame C.
S3, carrying out region segmentation and area calculation on the feature map to obtain a segmentation result;
in detail, in the embodiment of the present invention, a lesion segmentation network in the lesion detection model is used to perform region segmentation on the feature map to obtain a plurality of segmentation regions, optionally, the lesion segmentation network in the embodiment of the present invention is a full convolution network, further, since the size difference of the segmentation regions corresponding to the images to be classified of different sizes is large, for comparison, a uniform comparison standard is required, and an area ratio between each segmentation region and the medical image to be classified is calculated to obtain a corresponding relative area, which is not affected by the area change of the medical image to be classified; and summarizing all the segmentation areas and the corresponding relative areas of each segmentation area to obtain the segmentation result. For example: the segmentation result is that A, B, C, D total segmentation regions are 4 in the feature map, the A segmentation region is composed of 10 pixels, the medical image to be graded is composed of 100 pixels, and then the corresponding relative area of the A segmentation region is 10%.
S5, performing feature matching on the classification result and the segmentation result to obtain feature information;
in detail, in the embodiment of the present invention, the classification result and the segmentation result are matched and associated to obtain a lesion category corresponding to each relative area in the segmentation result.
Specifically, the classification result and the segmentation result are obtained from different branches in the same large model, and the positions of each bounding box and the segmentation region in the classification result are the same, for example, the classification result is a bleeding focus sharing one bounding box a, and the segmentation region a corresponding to the bounding box a, so that the focus class corresponding to the segmentation region a obtained by matching is the bleeding focus.
Further, the embodiment of the present invention sums all the relative areas corresponding to the same lesion category in the segmentation result to obtain the total area of the corresponding segmentation region; combining the total area of the segmentation region with the corresponding lesion category to obtain a matching array, for example: in the segmentation result, the segmentation areas corresponding to the pre-retinal hemorrhage lesion categories are a and B, the relative area corresponding to the segmentation area a is 10%, the relative area corresponding to the segmentation area B is 20%, the total area of the regions corresponding to the pre-retinal hemorrhage lesion categories is (10% + 20%) 30%, and the corresponding matching array is [ pre-retinal hemorrhage lesion, 30% ]; further, the embodiment of the present invention randomly combines all the matching arrays to obtain the feature information.
S4, grading the medical image to be graded by using a grading model to obtain a first grading result;
in detail, in the embodiment of the present invention, before the step of classifying the medical image to be classified by using the classification model to obtain the first classification result, the method further includes: carrying out preset grading label marking on the historical medical image set to obtain a second training image set; and performing iterative training on a pre-constructed second deep learning network model by using the second training image set to obtain the first hierarchical model. Optionally, the hierarchical label comprises: mild non-proliferative retinopathy, moderate non-proliferative retinopathy, severe non-proliferative retinopathy, proliferative retinopathy and normal fundus oculi.
Optionally, in this embodiment of the present invention, the second deep learning network model is a convolutional neural network model including a dense attention mechanism.
And S6, grading the characteristic information by using a second grading model to obtain a target grading result.
Optionally, in this embodiment of the present invention, the second hierarchical model is a random forest network model.
Further, in order to make the classification result more accurate, the embodiment of the present invention needs to correct the first classification result, and therefore, the embodiment of the present invention uses the target classification network model to classify the feature information to obtain the target classification result.
In detail, before the embodiment of the present invention utilizes the target hierarchical network to hierarchy the feature information, the method further includes: and constructing a random forest model by using the preset focus category label as a root node and using a preset relative area classification interval and a preset grading label as classification conditions to obtain the second grading model, wherein the grading label comprises five types, namely mild non-proliferative retinopathy, moderate non-proliferative retinopathy, severe non-proliferative retinopathy, proliferative retinopathy and normal fundus oculi, and the focus area classification interval can be set according to actual diagnosis experience, such as [0, 20% ], [ 20%, 40% ], [ 40%, 60%, 80% ], [ 80%, 100% ].
Further, in the embodiment of the present invention, the feature information and the first classification result are input to the second classification model to obtain the target classification result, for example: and if the first grading result is moderate non-proliferative retinopathy and the characteristic information is [ preretinal hemorrhage focus, 10% ], inputting the first grading result and the characteristic information into the second grading model to obtain a target grading result which is mild non-proliferative retinopathy.
Fig. 3 is a functional block diagram of the medical image grading apparatus according to the present invention.
The medicalimage ranking apparatus 100 according to the present invention may be installed in an electronic device. Depending on the implemented functions, the medical image classification apparatus may include afeature matching module 101, animage classification module 102, and aclassification correction module 103, which may also be referred to as a unit, and refer to a series of computer program segments capable of being executed by a processor of an electronic device and performing fixed functions, and stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
thefeature matching module 101 is configured to obtain a medical image to be classified, and perform feature extraction on the medical image to be classified by using a feature extraction network in a pre-constructed lesion detection model to obtain a feature map; carrying out classification identification and result statistics on the feature map to obtain a classification result; performing region segmentation and area calculation on the feature map by using a focus segmentation network in the focus detection model to obtain a segmentation result; performing feature matching on the classification result and the segmentation result to obtain feature information;
optionally, in an embodiment of the present invention, the medical image to be graded is a fundus color Doppler ultrasound image, and the lesion detection model includes: a feature extraction network, a focus classification network and a focus segmentation network. The feature extraction network is used for feature extraction, the focus classification network is used for focus classification, and the focus segmentation network is used for focus region segmentation.
In detail, in the embodiment of the present invention, thefeature matching module 101 performs a convolution pooling operation on the medical image to be classified by using an initial feature extraction network in the feature extraction network to obtain an initial feature map; and marking the interested region in the initial characteristic diagram by using the region extraction network in the characteristic extraction network to obtain the characteristic diagram.
Optionally, in this embodiment of the present invention, the initial feature extraction Network is a convolutional neural Network, and the Region extraction Network is an RPN (Region pro-potential Network).
Further, in the embodiment of the present invention, before the feature extracting the medical image to be ranked by using the feature extraction network in the lesion detection model, thefeature matching module 101 further includes: acquiring a historical medical image set, and carrying out preset label marking on the historical medical image set to obtain a first training image set; and performing iterative training on a pre-constructed first deep learning network model by using the first training image set to obtain the focus detection model. Wherein the historical medical image set comprises a plurality of historical medical images, and the historical medical images are medical images with the same content and different content with the type of the image to be graded.
In detail, thefeature matching module 101 according to the embodiment of the present invention performs preset label labeling on the historical medical image set to obtain a first training image set, including: performing focus region marking on a focus in each historical medical image in the historical medical image set to obtain a target region, and performing focus category marking on each target region in each historical medical image to obtain a first training image set; optionally, the preset lesion area comprises a microangioma area, a hemorrhage area, a sclerosmosis area, a cotton wool spot area, a laser spot area, a neovascular area, a vitreous hemorrhage area, a pre-retinal hemorrhage area, a fibromembranous area; the preset lesion category and the preset lesion area are in one-to-one correspondence, and the method comprises the following steps: microangioma focus, bleeding focus, hard infiltration focus, cotton wool spot focus, laser spot focus, neovascular focus, vitreous hemorrhage focus, pre-retinal hemorrhage focus, fibro-membranous focus, marking the region as laser spot focus if the target region is a laser spot region.
Further, the lesion detection model is trained by a first deep learning model, so that the first deep learning model and the lesion detection model have the same network structure, and therefore, the first deep learning model also includes: a feature extraction network, a focus classification network and a focus segmentation network.
In detail, in the embodiment of the present invention, thefeature matching module 101 performs iterative training on a pre-constructed first deep learning network model by using the first training image set to obtain the lesion detection model, where the first deep learning network model is a Mask-RCNN model, and includes:
step A: performing convolution pooling on each image in the first training image set by using a feature extraction network in the first deep learning network model, and performing region-of-interest marking on the image subjected to convolution pooling to obtain a historical feature map;
optionally, the feature extraction network in the embodiment of the present invention includes an initial feature extraction network and a regional extraction network; the initial feature extraction Network is a convolutional neural Network, and the Region extraction Network is an RPN (Region pro-social Network).
In detail, in the embodiment of the present invention, an initial feature extraction network is used for convolution pooling, and the region of interest is marked by using the region extraction network.
And B: performing boundary box marking prediction and classification prediction on the region of interest in the historical feature map by using a focus classification network in the first deep learning network model to obtain boundary box prediction coordinates and classification prediction values;
and C: obtaining a real coordinate of a boundary frame according to a focus area marked by a historical characteristic image corresponding to the historical characteristic image; obtaining a classification true value according to the focus category marked by the historical characteristic image corresponding to the historical characteristic image;
for example: the marked lesion class is a laser speckle lesion, and the classified true value of the corresponding laser speckle lesion is 1.
Step D: calculating by using a preset first loss function according to the classification predicted value and the classification true value to obtain a first loss value; and calculating by using a preset second loss function according to the real coordinate of the boundary box and the predicted coordinate of the boundary box to obtain a second loss function.
Optionally, in this embodiment of the present invention, the first loss function or the second loss function may be a cross-entropy loss function.
Optionally, the lesion segmentation network in the embodiment of the present invention includes a full link layer and a softmax network.
Step E: performing region segmentation prediction on the historical feature map by using a focus segmentation network in the first deep learning network model to obtain a total pixel number predicted value and a region edge pixel number predicted value corresponding to each region;
optionally, in an embodiment of the present invention, the lesion segmentation network is a full convolution network.
Step F: obtaining the true value of the total number of pixels of the corresponding region and the true value of the number of pixels at the edge of the region according to the lesion region marked by the historical characteristic image corresponding to the historical characteristic image;
step G: calculating by using a preset third loss function according to the predicted value of the total number of pixels and the predicted value of the number of the edge pixels of each area, and the real value of the total number of pixels and the real value of the number of the edge pixels of the corresponding area to obtain a third loss value; summing the first loss value, the second loss value and the third loss value to obtain a target loss value;
optionally, in this embodiment of the present invention, the third loss function is a cross entropy loss function.
Step H: and when the target loss value is greater than or equal to a preset loss threshold value, updating the first deep learning network model parameters, and returning to the step A until the target loss value is less than the preset loss threshold value, and stopping training to obtain the focus detection model.
In another embodiment of the invention, the medical image to be graded is stored in the blockchain node by utilizing the high throughput characteristic of the blockchain, so that the data access efficiency is improved.
In detail, in the embodiment of the present invention, thefeature matching module 101 performs bounding box labeling and classification on the feature map by using a lesion segmentation network in the lesion detection model, and summarizes the number of bounding boxes of the same category to obtain a classification result. For example: the feature map has A, B, C, D boundary frames in total, the boundary frame A is classified as a bleeding focus, the boundary frame B is a laser spot focus, the boundary frame C is a pre-retinal bleeding focus, and the boundary frame D is a bleeding focus, so that the number of the boundary frames of the same category is converged to obtain a classification result, the classification result is the bleeding focus, the two positions are the boundary frame A and the boundary frame D, 1 position of the laser spot focus is the boundary frame B, and one position of the pre-retinal bleeding focus is the boundary frame C.
In detail, in the embodiment of the present invention, thefeature matching module 101 performs region segmentation on the feature map by using a lesion segmentation network in the lesion detection model to obtain a plurality of segmentation regions, optionally, the lesion segmentation network in the embodiment of the present invention is a full convolution network, further, since the size difference of the segmentation regions corresponding to the images to be classified with different sizes is large, for comparison, a uniform comparison standard is required, an area ratio of each segmentation region to the medical image to be classified is calculated to obtain a corresponding relative area, and the relative area is not affected by the area change of the medical image to be classified; and summarizing all the segmentation areas and the corresponding relative areas of each segmentation area to obtain the segmentation result. For example: the segmentation result is that A, B, C, D total segmentation regions are 4 in the feature map, the A segmentation region is composed of 10 pixels, the medical image to be graded is composed of 100 pixels, and then the corresponding relative area of the A segmentation region is 10%.
In detail, thefeature matching module 101 of the embodiment of the present invention matches and associates the classification result with the segmentation result to obtain a lesion category corresponding to each relative area in the segmentation result.
Specifically, the classification result and the segmentation result are obtained from different branches in the same large model, and the positions of each bounding box and the segmentation region in the classification result are the same, for example, the classification result is a bleeding focus sharing one bounding box a, and the segmentation region a corresponding to the bounding box a, so that the focus class corresponding to the segmentation region a obtained by matching is the bleeding focus.
Further, thefeature matching module 101 of the embodiment of the present invention sums all the relative areas corresponding to the same lesion category in the segmentation result to obtain a total area of the corresponding segmentation region; combining the total area of the segmentation region with the corresponding lesion category to obtain a matching array, for example: in the segmentation result, the segmentation areas corresponding to the pre-retinal hemorrhage lesion categories are a and B, the relative area corresponding to the segmentation area a is 10%, the relative area corresponding to the segmentation area B is 20%, the total area of the regions corresponding to the pre-retinal hemorrhage lesion categories is (10% + 20%) 30%, and the corresponding matching array is [ pre-retinal hemorrhage lesion, 30% ]; further, the embodiment of the present invention randomly combines all the matching arrays to obtain the feature information.
Theimage grading module 102 is configured to grade the medical image to be graded by using a pre-constructed first grading model to obtain a first grading result;
in detail, in the embodiment of the present invention, theimage classification module 102 classifies the medical image to be classified by using a classification model, and before obtaining a first classification result, the method further includes: carrying out preset grading label marking on the historical medical image set to obtain a second training image set; and performing iterative training on a pre-constructed second deep learning network model by using the second training image set to obtain the first hierarchical model. Optionally, the hierarchical label comprises: mild non-proliferative retinopathy, moderate non-proliferative retinopathy, severe non-proliferative retinopathy, proliferative retinopathy and normal fundus oculi.
Optionally, in this embodiment of the present invention, the second deep learning network model is a convolutional neural network model including a dense attention mechanism.
Thehierarchical rectification module 103 is configured to perform hierarchical rectification on the feature information and the first hierarchical result by using a pre-constructed second hierarchical model to obtain a target hierarchical result.
Optionally, in this embodiment of the present invention, the second hierarchical model is a random forest network model.
Further, in order to make the classification result more accurate, the embodiment of the present invention needs to correct the first classification result, so that theclassification correction module 103 in the embodiment of the present invention classifies the feature information by using the target classification network model to obtain the target classification result.
In detail, before thehierarchical correction module 103 utilizes the target hierarchical network to grade the feature information, the method further includes: and constructing a random forest model by using the preset focus category label as a root node and using a preset relative area classification interval and a preset grading label as classification conditions to obtain the second grading model, wherein the grading label comprises five types, namely mild non-proliferative retinopathy, moderate non-proliferative retinopathy, severe non-proliferative retinopathy, proliferative retinopathy and normal fundus oculi, and the focus area classification interval can be set according to actual diagnosis experience, such as [0, 20% ], [ 20%, 40% ], [ 40%, 60%, 80% ], [ 80%, 100% ].
Further, in this embodiment of the present invention, thehierarchical correction module 103 inputs the feature information and the first hierarchical result into the second hierarchical model to obtain the target hierarchical result, for example: and if the first grading result is moderate non-proliferative retinopathy and the characteristic information is [ preretinal hemorrhage focus, 10% ], inputting the first grading result and the characteristic information into the second grading model to obtain a target grading result which is mild non-proliferative retinopathy.
Fig. 3 is a schematic structural diagram of an electronic device for implementing the medical image classification method according to the present invention.
The electronic device may comprise aprocessor 10, amemory 11, a communication bus 12 and acommunication interface 13, and may further comprise a computer program, such as a medical image rating program, stored in thememory 11 and executable on theprocessor 10.
Thememory 11 includes at least one type of readable storage medium, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. Thememory 11 may in some embodiments be an internal storage unit of the electronic device, for example a removable hard disk of the electronic device. Thememory 11 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device. Further, thememory 11 may also include both an internal storage unit and an external storage device of the electronic device. Thememory 11 may be used not only to store application software installed in the electronic device and various types of data, such as codes of a medical image rating program, etc., but also to temporarily store data that has been output or is to be output.
Theprocessor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. Theprocessor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the whole electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing programs or modules (e.g., medical image classification programs, etc.) stored in thememory 11 and calling data stored in thememory 11.
The communication bus 12 may be a PerIPheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The communication bus 12 is arranged to enable connection communication between thememory 11 and at least oneprocessor 10 or the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
Fig. 3 shows only an electronic device having components, and those skilled in the art will appreciate that the structure shown in fig. 3 does not constitute a limitation of the electronic device, and may include fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least oneprocessor 10 through a power management device, so that functions of charge management, discharge management, power consumption management and the like are realized through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Optionally, thecommunication interface 13 may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices.
Optionally, thecommunication interface 13 may further include a user interface, which may be a Display (Display), an input unit (such as a Keyboard (Keyboard)), and optionally, a standard wired interface, or a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The medical image rating program stored by thememory 11 in the electronic device is a combination of a plurality of computer programs which, when run in theprocessor 10, may implement:
acquiring a medical image to be classified, and performing feature extraction on the medical image to be classified by using a feature extraction network in a pre-constructed focus detection model to obtain a feature map;
carrying out classification identification and result statistics on the feature map to obtain a classification result;
performing region segmentation and area calculation on the feature map by using a focus segmentation network in the focus detection model to obtain a segmentation result;
performing feature matching on the classification result and the segmentation result to obtain feature information;
grading the medical image to be graded by using a pre-constructed first grading model to obtain a first grading result;
and carrying out grading correction on the characteristic information and the first grading result by utilizing a pre-constructed second grading model to obtain a target grading result.
Specifically, theprocessor 10 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the computer program, which is not described herein again.
Further, the electronic device integrated module/unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. The computer readable medium may be non-volatile or volatile. The computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
Embodiments of the present invention may also provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program may implement:
acquiring a medical image to be classified, and performing feature extraction on the medical image to be classified by using a feature extraction network in a pre-constructed focus detection model to obtain a feature map;
carrying out classification identification and result statistics on the feature map to obtain a classification result;
performing region segmentation and area calculation on the feature map by using a focus segmentation network in the focus detection model to obtain a segmentation result;
performing feature matching on the classification result and the segmentation result to obtain feature information;
grading the medical image to be graded by using a pre-constructed first grading model to obtain a first grading result;
and carrying out grading correction on the characteristic information and the first grading result by utilizing a pre-constructed second grading model to obtain a target grading result.
Further, the computer usable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.