WO2022126903A1 - Method and device for image anomaly area detection, electronic device, and storage medium - Google Patents
Method and device for image anomaly area detection, electronic device, and storage medium Download PDFInfo
- Publication number
- WO2022126903A1 WO2022126903A1 PCT/CN2021/083088 CN2021083088W WO2022126903A1 WO 2022126903 A1 WO2022126903 A1 WO 2022126903A1 CN 2021083088 W CN2021083088 W CN 2021083088W WO 2022126903 A1 WO2022126903 A1 WO 2022126903A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- abnormal
- coordinate frame
- pathological feature
- diagnosis
- Prior art date
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 125
- 238000000034 method Methods 0.000 title claims abstract description 45
- 230000001575 pathological effect Effects 0.000 claims abstract description 158
- 238000003745 diagnosis Methods 0.000 claims abstract description 111
- 238000000605 extraction Methods 0.000 claims abstract description 28
- 238000012549 training Methods 0.000 claims abstract description 22
- 238000010276 construction Methods 0.000 claims abstract description 12
- 230000002159 abnormal effect Effects 0.000 claims description 257
- 230000006870 function Effects 0.000 claims description 22
- 238000012545 processing Methods 0.000 claims description 17
- 238000013527 convolutional neural network Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 11
- 230000004913 activation Effects 0.000 claims description 5
- 230000004927 fusion Effects 0.000 claims description 5
- 238000011176 pooling Methods 0.000 claims description 5
- 210000004705 lumbosacral region Anatomy 0.000 claims description 4
- 230000009467 reduction Effects 0.000 claims description 4
- 238000005516 engineering process Methods 0.000 abstract description 6
- 238000013473 artificial intelligence Methods 0.000 abstract description 2
- 238000002591 computed tomography Methods 0.000 description 6
- 238000004422 calculation algorithm Methods 0.000 description 5
- 238000007726 management method Methods 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 239000003814 drug Substances 0.000 description 4
- 229940079593 drug Drugs 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 235000002566 Capsicum Nutrition 0.000 description 1
- 206010028980 Neoplasm Diseases 0.000 description 1
- 239000006002 Pepper Substances 0.000 description 1
- 235000016761 Piper aduncum Nutrition 0.000 description 1
- 235000017804 Piper guineense Nutrition 0.000 description 1
- 244000203593 Piper nigrum Species 0.000 description 1
- 235000008184 Piper nigrum Nutrition 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013135 deep learning Methods 0.000 description 1
- 201000010099 disease Diseases 0.000 description 1
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 150000003839 salts Chemical class 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000011426 transformation method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0012—Biomedical image inspection
- G06T7/0014—Biomedical image inspection using an image reference approach
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H30/00—ICT specially adapted for the handling or processing of medical images
- G16H30/40—ICT specially adapted for the handling or processing of medical images for processing medical images, e.g. editing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10072—Tomographic images
- G06T2207/10081—Computed x-ray tomography [CT]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20081—Training; Learning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20084—Artificial neural networks [ANN]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20112—Image segmentation details
- G06T2207/20132—Image cropping
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20212—Image combination
- G06T2207/20221—Image fusion; Image merging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30004—Biomedical image processing
- G06T2207/30096—Tumor; Lesion
Definitions
- the present application relates to the field of artificial intelligence, and in particular, to a method, device, electronic device, and computer-readable storage medium for detecting abnormal image areas.
- CT computed tomography
- the abnormal area detection of the tomographic image is used to track the dynamic changes of different tomographic images, which will lead to the low accuracy of the abnormal area detection in the image, and it is very difficult to complete the diagnosis of the disease by viewing the different tomographic images with the naked eye of the doctor. Inevitably there will be deviations in diagnostic results.
- a method for detecting an abnormal area in an image provided by this application is applied to the client of one of the participants participating in the federated learning, including:
- 3D image construction is performed on the abnormal area image to generate a 3D abnormal area image
- a sample alignment method is used to select shared samples from the pathological feature vector and the diagnosis and treatment result vector;
- the model gradient of the abnormal area detection model is updated according to the updated model gradient to obtain an updated abnormal area detection model, and the abnormal area detection model is used to detect the abnormal area of the image to be inspected.
- the present application also provides an image abnormal area detection device, the device includes:
- the positioning module is used for obtaining the diagnosis and treatment images and diagnosis and treatment results from the pre-built local database, and locating the abnormal area on the diagnosis and treatment image to obtain the abnormal area image;
- a building module for constructing a 3D image of the abnormal area image to generate a 3D abnormal area image
- an extraction module configured to perform feature extraction on the 3D abnormal image to obtain pathological features, and perform vectorization processing on the pathological features and diagnosis and treatment results, respectively, to obtain a pathological feature vector and a diagnosis and treatment result vector;
- a selection module used for using a sample alignment method to select shared samples from the pathological feature vector and the diagnosis and treatment result vector;
- a training module is used to train a pre-built abnormal region detection model using the shared sample to obtain an initial model gradient
- an update module configured to encrypt the initial model gradient and add noise, upload it to the server, and accept the updated model gradient returned by the server;
- the detection module is configured to update the model gradient of the abnormal area detection model according to the updated model gradient to obtain the updated abnormal area detection model, and use the updated abnormal area detection model to detect the abnormal area of the image to be inspected.
- the present application also provides an electronic device, the electronic device comprising:
- the memory stores computer program instructions executable by the at least one processor, and the computer program instructions are executed by the at least one processor to implement the image abnormal area detection method as described below:
- 3D image construction is performed on the abnormal area image to generate a 3D abnormal area image
- a sample alignment method is used to select shared samples from the pathological feature vector and the diagnosis and treatment result vector;
- the model gradient of the abnormal area detection model is updated according to the updated model gradient to obtain an updated abnormal area detection model, and the abnormal area detection model is used to detect the abnormal area of the image to be inspected.
- the present application also provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is executed by a processor in an electronic device to realize the abnormal image area as described below Detection method:
- 3D image construction is performed on the abnormal area image to generate a 3D abnormal area image
- a sample alignment method is used to select shared samples from the pathological feature vector and the diagnosis and treatment result vector;
- the model gradient of the abnormal area detection model is updated according to the updated model gradient to obtain an updated abnormal area detection model, and the abnormal area detection model is used to detect the abnormal area of the image to be inspected.
- FIG. 1 is a schematic flowchart of a method for detecting abnormal regions in an image provided by an embodiment of the present application
- FIG. 2 is a detailed schematic flowchart of one of the steps of the image abnormal area detection method provided in FIG. 1 in the first embodiment of the present application;
- FIG. 3 is a detailed flowchart of another step of the image abnormal area detection method provided in FIG. 1 in the first embodiment of the present application;
- FIG. 4 is a schematic block diagram of an image abnormal area detection apparatus provided by an embodiment of the present application.
- FIG. 5 is a schematic diagram of the internal structure of an electronic device for implementing a method for detecting abnormal image areas provided by an embodiment of the present application;
- Embodiments of the present application provide a method for detecting abnormal regions in an image.
- the execution subject of the image abnormal area detection method includes, but is not limited to, at least one of electronic devices that can be configured to execute the method provided by the embodiments of the present application, such as a server and a terminal.
- the image abnormal area detection method can be executed by software or hardware installed in a terminal device or a server device, and the software can 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.
- FIG. 1 a schematic flowchart of a method for detecting abnormal regions in an image provided by an embodiment of the present application is shown.
- the image abnormal area detection method is applied to the client of one of the participants participating in the federated learning, and includes:
- the local database includes a medical database
- the medical database is established by accessing a pre-authorized hospital background database.
- the medical database is an Oracle database.
- the medical database includes medical images and medical results.
- diagnosis and treatment images include: lumbar spine cross-sectional CT images, chest CT images, tumor images, etc.
- diagnosis and treatment results include: the diagnosis results made by the doctor for the patient's condition and the treatment plan (drug name, drug name, drug name, drug name, etc.) made by the doctor for the condition of the patient. mode of administration, dosage, frequency).
- the present application selects the abnormal area images by locating the abnormal areas in the diagnosis and treatment images.
- a fully convolutional neural network is used to predict the category of the pixel points of the diagnosis and treatment image to realize the location of abnormal regions.
- the fully convolutional neural network is Fully Convolutional Networks for Semantic Segmentation (FCN for short).
- the abnormal area location is performed on the diagnosis and treatment image to obtain the abnormal area image, including:
- the convolution layer performs a convolution operation on the image, which can realize image feature extraction.
- the convolution operation may be implemented by performing a convolution operation on the tensor of the medical image.
- the fusion layer in the fully convolutional neural network fuses the underlying features of the image into the extracted image features, which can reduce the influence on image grayscale changes caused by different gains.
- the underlying feature refers to the basic features of the diagnosis and treatment image, such as color, length, width, etc.
- the CSP Cross-Stage-Partial-connections, Partial connection across stages
- the activation function includes:
- s' represents the detection result of the target feature image
- s represents the target feature image
- the detection results include: x, y, height, width, category, etc., where x and y represent the center point of the target feature image, and the category represents whether the target feature image is an abnormal area, that is, Category 0 indicates that it is not an abnormal area, and category 1 indicates that the predicted area is an abnormal area. Therefore, in this embodiment of the present application, a target feature image of category 1 is selected as an abnormal area, so as to generate the abnormal area image.
- the present application generates a 3D abnormal area image by constructing a 3D image of the abnormal image, so as to track the position change of the abnormal area in the abnormal area image, and improve the effect of subsequent model training.
- the 3D image construction is realized by 3D medical image reconstruction software.
- the feature extraction is performed on the 3D abnormal image to obtain patient information of the corresponding patient, such as the position sequence of the damaged part of the patient, the severity information of the damaged part, and the like.
- the pathological features obtained by feature extraction on the 3D abnormal image include:
- the region coordinate frame of the 3D abnormal image is used to compare the pathological feature region coordinate frame manually marked in the 3D abnormal image with the subsequently predicted pathological feature prediction coordinate frame, so as to extract the corresponding pathological feature.
- the intersection ratio is used to indicate the degree of overlap between the predicted pathological feature prediction coordinate frame and the labeled pathological feature prediction coordinate frame.
- the present application performs three predictions of the pathological feature prediction coordinate frame on the 3D abnormal image to improve the follow-up. The accuracy of pathological feature extraction.
- the following method is used to calculate the first pathological feature prediction coordinate frame of the 3D abnormal image:
- T(r) represents the first pathological feature prediction coordinate frame
- r represents the image grayscale order of the 3D abnormal image
- the following method is used to calculate the first intersection ratio of the first pathological feature prediction coordinate frame and the region coordinate frame:
- DICE(A, B) represents the intersection ratio
- A represents the pathological feature prediction coordinate frame
- B represents the regional coordinates.
- the preset threshold is 0.7.
- the first pathological feature prediction coordinate frame, the second pathological feature prediction coordinate frame, and the third pathological feature prediction coordinate frame are cropped by an image cropping tool, and the image cropping tool includes: Photoshop tool.
- a histogram algorithm is used to extract the pathological feature from the third pathological feature image, and the histogram algorithm includes: a histogram of Oriented Gradient (HOG) algorithm.
- HOG histogram of Oriented Gradient
- the calculation method of the second pathological feature prediction coordinate frame and the third pathological feature prediction coordinate frame can refer to the calculation method of the above-mentioned first pathological feature prediction coordinate frame, and the second intersection ratio and the third intersection ratio are compared.
- the calculation method of please refer to the calculation method of the first cross-union ratio above.
- the preset first threshold, the preset second threshold and the preset third threshold are 0.5, 0.6 and 0.7 respectively.
- the Word2vec vector transformation method is used to perform vector transformation on the pathological feature and the diagnosis and treatment result to obtain a pathological feature vector and a diagnosis and treatment result vector, which are used to train an abnormal region detection model.
- a shared sample is selected from the pathological feature vector and the diagnosis and treatment result vector.
- the embodiment of the present application is based on the premise of protecting the privacy of different medical data, from the pathological feature vector and the diagnosis and treatment result vector have the same characteristics of the image and diagnosis and treatment results as shared samples, preferably, the application uses sample alignment technology, from The pathological feature vector and the diagnosis and treatment result vector select shared samples.
- sample alignment technology to obtain shared samples can align the sample numbers and time information, which is conducive to the accurate sharing of data between each participant participating in the federated training.
- the sample alignment technology belongs to the currently known technology, and will not be further elaborated here.
- the shared samples can also be stored in a blockchain node.
- the abnormal area detection model is constructed by using the VGG deep learning network, wherein the abnormal area detection model includes: a convolution layer, a pooling layer, a fully connected layer, and the like.
- the step S5 includes: using the convolution layer to perform feature extraction on the shared samples to obtain feature samples; using the pooling layer to reduce the dimension of the feature samples to obtain dimensional samples; using the The fully connected layer outputs the training value of the dimensionality reduction sample, and uses the loss function in the abnormal area detection model to calculate the loss value of the training value and the shared sample label value; according to the loss value, adjust the abnormality The model gradient of the region detection model, until the loss value is smaller than the preset threshold, obtains the initial model gradient of the abnormal region detection model.
- the model gradient is adjusted by a stochastic gradient descent algorithm.
- the initial model gradient has a certain degree of privacy
- the initial model gradient is encrypted and processed by adding noise, and then uploaded to the server to ensure that the initial model gradient is not stolen during the transmission process. And to avoid the problem of model data being leaked when updating the model.
- the initial model gradient encryption is encrypted according to the public key pre-set in the server, and the added noise is realized by salt and pepper noise.
- before the receiving the updated model gradient returned by the server includes: decrypting the initial model gradient by using the private key stored in the server to obtain the decrypted model gradient, and in the In the server, the gradient of the decryption model is weighted and averaged to obtain the gradient of the updated model.
- the server refers to a security server that is jointly trusted by multiple participants participating in the federation training. By sharing the model training gradient on the server, it can ensure that the local data of each participant is not stolen, effectively The privacy of local data is guaranteed.
- the initial model gradient of the abnormal area detection model is updated according to the updated model gradient returned by the server to obtain the updated abnormal area detection model, and the abnormal area detection model is used to detect the abnormal area of the image to be inspected.
- the image to be checked includes: a CT image of the lumbar spine
- the detection result includes: a fracture area and a treatment plan existing in the CT image of the lumbar spine.
- a diagnosis and treatment image and diagnosis and treatment results are obtained from a pre-built local database, an abnormal area is located on the diagnosis and treatment image to obtain an abnormal area image, and a 3D image is constructed on the abnormal area image to generate a 3D abnormal area.
- the embodiment of the present application performs feature extraction, vectorization processing and shared sample selection on the 3D abnormal image and the diagnosis and treatment results,
- the shared samples are obtained, which ensures the privacy between data, so that the data of the participants participating in the training can be well and reasonably shared;
- the embodiment of the present application uses the shared samples to train the pre-built abnormal area detection model, And use the trained abnormal area detection model to perform abnormal area detection on the image to be inspected to obtain a detection result. Therefore, the method for detecting abnormal areas in images proposed in this application can improve the accuracy of detecting abnormal areas in images.
- FIG. 4 it is a functional block diagram of the image abnormal area detection apparatus of the present application.
- the image abnormal area detection apparatus 100 described in this application may be installed in an electronic device.
- the image abnormal area detection apparatus may include a positioning module 101 , a construction module 102 , an extraction module 103 , a selection module 104 , a training module 105 , an update module 106 and a detection module 107 .
- the modules described in the present invention can also be called units, which refer to a series of computer program segments that can be executed by the electronic device processor and can perform fixed functions, and are stored in the memory of the electronic device.
- each module/unit is as follows:
- the positioning module 101 is configured to obtain the diagnosis and treatment images and diagnosis and treatment results from a pre-built local database, and to locate the abnormal area on the diagnosis and treatment image to obtain the abnormal area image;
- the construction module 102 is used to construct a 3D image of the abnormal area image to generate a 3D abnormal area image
- the extraction module 103 is configured to perform feature extraction on the 3D abnormal image to obtain pathological features, and perform vectorization processing on the pathological features and diagnosis and treatment results, respectively, to obtain a pathological feature vector and a diagnosis and treatment result vector;
- the selection module 104 is used to select a shared sample from the pathological feature vector and the diagnosis and treatment result vector by adopting a sample alignment method
- the training module 105 is configured to use the shared samples to train the pre-built abnormal region detection model to obtain an initial model gradient;
- the updating module 106 is configured to encrypt the initial model gradient and add noise processing, upload it to the server, and accept the updated model gradient returned by the server;
- the detection module 107 is configured to update the model gradient of the abnormal area detection model according to the updated model gradient to obtain an updated abnormal area detection model, and use the updated abnormal area detection model to detect abnormal areas in the image to be inspected.
- the modules in the image abnormal area detection apparatus 100 in the embodiments of the present application use the same technical means as the image abnormal area detection methods described in FIG. 1 to FIG. 3 , and can The same technical effect is produced, which is not repeated here.
- FIG. 5 it is a schematic structural diagram of an electronic device implementing the method for detecting abnormal image areas in the present application.
- the electronic device 1 may include a processor 10, a memory 11 and a bus, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as an abnormal image area detection program 12.
- the memory 11 includes at least one type of readable storage medium, and the readable storage medium may be volatile or non-volatile.
- the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (eg, SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like.
- the memory 11 may be an internal storage unit of the electronic device 1 , such as a mobile hard disk of the electronic device 1 .
- the memory 11 may also be an external storage device of the electronic device 1, such as a pluggable mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) equipped on the electronic device 1. card, flash memory card (FlashCard), etc. Further, the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 can not only be used to store application software installed in the electronic device 1 and various types of data, such as codes for detecting abnormal image areas, etc., but also can be used to temporarily store data that has been output or will be output.
- the processor 10 may be composed of integrated circuits, for example, may be composed of a single packaged integrated circuit, or may be composed of multiple integrated circuits packaged with the same function or different functions, including one or more integrated circuits.
- Central processing unit Central Processing unit, CPU
- microprocessor digital processing chip
- graphics processor and combination of various control chips, etc.
- the processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect the various components of the entire electronic device, by running or executing the program or module (for example, executing the image) stored in the memory 11. abnormal area detection, etc.), and call data stored in the memory 11 to perform various functions of the electronic device 1 and process data.
- the bus may be a peripheral component interconnect (PCI for short) bus or an extended industry standard architecture (extended industry standard architecture, EISA for short) bus or the like.
- PCI peripheral component interconnect
- EISA extended industry standard architecture
- the bus can be divided into address bus, data bus, control bus and so on.
- the bus is configured to implement connection communication between the memory 11 and at least one processor 10 and the like.
- FIG. 5 only shows an electronic device with components. Those skilled in the art can understand that the structure shown in FIG. 5 does not constitute a limitation on the electronic device 1, and may include fewer or more components than those shown in the drawings. components, or a combination of certain components, or a different arrangement of components.
- the electronic device 1 may also include a power supply (such as a battery) for powering the various components, preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so that the power management
- the device implements functions such as charge management, discharge management, and power consumption management.
- the power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and any other components.
- the electronic device 1 may further include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
- the electronic device 1 may also include a network interface, optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used in the electronic device 1 Establish a communication connection with other electronic devices.
- a network interface optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used in the electronic device 1 Establish a communication connection with other electronic devices.
- the electronic device 1 may further include a user interface, and the user interface may be a display (Display), an input unit (eg, a keyboard (Keyboard)), optionally, the user interface may also be a standard wired interface or a wireless interface.
- the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, and the like.
- the display may also be appropriately called a display screen or a display unit, which is used for displaying information processed in the electronic device 1 and for displaying a visualized user interface.
- the image abnormal area detection 12 stored in the memory 11 in the electronic device 1 is a combination of multiple instructions, and when running in the processor 10, can realize:
- 3D image construction is performed on the abnormal area image to generate a 3D abnormal area image
- a sample alignment method is used to select shared samples from the pathological feature vector and the diagnosis and treatment result vector;
- the model gradient of the abnormal area detection model is updated according to the updated model gradient to obtain an updated abnormal area detection model, and the abnormal area detection model is used to detect the abnormal area of the image to be inspected.
- the modules/units integrated in the electronic device 1 may be stored in a computer-readable storage medium.
- the computer-readable storage medium may be volatile or non-volatile.
- the computer-readable storage medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read Only Memory) -Only Memory).
- modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
- each functional module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
- the above-mentioned integrated units can be implemented in the form of hardware, or can be implemented in the form of hardware plus software function modules.
- the blockchain referred to in this application is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm.
- Blockchain essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information to verify its Validity of information (anti-counterfeiting) and generation of the next block.
- the blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Radiology & Medical Imaging (AREA)
- Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Quality & Reliability (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Epidemiology (AREA)
- Primary Health Care (AREA)
- Public Health (AREA)
- Image Analysis (AREA)
- Apparatus For Radiation Diagnosis (AREA)
Abstract
A method and device for image anomaly area detection, an electronic device, and a storage medium, related to the field of artificial intelligence. The method comprises: acquiring a diagnosis image and a diagnosis result from a local database, performing anomaly area positioning and 3D image construction with respect to diagnosis image to produce a 3D anomaly area image; performing feature extraction with respect to the 3D anomaly area image to produce a pathological feature, vectorizing the pathological feature and the diagnosis result and then selecting a shared sample therefrom; training an anomaly area detection model by utilizing the shared sample to produce an initial model gradient; uploading the initial model gradient to a server and receiving an updated model gradient returned by the server; and, by utilizing the anomaly area detection model updated on the basis of the updated model gradient, detecting for an anomaly area in an image to be inspected. Also related to the blockchain technology, the shared sample can be stored in a blockchain. The method increases the accuracy of image anomaly area detection.
Description
本申请要求于2020年12月18日提交中国专利局、申请号为202011508405.8,发明名称为“图像异常区域检测方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 18, 2020 with the application number 202011508405.8 and the invention title is "Image Abnormal Area Detection Method, Device, Electronic Device and Storage Medium", the entire content of which is approved by Reference is incorporated in this application.
本申请涉及人工智能领域,尤其涉及一种图像异常区域检测方法、装置、电子设备及计算机可读存储介质。The present application relates to the field of artificial intelligence, and in particular, to a method, device, electronic device, and computer-readable storage medium for detecting abnormal image areas.
发明人意识到,在医疗领域中,关于图像异常区域检测通常采用计算机断层扫描(CT)进行检测,但是,由于每名患者的断层扫描图像数量都多达几百张,往往需要逐层地对断层扫描图像进行异常区域检测,以跟踪不同断层扫描图像的动态变化,这样会导致图像异常区域检测的准确性不高,而且通过医生肉眼观看不同断层扫描图像图像来完成病情诊断的难度很高,不可避免的会存在诊断结果偏差现象。The inventor realized that, in the medical field, the detection of abnormal areas in images is usually performed by using computed tomography (CT). The abnormal area detection of the tomographic image is used to track the dynamic changes of different tomographic images, which will lead to the low accuracy of the abnormal area detection in the image, and it is very difficult to complete the diagnosis of the disease by viewing the different tomographic images with the naked eye of the doctor. Inevitably there will be deviations in diagnostic results.
另外,由于医疗数据的隐私性,相关法律法规的保护性,以及各机构之间的竞争性等原因,使得各个医院的医疗数据不能被合理的共享,从而也会影响医学图像中异常区域检测的准确性。In addition, due to the privacy of medical data, the protection of relevant laws and regulations, and the competitiveness of various institutions, the medical data of various hospitals cannot be reasonably shared, which will also affect the detection of abnormal areas in medical images. accuracy.
发明内容SUMMARY OF THE INVENTION
本申请提供的一种图像异常区域检测方法,所述方法应用于参与联邦学习的其中一个参与方的客户端中,包括:A method for detecting an abnormal area in an image provided by this application, the method is applied to the client of one of the participants participating in the federated learning, including:
从预先构建的本地数据库中获取诊疗图像及诊疗结果,对所述诊疗图像中的诊疗图像进行异常区域定位,得到异常区域图像;Obtaining diagnosis and treatment images and diagnosis and treatment results from a pre-built local database, and locating abnormal areas on the diagnosis and treatment images in the diagnosis and treatment images to obtain abnormal area images;
对所述异常区域图像进行3D图像构建,生成3D异常区域图像;3D image construction is performed on the abnormal area image to generate a 3D abnormal area image;
对所述3D异常图像进行特征提取得到病理特征,对所述病理特征及诊疗结果分别进行向量化处理,得到病理特征向量及诊疗结果向量;Perform feature extraction on the 3D abnormal image to obtain pathological features, and perform vectorization processing on the pathological features and diagnosis and treatment results, respectively, to obtain a pathological feature vector and a diagnosis and treatment result vector;
采用样本对齐方法,从所述病理特征向量和诊疗结果向量中选取共享样本;A sample alignment method is used to select shared samples from the pathological feature vector and the diagnosis and treatment result vector;
利用所述共享样本对预构建的异常区域检测模型进行训练,得到初始模型梯度;Use the shared samples to train the pre-built abnormal region detection model to obtain the initial model gradient;
将所述初始模型梯度加密并采取添加噪声处理后,上传至服务端,并接受服务端返回的更新模型梯度;After encrypting the initial model gradient and adding noise, upload it to the server, and accept the updated model gradient returned by the server;
根据所述更新模型梯度更新所述异常区域检测模型的模型梯度,得到更新异常区域检测模型,并利用所述更新异常区域检测模型对待检查图像进行异常区域的检测。The model gradient of the abnormal area detection model is updated according to the updated model gradient to obtain an updated abnormal area detection model, and the abnormal area detection model is used to detect the abnormal area of the image to be inspected.
本申请还提供一种图像异常区域检测装置,所述装置包括:The present application also provides an image abnormal area detection device, the device includes:
定位模块,用于从预先构建的本地数据库中获取诊疗图像及诊疗结果,对所述诊疗图像进行异常区域定位,得到异常区域图像;The positioning module is used for obtaining the diagnosis and treatment images and diagnosis and treatment results from the pre-built local database, and locating the abnormal area on the diagnosis and treatment image to obtain the abnormal area image;
构建模块,用于对所述异常区域图像进行3D图像构建,生成3D异常区域图像;a building module for constructing a 3D image of the abnormal area image to generate a 3D abnormal area image;
提取模块,用于对所述3D异常图像进行特征提取得到病理特征,对所述病理特征及诊疗结果分别进行向量化处理,得到病理特征向量及诊疗结果向量;an extraction module, configured to perform feature extraction on the 3D abnormal image to obtain pathological features, and perform vectorization processing on the pathological features and diagnosis and treatment results, respectively, to obtain a pathological feature vector and a diagnosis and treatment result vector;
选取模块,用于采用样本对齐方法,从所述病理特征向量和诊疗结果向量中选取共享样本;a selection module, used for using a sample alignment method to select shared samples from the pathological feature vector and the diagnosis and treatment result vector;
训练模块,用于利用所述共享样本对预构建的异常区域检测模型进行训练,得到初始 模型梯度;A training module is used to train a pre-built abnormal region detection model using the shared sample to obtain an initial model gradient;
更新模块,用于将所述初始模型梯度加密并采取添加噪声处理后,上传至服务端,并接受服务端返回的更新模型梯度;an update module, configured to encrypt the initial model gradient and add noise, upload it to the server, and accept the updated model gradient returned by the server;
检测模块,用于根据所述更新模型梯度更新所述异常区域检测模型的模型梯度,得到更新异常区域检测模型,并利用所述更新异常区域检测模型对待检查图像进行异常区域的检测。The detection module is configured to update the model gradient of the abnormal area detection model according to the updated model gradient to obtain the updated abnormal area detection model, and use the updated abnormal area detection model to detect the abnormal area of the image to be inspected.
本申请还提供一种电子设备,所述电子设备包括:The present application also provides an electronic device, the electronic device comprising:
至少一个处理器;以及,at least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的计算机程序指令,所述计算机程序指令被所述至少一个处理器执行,以实现如下所述的图像异常区域检测方法:The memory stores computer program instructions executable by the at least one processor, and the computer program instructions are executed by the at least one processor to implement the image abnormal area detection method as described below:
从预先构建的本地数据库中获取诊疗图像及诊疗结果,对所述诊疗图像中的诊疗图像进行异常区域定位,得到异常区域图像;Obtaining diagnosis and treatment images and diagnosis and treatment results from a pre-built local database, and locating abnormal areas on the diagnosis and treatment images in the diagnosis and treatment images to obtain abnormal area images;
对所述异常区域图像进行3D图像构建,生成3D异常区域图像;3D image construction is performed on the abnormal area image to generate a 3D abnormal area image;
对所述3D异常图像进行特征提取得到病理特征,对所述病理特征及诊疗结果分别进行向量化处理,得到病理特征向量及诊疗结果向量;Perform feature extraction on the 3D abnormal image to obtain pathological features, and perform vectorization processing on the pathological features and diagnosis and treatment results, respectively, to obtain a pathological feature vector and a diagnosis and treatment result vector;
采用样本对齐方法,从所述病理特征向量和诊疗结果向量中选取共享样本;A sample alignment method is used to select shared samples from the pathological feature vector and the diagnosis and treatment result vector;
利用所述共享样本对预构建的异常区域检测模型进行训练,得到初始模型梯度;Use the shared samples to train the pre-built abnormal region detection model to obtain the initial model gradient;
将所述初始模型梯度加密并采取添加噪声处理后,上传至服务端,并接受服务端返回的更新模型梯度;After encrypting the initial model gradient and adding noise, upload it to the server, and accept the updated model gradient returned by the server;
根据所述更新模型梯度更新所述异常区域检测模型的模型梯度,得到更新异常区域检测模型,并利用所述更新异常区域检测模型对待检查图像进行异常区域的检测。The model gradient of the abnormal area detection model is updated according to the updated model gradient to obtain an updated abnormal area detection model, and the abnormal area detection model is used to detect the abnormal area of the image to be inspected.
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一个计算机程序,所述至少一个计算机程序被电子设备中的处理器执行以实现如下所述的图像异常区域检测方法:The present application also provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is executed by a processor in an electronic device to realize the abnormal image area as described below Detection method:
从预先构建的本地数据库中获取诊疗图像及诊疗结果,对所述诊疗图像中的诊疗图像进行异常区域定位,得到异常区域图像;Obtaining diagnosis and treatment images and diagnosis and treatment results from a pre-built local database, and locating abnormal areas on the diagnosis and treatment images in the diagnosis and treatment images to obtain abnormal area images;
对所述异常区域图像进行3D图像构建,生成3D异常区域图像;3D image construction is performed on the abnormal area image to generate a 3D abnormal area image;
对所述3D异常图像进行特征提取得到病理特征,对所述病理特征及诊疗结果分别进行向量化处理,得到病理特征向量及诊疗结果向量;Perform feature extraction on the 3D abnormal image to obtain pathological features, and perform vectorization processing on the pathological features and diagnosis and treatment results, respectively, to obtain a pathological feature vector and a diagnosis and treatment result vector;
采用样本对齐方法,从所述病理特征向量和诊疗结果向量中选取共享样本;A sample alignment method is used to select shared samples from the pathological feature vector and the diagnosis and treatment result vector;
利用所述共享样本对预构建的异常区域检测模型进行训练,得到初始模型梯度;Use the shared samples to train the pre-built abnormal region detection model to obtain the initial model gradient;
将所述初始模型梯度加密并采取添加噪声处理后,上传至服务端,并接受服务端返回的更新模型梯度;After encrypting the initial model gradient and adding noise, upload it to the server, and accept the updated model gradient returned by the server;
根据所述更新模型梯度更新所述异常区域检测模型的模型梯度,得到更新异常区域检测模型,并利用所述更新异常区域检测模型对待检查图像进行异常区域的检测。The model gradient of the abnormal area detection model is updated according to the updated model gradient to obtain an updated abnormal area detection model, and the abnormal area detection model is used to detect the abnormal area of the image to be inspected.
图1为本申请一实施例提供的图像异常区域检测方法的流程示意图;FIG. 1 is a schematic flowchart of a method for detecting abnormal regions in an image provided by an embodiment of the present application;
图2为本申请第一实施例中图1提供的图像异常区域检测方法其中一个步骤的详细流程示意图;FIG. 2 is a detailed schematic flowchart of one of the steps of the image abnormal area detection method provided in FIG. 1 in the first embodiment of the present application;
图3为本申请第一实施例中图1提供的图像异常区域检测方法另外一个步骤的详细流程示意图;FIG. 3 is a detailed flowchart of another step of the image abnormal area detection method provided in FIG. 1 in the first embodiment of the present application;
图4为本申请一实施例提供的图像异常区域检测装置的模块示意图;FIG. 4 is a schematic block diagram of an image abnormal area detection apparatus provided by an embodiment of the present application;
图5为本申请一实施例提供的实现图像异常区域检测方法的电子设备的内部结构示意 图;5 is a schematic diagram of the internal structure of an electronic device for implementing a method for detecting abnormal image areas provided by an embodiment of the present application;
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the purpose of the present application will be further described with reference to the accompanying drawings in conjunction with the embodiments.
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
本申请实施例提供一种图像异常区域检测方法。所述图像异常区域检测方法的执行主体包括但不限于服务端、终端等能够被配置为执行本申请实施例提供的该方法的电子设备中的至少一种。换言之,所述图像异常区域检测方法可以由安装在终端设备或服务端设备的软件或硬件来执行,所述软件可以是区块链平台。所述服务端包括但不限于:单台服务器、服务器集群、云端服务器或云端服务器集群等。参照图1所示的本申请一实施例提供的图像异常区域检测方法的流程示意图。在本申请实施例中,所述图像异常区域检测方法应用于参与联邦学习的其中一个参与方的客户端中,并包括:Embodiments of the present application provide a method for detecting abnormal regions in an image. The execution subject of the image abnormal area detection method includes, but is not limited to, at least one of electronic devices that can be configured to execute the method provided by the embodiments of the present application, such as a server and a terminal. In other words, the image abnormal area detection method can be executed by software or hardware installed in a terminal device or a server device, and the software can 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 FIG. 1 , a schematic flowchart of a method for detecting abnormal regions in an image provided by an embodiment of the present application is shown. In the embodiment of the present application, the image abnormal area detection method is applied to the client of one of the participants participating in the federated learning, and includes:
S1、从预先构建的本地数据库中获取诊疗图像及诊疗结果,对所述诊疗图像进行异常区域定位,得到异常区域图像。S1. Acquire a diagnosis and treatment image and a diagnosis and treatment result from a pre-built local database, and locate an abnormal area on the diagnosis and treatment image to obtain an abnormal area image.
本申请实施例中,所述本地数据库包括医疗数据库,所述医疗数据库通过访问预先授权的医院后台数据库建立,优选地,所述医疗数据库为Oracle数据库,进一步地,本申请实施例中,所述医疗数据库包括诊疗图像和诊疗结果。In the embodiment of the present application, the local database includes a medical database, and the medical database is established by accessing a pre-authorized hospital background database. Preferably, the medical database is an Oracle database. Further, in the embodiment of the present application, the medical database The medical database includes medical images and medical results.
其中,所述诊疗图像包括:腰椎横断面CT图像、胸部CT图像以及肿瘤图像等,所述诊疗结果包括:医生针对患者病情做出的诊断结果和医生针对病情做出的治疗方案(药物名称、用药方式、剂量、频率)。Wherein, the diagnosis and treatment images include: lumbar spine cross-sectional CT images, chest CT images, tumor images, etc., and the diagnosis and treatment results include: the diagnosis results made by the doctor for the patient's condition and the treatment plan (drug name, drug name, drug name, drug name, etc.) made by the doctor for the condition of the patient. mode of administration, dosage, frequency).
进一步地,由于所述诊疗图像存在异常区域和非异常区域,本申请通过对所述诊疗图像进行异常区域定位,以筛选出异常区域图像。可选地,本申请实施例中,通过全卷积神经网络预测所述诊疗图像的像素点的类别,实现异常区域定位,可选地,所述全卷积神经网络为FullyConvolutionalNetworksforSemanticSegmentation(简称FCN)。Further, since there are abnormal areas and non-abnormal areas in the diagnosis and treatment images, the present application selects the abnormal area images by locating the abnormal areas in the diagnosis and treatment images. Optionally, in the embodiment of the present application, a fully convolutional neural network is used to predict the category of the pixel points of the diagnosis and treatment image to realize the location of abnormal regions. Optionally, the fully convolutional neural network is Fully Convolutional Networks for Semantic Segmentation (FCN for short).
详细地,参阅图2所示,所述对所述诊疗图像进行异常区域定位,得到异常区域图像,包括:In detail, as shown in FIG. 2 , the abnormal area location is performed on the diagnosis and treatment image to obtain the abnormal area image, including:
S10、利用全卷积神经网络中的卷积层对每个所述诊疗图像进行卷积操作,得到特征诊疗图像;S10, using the convolution layer in the fully convolutional neural network to perform a convolution operation on each of the diagnosis and treatment images to obtain a characteristic diagnosis and treatment image;
S11、利用所述全卷积神经网络中的融合层对诊疗图像的底层特征与所述特征诊疗图像进行融合,得到目标特征图像;S11, using the fusion layer in the fully convolutional neural network to fuse the underlying features of the diagnosis and treatment image with the characteristic diagnosis and treatment image to obtain a target characteristic image;
S12、利用所述全卷积神经网络中的激活函数输出所述目标特征图像的检测结果,并根据所述检测结果,选取所述目标特征图像的异常区域,得到异常区域图像。S12. Use the activation function in the fully convolutional neural network to output the detection result of the target feature image, and select an abnormal region of the target feature image according to the detection result to obtain an abnormal region image.
本申请实施例中,所述卷积层对图像进行卷积操作,可以实现图像特征提取。可选的所述卷积操作可以是通过对诊疗图像的张量进行卷积操作实现。In the embodiment of the present application, the convolution layer performs a convolution operation on the image, which can realize image feature extraction. Optionally, the convolution operation may be implemented by performing a convolution operation on the tensor of the medical image.
所述全卷积神经网络中的融合层将图像的底层特征融合至提取的图像特征中,可以减小对不同增益引起的图像灰度变化影响。所述底层特征指的是所述诊疗图像的基本特征,例如、颜色、长度、宽度等,较佳地,本申请实施例中通过所述融合层中的CSP(Cross-Stage-Partial-connections,跨阶段部分连接)模块实现。The fusion layer in the fully convolutional neural network fuses the underlying features of the image into the extracted image features, which can reduce the influence on image grayscale changes caused by different gains. The underlying feature refers to the basic features of the diagnosis and treatment image, such as color, length, width, etc. Preferably, in the embodiment of the present application, the CSP (Cross-Stage-Partial-connections, Partial connection across stages) module implementation.
本申请其中一个可选实施例中,所述激活函数包括:In an optional embodiment of the present application, the activation function includes:
其中,s′表示目标特征图像的检测结果,s表示目标特征图像。Among them, s' represents the detection result of the target feature image, and s represents the target feature image.
进一步地,本申请实施例中,所述检测结果包括:x、y、高、宽以及类别等,其中,x、y表示目标特征图像的中心点,类别表示目标特征图像是否为异常区域,即类别0表示不是异常区域,类别1表示预测区域是异常区域,于是,本申请实施例选取类别为1的目 标特征图像作为异常区域,从而生成所述异常区域图像。Further, in the embodiment of the present application, the detection results include: x, y, height, width, category, etc., where x and y represent the center point of the target feature image, and the category represents whether the target feature image is an abnormal area, that is, Category 0 indicates that it is not an abnormal area, and category 1 indicates that the predicted area is an abnormal area. Therefore, in this embodiment of the present application, a target feature image of category 1 is selected as an abnormal area, so as to generate the abnormal area image.
S2、对所述异常区域图像进行3D图像构建,生成3D异常区域图像。S2. Perform 3D image construction on the abnormal area image to generate a 3D abnormal area image.
由于所述异常区域图像中异常区域图像所处位置不同,若对所述异常区域图像进行逐一观察,容易带来较大的时间成本,同时,也不利于跟踪所述异常区域图像的异常区域位置变化,从而会影响后续模型的训练效果,例如,患者A的诊疗图像中存在100张异常区域图像,若对100张异常区域图像进行逐一观察,带来极大的时间成本,同时也很难跟踪到100张异常区域图像的异常区域位置变化情况。因此,本申请通过对所述异常图像进行3D图像构建,生成3D异常区域图像,以跟踪所述异常区域图像的异常区域位置变化,提高后续模型训练效果。Due to the different positions of the abnormal area images in the abnormal area images, if the abnormal area images are observed one by one, it is easy to bring a large time cost, and at the same time, it is not conducive to tracking the abnormal area positions of the abnormal area images. changes, which will affect the training effect of the subsequent model. For example, there are 100 images of abnormal areas in the diagnosis and treatment images of patient A. If the 100 images of abnormal areas are observed one by one, it will bring a great time cost, and it is also difficult to track Changes in the position of the abnormal area to 100 abnormal area images. Therefore, the present application generates a 3D abnormal area image by constructing a 3D image of the abnormal image, so as to track the position change of the abnormal area in the abnormal area image, and improve the effect of subsequent model training.
本申请较佳实施中,所述3D图像构建通过三维医学影像重建软件实现。In a preferred implementation of the present application, the 3D image construction is realized by 3D medical image reconstruction software.
S3、对所述3D异常图像进行特征提取得到病理特征,对所述病理特征及诊疗结果分别进行向量化处理,得到病理特征向量及诊疗结果向量。S3. Perform feature extraction on the 3D abnormal image to obtain pathological features, and perform vectorization processing on the pathological features and diagnosis and treatment results, respectively, to obtain a pathological feature vector and a diagnosis and treatment result vector.
本申请实施例通过对所述3D异常图像进行特征提取,以获取对应患者的患者信息,比如患者的受损部位的位置序列、受损部位的严重程度信息等。In the embodiment of the present application, the feature extraction is performed on the 3D abnormal image to obtain patient information of the corresponding patient, such as the position sequence of the damaged part of the patient, the severity information of the damaged part, and the like.
详细地,参阅图3所示,所述对所述3D异常图像进行特征提取得到病理特征,包括:In detail, as shown in FIG. 3 , the pathological features obtained by feature extraction on the 3D abnormal image include:
S20、获取所述3D异常图像的区域坐标框,即标签值;S20, obtaining the regional coordinate frame of the 3D abnormal image, that is, the label value;
S21、计算所述3D异常图像的第一病理特征预测坐标框,并计算所述第一病理特征预测坐标框与所述区域坐标框的第一交并比,筛选出所述第一交并比大于预设第一阈值的第一病理特征预测坐标框,对筛选的所述第一病理特征预测坐标框进行裁剪,得到第一病理特征图像;S21. Calculate the first pathological feature prediction coordinate frame of the 3D abnormal image, and calculate the first intersection ratio between the first pathological feature prediction coordinate frame and the region coordinate frame, and filter out the first intersection ratio A first pathological feature prediction coordinate frame larger than a preset first threshold is cropped, and a first pathological feature image is obtained by cropping the screened first pathological feature prediction coordinate frame;
S22、计算所述第一病理特征图像的第二病理特征预测坐标框,并计算所述第二病理特征预测坐标框与所述区域坐标框的第二交并比,筛选出所述第二交并比大于预设第二阈值的第二病理特征预测坐标框,对筛选的所述第二病理特征预测坐标框进行裁剪,得到第二病理特征图像;S22. Calculate the second pathological feature prediction coordinate frame of the first pathological feature image, and calculate the second intersection ratio between the second pathological feature prediction coordinate frame and the region coordinate frame, and filter out the second intersection and comparing the second pathological feature prediction coordinate frame larger than the preset second threshold, cropping the screened second pathological feature prediction coordinate frame to obtain a second pathological feature image;
S23、计算所述第二病理特征图像的第三病理特征预测坐标框,并计算所述第三病理特征预测坐标框与所述区域坐标框的第三交并比,筛选出所述第三交并比大于预设第三阈值的第三病理特征预测坐标框,对筛选的所述第三病理特征预测坐标框进行裁剪,得到第三病理特征图像;S23. Calculate a third pathological feature prediction coordinate frame of the second pathological feature image, and calculate a third intersection ratio between the third pathological feature prediction coordinate frame and the region coordinate frame, and filter out the third intersection and comparing a third pathological feature prediction coordinate frame larger than a preset third threshold, cropping the screened third pathological feature prediction coordinate frame to obtain a third pathological feature image;
S24、从所述第三病理特征图像中提取出病理特征。S24. Extract pathological features from the third pathological feature image.
其中,所述3D异常图像的区域坐标框通过人为在所述3D异常图像中进行标注的病理特征区域坐标框,用于和后续预测出的病理特征预测坐标框进行对比,从而提取出相应的病理特征,所述交并比用于表示预测的病理特征预测坐标框与标注的病理特征预测坐标框的重叠程度,本申请通过对3D异常图像进行3次病理特征预测坐标框的预测,以提高后续病理特征提取的准确性。Wherein, the region coordinate frame of the 3D abnormal image is used to compare the pathological feature region coordinate frame manually marked in the 3D abnormal image with the subsequently predicted pathological feature prediction coordinate frame, so as to extract the corresponding pathological feature. Features, the intersection ratio is used to indicate the degree of overlap between the predicted pathological feature prediction coordinate frame and the labeled pathological feature prediction coordinate frame. The present application performs three predictions of the pathological feature prediction coordinate frame on the 3D abnormal image to improve the follow-up. The accuracy of pathological feature extraction.
本申请其中一个可选实施例中,利用下述方法计算所述3D异常图像的第一病理特征预测坐标框:In an optional embodiment of the present application, the following method is used to calculate the first pathological feature prediction coordinate frame of the 3D abnormal image:
其中,T(r)表示第一病理特征预测坐标框,r表示3D异常图像的图像灰度阶数,P
r(r)灰度概率密度函数。
Among them, T(r) represents the first pathological feature prediction coordinate frame, r represents the image grayscale order of the 3D abnormal image, and P r (r) grayscale probability density function.
本申请其中一个可选实施例中,利用下述方法计算所述第一病理特征预测坐标框与所述区域坐标框的第一交并比:In one of the optional embodiments of the present application, the following method is used to calculate the first intersection ratio of the first pathological feature prediction coordinate frame and the region coordinate frame:
其中,DICE(A,B)表示交并比,A表示病理特征预测坐标框,B表示区域坐标。可选的,所述预设阈值为0.7。Among them, DICE(A, B) represents the intersection ratio, A represents the pathological feature prediction coordinate frame, and B represents the regional coordinates. Optionally, the preset threshold is 0.7.
本申请其中一个可选实施例中,所述第一病理特征预测坐标框、第二病理特征预测坐标框及第三病理特征预测坐标框通过图像裁剪工具进行裁剪,所述图像裁剪工具包括:Photoshop工具。In an optional embodiment of the present application, the first pathological feature prediction coordinate frame, the second pathological feature prediction coordinate frame, and the third pathological feature prediction coordinate frame are cropped by an image cropping tool, and the image cropping tool includes: Photoshop tool.
本申请其中一个可选实施例中,利用直方图算法从所述第三病理特征图像中提取出病理特征,所述直方图算法包括:方向梯度直方图(histogramofOrientedGradient,HOG)算法。In an optional embodiment of the present application, a histogram algorithm is used to extract the pathological feature from the third pathological feature image, and the histogram algorithm includes: a histogram of Oriented Gradient (HOG) algorithm.
进一步地,所述第二病理特征预测坐标框和第三病理特征预测坐标框的计算方法可以参阅上述第一病理特征预测坐标框的计算方法,所述第二交并比和第三交并比的计算方法可以参阅上述第一交并比的计算方法。可选的,所述预设第一阈值、预设第二阈值以及预设第三阈值分别为0.5、0.6以及0.7。Further, the calculation method of the second pathological feature prediction coordinate frame and the third pathological feature prediction coordinate frame can refer to the calculation method of the above-mentioned first pathological feature prediction coordinate frame, and the second intersection ratio and the third intersection ratio are compared. For the calculation method of , please refer to the calculation method of the first cross-union ratio above. Optionally, the preset first threshold, the preset second threshold and the preset third threshold are 0.5, 0.6 and 0.7 respectively.
进一步地,本申请实施例采用Word2vec向量转换法将所述病理特征和所述诊疗结果进行向量转化,得到病理特征向量和诊疗结果向量,用于训练异常区域检测模型。Further, in the embodiment of the present application, the Word2vec vector transformation method is used to perform vector transformation on the pathological feature and the diagnosis and treatment result to obtain a pathological feature vector and a diagnosis and treatment result vector, which are used to train an abnormal region detection model.
S4、采用样本对齐方法,从所述病理特征向量和诊疗结果向量选取共享样本。S4. Using a sample alignment method, a shared sample is selected from the pathological feature vector and the diagnosis and treatment result vector.
本申请实施例基于在保护不同医疗数据的隐私前提下,从所述所述病理特征向量和诊疗结果向量具有相同特征的图像及诊疗结果作为共享样本,优选地,本申请采用样本对齐技术,从所述病理特征向量和诊疗结果向量选取共享样本。使用样本对齐技术得到共享样本,可以使样本编号和时间信息等对齐,从而有利于参与联邦训练的每个参与方之间实现数据的准确共享。其中,所述样本对齐技术属于当前已知的技术,在此不做进一步地阐述。The embodiment of the present application is based on the premise of protecting the privacy of different medical data, from the pathological feature vector and the diagnosis and treatment result vector have the same characteristics of the image and diagnosis and treatment results as shared samples, preferably, the application uses sample alignment technology, from The pathological feature vector and the diagnosis and treatment result vector select shared samples. Using the sample alignment technology to obtain shared samples can align the sample numbers and time information, which is conducive to the accurate sharing of data between each participant participating in the federated training. Wherein, the sample alignment technology belongs to the currently known technology, and will not be further elaborated here.
进一步地,需要强调的是,为保障所述共享样本的复用性,所述共享样本还可存储于一区块链节点中。Further, it should be emphasized that, in order to ensure the reusability of the shared samples, the shared samples can also be stored in a blockchain node.
S5、利用所述共享样本对预构建的异常区域检测模型进行训练,得到初始模型梯度。S5. Use the shared samples to train the pre-built abnormal region detection model to obtain an initial model gradient.
本申请实施例中,所述异常区域检测模型通过VGG深度学习网络构建,其中,所述异常区域检测模型包括:卷积层、池化层以及全连接层等。In the embodiment of the present application, the abnormal area detection model is constructed by using the VGG deep learning network, wherein the abnormal area detection model includes: a convolution layer, a pooling layer, a fully connected layer, and the like.
进一步地,所述S5包括:利用所述卷积层对所述共享样本进行特征提取,得到特征样本;利用所述池化层对所述特征样本进行降维,得到降维样本;利用所述全连接层输出所述降维样本的训练值,利用所述异常区域检测模型中的损失函数计算所述训练值与所述共享样本标签值的损失值;根据所述损失值,调整所述异常区域检测模型的模型梯度,直至所述损失值小于预设阈值时,得到所述异常区域检测模型的初始模型梯度。Further, the step S5 includes: using the convolution layer to perform feature extraction on the shared samples to obtain feature samples; using the pooling layer to reduce the dimension of the feature samples to obtain dimensional samples; using the The fully connected layer outputs the training value of the dimensionality reduction sample, and uses the loss function in the abnormal area detection model to calculate the loss value of the training value and the shared sample label value; according to the loss value, adjust the abnormality The model gradient of the region detection model, until the loss value is smaller than the preset threshold, obtains the initial model gradient of the abnormal region detection model.
一个可选实施例中,所述模型梯度通过随机梯度下降算法进行调整。In an optional embodiment, the model gradient is adjusted by a stochastic gradient descent algorithm.
S6、将所述初始模型梯度加密并采取添加噪声处理后,上传至服务端,并接受服务端返回的更新模型梯度。S6. After encrypting the initial model gradient and adding noise, upload it to the server, and accept the updated model gradient returned by the server.
由于所述初始模型梯度具有一定的隐私性,于是本申请实施例对所述初始模型梯度加密并采取添加噪声处理后,上传至服务端,以保障所述初始模型梯度在传输过程中不被窃取以及避免在更新模型时模型数据被泄露的问题。Since the initial model gradient has a certain degree of privacy, in this embodiment of the present application, the initial model gradient is encrypted and processed by adding noise, and then uploaded to the server to ensure that the initial model gradient is not stolen during the transmission process. And to avoid the problem of model data being leaked when updating the model.
其中,所述初始模型梯度加密根据预先在服务端中设置的公钥进行加密,所述添加噪声通过椒盐噪声实现。Wherein, the initial model gradient encryption is encrypted according to the public key pre-set in the server, and the added noise is realized by salt and pepper noise.
进一步地,本申请实施例中,所述接受服务端返回的更新模型梯度之前包括:利用所述服务端中存储的私钥,对所述初始模型梯度进行解密,得到解密模型梯度,在所述服务端中对所述解密模型梯度进行加权平均,得到更新模型梯度。Further, in the embodiment of the present application, before the receiving the updated model gradient returned by the server includes: decrypting the initial model gradient by using the private key stored in the server to obtain the decrypted model gradient, and in the In the server, the gradient of the decryption model is weighted and averaged to obtain the gradient of the updated model.
其中,所述服务端指的是参与联邦训练的多个参与方共同信任的一个安全服务端,通过在服务端进行模型训练梯度的共享,可以保证各个参与方本地数据的不被窃取,有效的保障了本地数据的隐私性。Among them, the server refers to a security server that is jointly trusted by multiple participants participating in the federation training. By sharing the model training gradient on the server, it can ensure that the local data of each participant is not stolen, effectively The privacy of local data is guaranteed.
S7、根据所述更新模型梯度更新所述异常区域检测模型的模型梯度,得到更新异常区 域检测模型,并利用所述更新异常区域检测模型对待检查图像进行异常区域的检测。S7, update the model gradient of the abnormal area detection model according to the updated model gradient, obtain the updated abnormal area detection model, and utilize the updated abnormal area detection model to detect the abnormal area of the image to be inspected.
本申请实施例中,根据服务端返回的更新模型梯度,更新所述异常区域检测模型的初始模型梯度,得到更新异常区域检测模型,并利用所述更新异常区域检测模型对待检查图像进行异常区域检测,得到检测结果,其中,所述待检查图像包括:腰椎CT图像,所述检测检测结果包括:腰椎CT图像中存在的骨折区域和治疗方案等。In the embodiment of the present application, the initial model gradient of the abnormal area detection model is updated according to the updated model gradient returned by the server to obtain the updated abnormal area detection model, and the abnormal area detection model is used to detect the abnormal area of the image to be inspected. , to obtain a detection result, wherein the image to be checked includes: a CT image of the lumbar spine, and the detection result includes: a fracture area and a treatment plan existing in the CT image of the lumbar spine.
本申请实施例首先对从预先构建的本地数据库中获取诊疗图像及诊疗结果,对所述诊疗图像进行异常区域定位,得到异常区域图像,对所述异常区域图像进行3D图像构建,生成3D异常区域图像,以跟踪所述异常区域图像的异常区域位置变化,提高后续模型训练效果;其次,本申请实施例对所述3D异常图像以及所述诊疗结果进行特征提取、向量化处理以及共享样本选取,得到共享样本,保障了数据之间的隐私性,使得参与训练的参与方数据可以很好的合理共享;进一步地,本申请实施例利用所述共享样本对预构建的异常区域检测模型进行训练,并利用训练完成的所述异常区域检测模型对待检查图像进行异常区域检测,得到检测结果。因此,本申请提出的一种图像异常区域检测方法可以提高图像异常区域检测的准确性。In the embodiment of the present application, firstly, a diagnosis and treatment image and diagnosis and treatment results are obtained from a pre-built local database, an abnormal area is located on the diagnosis and treatment image to obtain an abnormal area image, and a 3D image is constructed on the abnormal area image to generate a 3D abnormal area. image, to track the position change of the abnormal area in the abnormal area image, and improve the follow-up model training effect; secondly, the embodiment of the present application performs feature extraction, vectorization processing and shared sample selection on the 3D abnormal image and the diagnosis and treatment results, The shared samples are obtained, which ensures the privacy between data, so that the data of the participants participating in the training can be well and reasonably shared; further, the embodiment of the present application uses the shared samples to train the pre-built abnormal area detection model, And use the trained abnormal area detection model to perform abnormal area detection on the image to be inspected to obtain a detection result. Therefore, the method for detecting abnormal areas in images proposed in this application can improve the accuracy of detecting abnormal areas in images.
如图4所示,是本申请图像异常区域检测装置的功能模块图。As shown in FIG. 4 , it is a functional block diagram of the image abnormal area detection apparatus of the present application.
本申请所述图像异常区域检测装置100可以安装于电子设备中。根据实现的功能,所述图像异常区域检测装置可以包括定位模块101、构建模块102、提取模块103、选取模块104、训练模块105、更新模块106以及检测模块107。本发所述模块也可以称之为单元,是指一种能够被电子设备处理器所执行,并且能够完成固定功能的一系列计算机程序段,其存储在电子设备的存储器中。The image abnormal area detection apparatus 100 described in this application may be installed in an electronic device. According to the implemented functions, the image abnormal area detection apparatus may include a positioning module 101 , a construction module 102 , an extraction module 103 , a selection module 104 , a training module 105 , an update module 106 and a detection module 107 . The modules described in the present invention can also be called units, which refer to a series of computer program segments that can be executed by the electronic device processor and can perform fixed functions, and are stored in the memory of the electronic device.
在本实施例中,关于各模块/单元的功能如下:In this embodiment, the functions of each module/unit are as follows:
所述定位模块101,用于从预先构建的本地数据库中获取诊疗图像及诊疗结果,对所述诊疗图像进行异常区域定位,得到异常区域图像;The positioning module 101 is configured to obtain the diagnosis and treatment images and diagnosis and treatment results from a pre-built local database, and to locate the abnormal area on the diagnosis and treatment image to obtain the abnormal area image;
所述构建模块102,用于对所述异常区域图像进行3D图像构建,生成3D异常区域图像;The construction module 102 is used to construct a 3D image of the abnormal area image to generate a 3D abnormal area image;
所述提取模块103,用于对所述3D异常图像进行特征提取得到病理特征,对所述病理特征及诊疗结果分别进行向量化处理,得到病理特征向量及诊疗结果向量;The extraction module 103 is configured to perform feature extraction on the 3D abnormal image to obtain pathological features, and perform vectorization processing on the pathological features and diagnosis and treatment results, respectively, to obtain a pathological feature vector and a diagnosis and treatment result vector;
所述选取模块104,用于采用样本对齐方法,从所述病理特征向量和诊疗结果向量中选取共享样本;The selection module 104 is used to select a shared sample from the pathological feature vector and the diagnosis and treatment result vector by adopting a sample alignment method;
所述训练模块105,用于利用所述共享样本对预构建的异常区域检测模型进行训练,得到初始模型梯度;The training module 105 is configured to use the shared samples to train the pre-built abnormal region detection model to obtain an initial model gradient;
所述更新模块106,用于将所述初始模型梯度加密并采取添加噪声处理后,上传至服务端,并接受服务端返回的更新模型梯度;The updating module 106 is configured to encrypt the initial model gradient and add noise processing, upload it to the server, and accept the updated model gradient returned by the server;
所述检测模块107,用于根据所述更新模型梯度更新所述异常区域检测模型的模型梯度,得到更新异常区域检测模型,并利用所述更新异常区域检测模型对待检查图像进行异常区域的检测。The detection module 107 is configured to update the model gradient of the abnormal area detection model according to the updated model gradient to obtain an updated abnormal area detection model, and use the updated abnormal area detection model to detect abnormal areas in the image to be inspected.
详细地,本申请实施例中所述图像异常区域检测装置100中的所述各模块在使用时采用与上述的图1至图3中所述的图像异常区域检测方法一样的技术手段,并能够产生相同的技术效果,这里不再赘述。In detail, the modules in the image abnormal area detection apparatus 100 in the embodiments of the present application use the same technical means as the image abnormal area detection methods described in FIG. 1 to FIG. 3 , and can The same technical effect is produced, which is not repeated here.
如图5所示,是本申请实现图像异常区域检测方法的电子设备的结构示意图。As shown in FIG. 5 , it is a schematic structural diagram of an electronic device implementing the method for detecting abnormal image areas in the present application.
所述电子设备1可以包括处理器10、存储器11和总线,还可以包括存储在所述存储器11中并可在所述处理器10上运行的计算机程序,如图像异常区域检测程序12。The electronic device 1 may include a processor 10, a memory 11 and a bus, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as an abnormal image area detection program 12.
其中,所述存储器11至少包括一种类型的可读存储介质,所述可读存储介质可以是易 失性的,也可以是非易失性的。具体的,所述可读存储介质包括闪存、移动硬盘、多媒体卡、卡型存储器(例如:SD或DX存储器等)、磁性存储器、磁盘、光盘等。所述存储器11在一些实施例中可以是电子设备1的内部存储单元,例如该电子设备1的移动硬盘。所述存储器11在另一些实施例中也可以是电子设备1的外部存储设备,例如电子设备1上配备的插接式移动硬盘、智能存储卡(SmartMediaCard,SMC)、安全数字(SecureDigital,SD)卡、闪存卡(FlashCard)等。进一步地,所述存储器11还可以既包括电子设备1的内部存储单元也包括外部存储设备。所述存储器11不仅可以用于存储安装于电子设备1的应用软件及各类数据,例如图像异常区域检测的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。Wherein, the memory 11 includes at least one type of readable storage medium, and the readable storage medium may be volatile or non-volatile. Specifically, the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (eg, SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the memory 11 may be an internal storage unit of the electronic device 1 , such as a mobile hard disk of the electronic device 1 . In other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a pluggable mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) equipped on the electronic device 1. card, flash memory card (FlashCard), etc. Further, the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 can not only be used to store application software installed in the electronic device 1 and various types of data, such as codes for detecting abnormal image areas, etc., but also can be used to temporarily store data that has been output or will be output.
所述处理器10在一些实施例中可以由集成电路组成,例如可以由单个封装的集成电路所组成,也可以是由多个相同功能或不同功能封装的集成电路所组成,包括一个或者多个中央处理器(CentralProcessingunit,CPU)、微处理器、数字处理芯片、图形处理器及各种控制芯片的组合等。所述处理器10是所述电子设备的控制核心(ControlUnit),利用各种接口和线路连接整个电子设备的各个部件,通过运行或执行存储在所述存储器11内的程序或者模块(例如执行图像异常区域检测等),以及调用存储在所述存储器11内的数据,以执行电子设备1的各种功能和处理数据。In some embodiments, the processor 10 may be composed of integrated circuits, for example, may be composed of a single packaged integrated circuit, or may be composed of multiple integrated circuits packaged with the same function or different functions, including one or more integrated circuits. Central processing unit (Central Processing unit, CPU), microprocessor, digital processing chip, graphics processor and combination of various control chips, etc. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect the various components of the entire electronic device, by running or executing the program or module (for example, executing the image) stored in the memory 11. abnormal area detection, etc.), and call data stored in the memory 11 to perform various functions of the electronic device 1 and process data.
所述总线可以是外设部件互连标准(peripheralcomponentinterconnect,简称PCI)总线或扩展工业标准结构(extendedindustrystandardarchitecture,简称EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。所述总线被设置为实现所述存储器11以及至少一个处理器10等之间的连接通信。The bus may be a peripheral component interconnect (PCI for short) bus or an extended industry standard architecture (extended industry standard architecture, EISA for short) bus or the like. The bus can be divided into address bus, data bus, control bus and so on. The bus is configured to implement connection communication between the memory 11 and at least one processor 10 and the like.
图5仅示出了具有部件的电子设备,本领域技术人员可以理解的是,图5示出的结构并不构成对所述电子设备1的限定,可以包括比图示更少或者更多的部件,或者组合某些部件,或者不同的部件布置。FIG. 5 only shows an electronic device with components. Those skilled in the art can understand that the structure shown in FIG. 5 does not constitute a limitation on the electronic device 1, and may include fewer or more components than those shown in the drawings. components, or a combination of certain components, or a different arrangement of components.
例如,尽管未示出,所述电子设备1还可以包括给各个部件供电的电源(比如电池),优选地,电源可以通过电源管理装置与所述至少一个处理器10逻辑相连,从而通过电源管理装置实现充电管理、放电管理、以及功耗管理等功能。电源还可以包括一个或一个以上的直流或交流电源、再充电装置、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。所述电子设备1还可以包括多种传感器、蓝牙模块、Wi-Fi模块等,在此不再赘述。For example, although not shown, the electronic device 1 may also include a power supply (such as a battery) for powering the various components, preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so that the power management The device implements functions such as charge management, discharge management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and any other components. The electronic device 1 may further include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
进一步地,所述电子设备1还可以包括网络接口,可选地,所述网络接口可以包括有线接口和/或无线接口(如WI-FI接口、蓝牙接口等),通常用于在该电子设备1与其他电子设备之间建立通信连接。Further, the electronic device 1 may also include a network interface, optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used in the electronic device 1 Establish a communication connection with other electronic devices.
可选地,该电子设备1还可以包括用户接口,用户接口可以是显示器(Display)、输入单元(比如键盘(Keyboard)),可选地,用户接口还可以是标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(OrganicLight-EmittingDiode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在电子设备1中处理的信息以及用于显示可视化的用户界面。Optionally, the electronic device 1 may further include a user interface, and the user interface may be a display (Display), an input unit (eg, a keyboard (Keyboard)), optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, 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, organic light-emitting diode) touch device, and the like. The display may also be appropriately called a display screen or a display unit, which is used for displaying information processed in the electronic device 1 and for displaying a visualized user interface.
应该了解,所述实施例仅为说明之用,在专利申请范围上并不受此结构的限制。It should be understood that the embodiments are only used for illustration, and are not limited by this structure in the scope of the patent application.
所述电子设备1中的所述存储器11存储的图像异常区域检测12是多个指令的组合,在所述处理器10中运行时,可以实现:The image abnormal area detection 12 stored in the memory 11 in the electronic device 1 is a combination of multiple instructions, and when running in the processor 10, can realize:
从预先构建的本地数据库中获取诊疗图像及诊疗结果,对所述诊疗图像进行异常区域定位,得到异常区域图像;Obtaining diagnosis and treatment images and diagnosis and treatment results from a pre-built local database, and locating abnormal areas on the diagnosis and treatment images to obtain images of abnormal areas;
对所述异常区域图像进行3D图像构建,生成3D异常区域图像;3D image construction is performed on the abnormal area image to generate a 3D abnormal area image;
对所述3D异常图像进行特征提取得到病理特征,对所述病理特征及诊疗结果分别进 行向量化处理,得到病理特征向量及诊疗结果向量;Perform feature extraction on the 3D abnormal image to obtain pathological features, and perform vectorization processing on the pathological features and diagnosis and treatment results, respectively, to obtain a pathological feature vector and a diagnosis and treatment result vector;
采用样本对齐方法,从所述病理特征向量和诊疗结果向量中选取共享样本;A sample alignment method is used to select shared samples from the pathological feature vector and the diagnosis and treatment result vector;
利用所述共享样本对预构建的异常区域检测模型进行训练,得到初始模型梯度;Use the shared samples to train the pre-built abnormal region detection model to obtain the initial model gradient;
将所述初始模型梯度加密并采取添加噪声处理后,上传至服务端,并接受服务端返回的更新模型梯度;After encrypting the initial model gradient and adding noise, upload it to the server, and accept the updated model gradient returned by the server;
根据所述更新模型梯度更新所述异常区域检测模型的模型梯度,得到更新异常区域检测模型,并利用所述更新异常区域检测模型对待检查图像进行异常区域的检测。The model gradient of the abnormal area detection model is updated according to the updated model gradient to obtain an updated abnormal area detection model, and the abnormal area detection model is used to detect the abnormal area of the image to be inspected.
具体地,所述处理器10对上述指令的具体实现方法可参考图1对应实施例中相关步骤的描述,在此不赘述。Specifically, for the specific implementation method of the above-mentioned instruction by the processor 10, reference may be made to the description of the relevant steps in the corresponding embodiment of FIG. 1, and details are not described herein.
进一步地,所述电子设备1集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。所述计算机可读存储介质可以是易失性的,也可以是非易失性的。具体的,所述计算机可读存储介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-OnlyMemory)。Further, if the modules/units integrated in the electronic device 1 are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. The computer-readable storage medium may be volatile or non-volatile. Specifically, the computer-readable storage medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read Only Memory) -Only Memory).
在本申请所提供的几个实施例中,应该理解到,所揭露的设备,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the modules is only a logical function division, and there may be other division manners in actual implementation.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or can be implemented in the form of hardware plus software function modules.
对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。It will be apparent to those skilled in the art that the present application is not limited to the details of the above-described exemplary embodiments, but that the present application can be implemented in other specific forms without departing from the spirit or essential characteristics of the present application.
因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本申请内。不应将权利要求中的任何附关联图标记视为限制所涉及的权利要求。Accordingly, the embodiments are to be regarded in all respects as illustrative and not restrictive, and the scope of the application is to be defined by the appended claims rather than the foregoing description, which is therefore intended to fall within the scope of the claims. All changes within the meaning and scope of the equivalents of , are included in this application. Any reference signs in the claims shall not be construed as limiting the involved claim.
本申请所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。The blockchain referred to in this application is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain, essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information to verify its Validity of information (anti-counterfeiting) and generation of the next block. The blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第二等词语用来表示名称,而并不表示任何特定的顺序。Furthermore, it is clear that the word "comprising" does not exclude other units or steps and the singular does not exclude the plural. Several units or means recited in the system claims can also be realized by one unit or means by means of software or hardware. Second-class terms are used to denote names and do not denote any particular order.
最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and not to limit them. Although the present application has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present application can be Modifications or equivalent substitutions can be made without departing from the spirit and scope of the technical solutions of the present application.
Claims (20)
- 一种图像异常区域检测方法,其中,所述方法应用于参与联邦学习的其中一个参与方的客户端中,包括:A method for detecting abnormal areas in images, wherein the method is applied to a client of one of the participants participating in federated learning, including:从预先构建的本地数据库中获取诊疗图像及诊疗结果,对所述诊疗图像进行异常区域定位,得到异常区域图像;Obtaining diagnosis and treatment images and diagnosis and treatment results from a pre-built local database, and locating abnormal areas on the diagnosis and treatment images to obtain images of abnormal areas;对所述异常区域图像进行3D图像构建,生成3D异常区域图像;3D image construction is performed on the abnormal area image to generate a 3D abnormal area image;对所述3D异常图像进行特征提取得到病理特征,对所述病理特征及诊疗结果分别进行向量化处理,得到病理特征向量及诊疗结果向量;Perform feature extraction on the 3D abnormal image to obtain pathological features, and perform vectorization processing on the pathological features and diagnosis and treatment results, respectively, to obtain a pathological feature vector and a diagnosis and treatment result vector;采用样本对齐方法,从所述病理特征向量和诊疗结果向量中选取共享样本;A sample alignment method is used to select shared samples from the pathological feature vector and the diagnosis and treatment result vector;利用所述共享样本对预构建的异常区域检测模型进行训练,得到初始模型梯度;Use the shared samples to train the pre-built abnormal region detection model to obtain the initial model gradient;将所述初始模型梯度加密并采取添加噪声处理后,上传至服务端,并接受服务端返回的更新模型梯度;After encrypting the initial model gradient and adding noise, upload it to the server, and accept the updated model gradient returned by the server;根据所述更新模型梯度更新所述异常区域检测模型的模型梯度,得到更新异常区域检测模型,并利用所述更新异常区域检测模型对待检查图像进行异常区域的检测。The model gradient of the abnormal area detection model is updated according to the updated model gradient to obtain an updated abnormal area detection model, and the abnormal area detection model is used to detect the abnormal area of the image to be inspected.
- 如权利要求1所述的图像异常区域检测方法,其中,所述对所述诊疗图像进行异常区域定位,得到异常区域图像,包括:The method for detecting an abnormal area in an image according to claim 1, wherein the performing an abnormal area location on the diagnosis and treatment image to obtain an abnormal area image, comprising:利用全卷积神经网络中的卷积层对所述诊疗图像进行卷积操作,得到特征诊疗图像;Using the convolution layer in the fully convolutional neural network to perform a convolution operation on the diagnosis and treatment image to obtain a characteristic diagnosis and treatment image;利用所述全卷积神经网络中的融合层对诊疗图像的底层特征与所述特征诊疗图像进行融合,得到目标特征图像;Using the fusion layer in the fully convolutional neural network to fuse the underlying features of the diagnosis and treatment image with the characteristic diagnosis and treatment image to obtain a target feature image;利用所述全卷积神经网络中的激活函数输出所述目标特征图像的检测结果,并根据所述检测结果,选取所述目标特征图像的异常区域,得到异常区域图像。The detection result of the target feature image is output by using the activation function in the fully convolutional neural network, and according to the detection result, an abnormal region of the target feature image is selected to obtain an abnormal region image.
- 如权利要求1所述的图像异常区域检测方法,其中,所述对所述3D异常图像进行特征提取得到病理特征,包括:The method for detecting an abnormal area in an image according to claim 1, wherein the pathological feature obtained by feature extraction on the 3D abnormal image comprises:获取所述3D异常图像的区域坐标框;obtaining the regional coordinate frame of the 3D abnormal image;计算所述3D异常图像的第一病理特征预测坐标框,并计算所述第一病理特征预测坐标框与所述区域坐标框的第一交并比,筛选出所述第一交并比大于预设第一阈值的第一病理特征预测坐标框,对筛选的所述第一病理特征预测坐标框进行裁剪,得到第一病理特征图像;Calculate the first pathological feature predicted coordinate frame of the 3D abnormal image, and calculate the first intersection ratio of the first pathological feature predicted coordinate frame and the region coordinate frame, and filter out the first intersection ratio greater than the predicted coordinate frame. A first pathological feature prediction coordinate frame of a first threshold is set, and the screened first pathological feature prediction coordinate frame is cropped to obtain a first pathological feature image;计算所述第一病理特征图像的第二病理特征预测坐标框,并计算所述第二病理特征预测坐标框与所述区域坐标框的第二交并比,筛选出所述第二交并比大于预设第二阈值的第二病理特征预测坐标框,对筛选的所述第二病理特征预测坐标框进行裁剪,得到第二病理特征图像;Calculate the second pathological feature prediction coordinate frame of the first pathological feature image, and calculate the second intersection ratio of the second pathological feature prediction coordinate frame and the region coordinate frame, and filter out the second intersection ratio a second pathological feature prediction coordinate frame larger than a preset second threshold, crop the screened second pathological feature prediction coordinate frame to obtain a second pathological feature image;计算所述第二病理特征图像的第三病理特征预测坐标框,并计算所述第三病理特征预测坐标框与所述区域坐标框的第三交并比,筛选出所述第三交并比大于预设第三阈值的第三病理特征预测坐标框,对筛选的所述第三病理特征预测坐标框进行裁剪,得到第三病理特征图像;Calculate the third pathological feature prediction coordinate frame of the second pathological feature image, and calculate the third intersection and union ratio of the third pathological feature prediction coordinate frame and the region coordinate frame, and filter out the third intersection and union ratio A third pathological feature prediction coordinate frame larger than a preset third threshold is cropped, and a third pathological feature image is obtained by cropping the screened third pathological feature prediction coordinate frame;从所述第三病理特征图像中提取出病理特征。A pathological feature is extracted from the third pathological feature image.
- 如权利要求3所述的图像异常区域检测方法,其中,所述计算所述3D异常图像的第一病理特征预测坐标框,包括:The image abnormal area detection method according to claim 3, wherein the calculating the first pathological feature prediction coordinate frame of the 3D abnormal image comprises:利用下述方法计算所述3D异常图像的第一病理特征预测坐标框:The first pathological feature prediction coordinate frame of the 3D abnormal image is calculated by the following method:其中,T(r)表示第一病理特征预测坐标框,r表示3D异常图像的图像灰度阶数,P r(r)灰度概率密度函数。 Among them, T(r) represents the first pathological feature prediction coordinate frame, r represents the image grayscale order of the 3D abnormal image, and P r (r) grayscale probability density function.
- 如权利要求1所述的图像异常区域检测方法,其中,所述利用所述共享样本对预构建的异常区域检测模型进行训练,得到初始模型梯度,包括:The method for detecting an abnormal area in an image according to claim 1, wherein the use of the shared sample to train a pre-built abnormal area detection model to obtain an initial model gradient, comprising:利用所述异常区域检测模型中的卷积层对所述共享样本进行特征提取,得到特征样本;Use the convolution layer in the abnormal area detection model to perform feature extraction on the shared samples to obtain feature samples;利用所述异常区域检测模型中池化层对所述特征样本进行降维,得到降维样本;Use the pooling layer in the abnormal area detection model to reduce the dimension of the feature sample to obtain the dimension-reduced sample;利用所述异常区域检测模型中全连接层输出所述降维样本的训练值,利用所述异常区域检测模型中的损失函数计算所述训练值与所述共享样本标签值的损失值;Use the fully connected layer in the abnormal area detection model to output the training value of the dimensionality reduction sample, and use the loss function in the abnormal area detection model to calculate the loss value of the training value and the shared sample label value;根据所述损失值,调整所述异常区域检测模型的模型梯度,直至所述损失值小于预设阈值时,得到所述异常区域检测模型的初始模型梯度。According to the loss value, the model gradient of the abnormal area detection model is adjusted until the loss value is less than a preset threshold, and the initial model gradient of the abnormal area detection model is obtained.
- 如权利要求1所述的图像异常区域检测方法,其中,所述接受服务端返回的更新模型梯度之前,还包括:利用所述服务端中存储的私钥,对所述初始模型梯度进行解密,得到解密模型梯度,在所述服务端中对所述解密模型梯度进行加权平均,得到更新模型梯度。The method for detecting abnormal image areas according to claim 1, wherein before receiving the updated model gradient returned by the server, the method further comprises: decrypting the initial model gradient by using the private key stored in the server, The decryption model gradient is obtained, and weighted average is performed on the decryption model gradient in the server to obtain the update model gradient.
- 如权利要求1至6中任意一项所述的图像异常区域检测方法,其中,所述待检测图像包括腰椎CT图像。The image abnormal area detection method according to any one of claims 1 to 6, wherein the image to be detected includes a lumbar spine CT image.
- 一种图像异常区域检测装置,其中,所述装置包括:An image abnormal area detection device, wherein the device includes:定位模块,用于从预先构建的本地数据库中获取诊疗图像及诊疗结果,对所述诊疗图像进行异常区域定位,得到异常区域图像;The positioning module is used for obtaining the diagnosis and treatment images and diagnosis and treatment results from the pre-built local database, and locating the abnormal area on the diagnosis and treatment image to obtain the abnormal area image;构建模块,用于对所述异常区域图像进行3D图像构建,生成3D异常区域图像;a building module for constructing a 3D image of the abnormal area image to generate a 3D abnormal area image;提取模块,用于对所述3D异常图像进行特征提取得到病理特征,对所述病理特征及诊疗结果分别进行向量化处理,得到病理特征向量及诊疗结果向量;an extraction module, configured to perform feature extraction on the 3D abnormal image to obtain pathological features, and perform vectorization processing on the pathological features and diagnosis and treatment results, respectively, to obtain a pathological feature vector and a diagnosis and treatment result vector;选取模块,用于采用样本对齐方法,从所述病理特征向量和诊疗结果向量中选取共享样本;a selection module, used for using a sample alignment method to select shared samples from the pathological feature vector and the diagnosis and treatment result vector;训练模块,用于利用所述共享样本对预构建的异常区域检测模型进行训练,得到初始模型梯度;a training module, used for using the shared samples to train the pre-built abnormal region detection model to obtain the initial model gradient;更新模块,用于将所述初始模型梯度加密并采取添加噪声处理后,上传至服务端,并接受服务端返回的更新模型梯度;an update module, configured to encrypt the initial model gradient and add noise, upload it to the server, and accept the updated model gradient returned by the server;检测模块,用于根据所述更新模型梯度更新所述异常区域检测模型的模型梯度,得到更新异常区域检测模型,并利用所述更新异常区域检测模型对待检查图像进行异常区域的检测。The detection module is configured to update the model gradient of the abnormal area detection model according to the updated model gradient to obtain the updated abnormal area detection model, and use the updated abnormal area detection model to detect the abnormal area of the image to be inspected.
- 一种电子设备,其中,所述电子设备包括:An electronic device, wherein the electronic device comprises:至少一个处理器;以及,at least one processor; and,与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,所述存储器存储有可被所述至少一个处理器执行的计算机程序指令,所述计算机程序指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如下所述的图像异常区域检测方法:The memory stores computer program instructions executable by the at least one processor, the computer program instructions being executed by the at least one processor to enable the at least one processor to execute an image anomaly region as described below Detection method:从预先构建的本地数据库中获取诊疗图像及诊疗结果,对所述诊疗图像进行异常区域定位,得到异常区域图像;Obtaining diagnosis and treatment images and diagnosis and treatment results from a pre-built local database, and locating abnormal areas on the diagnosis and treatment images to obtain images of abnormal areas;对所述异常区域图像进行3D图像构建,生成3D异常区域图像;3D image construction is performed on the abnormal area image to generate a 3D abnormal area image;对所述3D异常图像进行特征提取得到病理特征,对所述病理特征及诊疗结果分别进行向量化处理,得到病理特征向量及诊疗结果向量;Perform feature extraction on the 3D abnormal image to obtain pathological features, and perform vectorization processing on the pathological features and diagnosis and treatment results, respectively, to obtain a pathological feature vector and a diagnosis and treatment result vector;采用样本对齐方法,从所述病理特征向量和诊疗结果向量中选取共享样本;A sample alignment method is used to select shared samples from the pathological feature vector and the diagnosis and treatment result vector;利用所述共享样本对预构建的异常区域检测模型进行训练,得到初始模型梯度;Use the shared samples to train the pre-built abnormal region detection model to obtain the initial model gradient;将所述初始模型梯度加密并采取添加噪声处理后,上传至服务端,并接受服务端返回的更新模型梯度;After encrypting the initial model gradient and adding noise, upload it to the server, and accept the updated model gradient returned by the server;根据所述更新模型梯度更新所述异常区域检测模型的模型梯度,得到更新异常区域检 测模型,并利用所述更新异常区域检测模型对待检查图像进行异常区域的检测。The model gradient of the abnormal region detection model is updated according to the updated model gradient to obtain the updated abnormal region detection model, and the abnormal region detection model is used to detect the abnormal region of the image to be inspected.
- 如权利要求9所述的电子设备,其中,所述对所述诊疗图像进行异常区域定位,得到异常区域图像,包括:The electronic device according to claim 9, wherein the performing abnormal area positioning on the diagnosis and treatment image to obtain an abnormal area image, comprising:利用全卷积神经网络中的卷积层对所述诊疗图像进行卷积操作,得到特征诊疗图像;Using the convolution layer in the fully convolutional neural network to perform a convolution operation on the diagnosis and treatment image to obtain a characteristic diagnosis and treatment image;利用所述全卷积神经网络中的融合层对诊疗图像的底层特征与所述特征诊疗图像进行融合,得到目标特征图像;Using the fusion layer in the fully convolutional neural network to fuse the underlying features of the diagnosis and treatment image with the characteristic diagnosis and treatment image to obtain a target feature image;利用所述全卷积神经网络中的激活函数输出所述目标特征图像的检测结果,并根据所述检测结果,选取所述目标特征图像的异常区域,得到异常区域图像。The detection result of the target feature image is output by using the activation function in the fully convolutional neural network, and according to the detection result, an abnormal region of the target feature image is selected to obtain an abnormal region image.
- 如权利要求9所述的电子设备,其中,所述对所述3D异常图像进行特征提取得到病理特征,包括:The electronic device according to claim 9, wherein the pathological features obtained by performing feature extraction on the 3D abnormal image include:获取所述3D异常图像的区域坐标框;obtaining the regional coordinate frame of the 3D abnormal image;计算所述3D异常图像的第一病理特征预测坐标框,并计算所述第一病理特征预测坐标框与所述区域坐标框的第一交并比,筛选出所述第一交并比大于预设第一阈值的第一病理特征预测坐标框,对筛选的所述第一病理特征预测坐标框进行裁剪,得到第一病理特征图像;Calculate the first pathological feature predicted coordinate frame of the 3D abnormal image, and calculate the first intersection ratio of the first pathological feature predicted coordinate frame and the region coordinate frame, and filter out the first intersection ratio greater than the predicted coordinate frame. A first pathological feature prediction coordinate frame of a first threshold is set, and the screened first pathological feature prediction coordinate frame is cropped to obtain a first pathological feature image;计算所述第一病理特征图像的第二病理特征预测坐标框,并计算所述第二病理特征预测坐标框与所述区域坐标框的第二交并比,筛选出所述第二交并比大于预设第二阈值的第二病理特征预测坐标框,对筛选的所述第二病理特征预测坐标框进行裁剪,得到第二病理特征图像;Calculate the second pathological feature prediction coordinate frame of the first pathological feature image, and calculate the second intersection ratio of the second pathological feature prediction coordinate frame and the region coordinate frame, and filter out the second intersection ratio a second pathological feature prediction coordinate frame larger than a preset second threshold, crop the screened second pathological feature prediction coordinate frame to obtain a second pathological feature image;计算所述第二病理特征图像的第三病理特征预测坐标框,并计算所述第三病理特征预测坐标框与所述区域坐标框的第三交并比,筛选出所述第三交并比大于预设第三阈值的第三病理特征预测坐标框,对筛选的所述第三病理特征预测坐标框进行裁剪,得到第三病理特征图像;Calculate the third pathological feature prediction coordinate frame of the second pathological feature image, and calculate the third intersection and union ratio of the third pathological feature prediction coordinate frame and the region coordinate frame, and filter out the third intersection and union ratio A third pathological feature prediction coordinate frame larger than a preset third threshold is cropped, and a third pathological feature image is obtained by cropping the screened third pathological feature prediction coordinate frame;从所述第三病理特征图像中提取出病理特征。A pathological feature is extracted from the third pathological feature image.
- 如权利要求11所述的电子设备,其中,所述计算所述3D异常图像的第一病理特征预测坐标框,包括:The electronic device according to claim 11, wherein the calculating the first pathological feature prediction coordinate frame of the 3D abnormal image comprises:利用下述方法计算所述3D异常图像的第一病理特征预测坐标框:The first pathological feature prediction coordinate frame of the 3D abnormal image is calculated by the following method:其中,T(r)表示第一病理特征预测坐标框,r表示3D异常图像的图像灰度阶数,P r(r)灰度概率密度函数。 Among them, T(r) represents the first pathological feature prediction coordinate frame, r represents the image grayscale order of the 3D abnormal image, and P r (r) grayscale probability density function.
- 如权利要求9所述的电子设备,其中,所述利用所述共享样本对预构建的异常区域检测模型进行训练,得到初始模型梯度,包括:The electronic device according to claim 9, wherein the training of a pre-built abnormal region detection model by using the shared samples to obtain an initial model gradient comprises:利用所述异常区域检测模型中的卷积层对所述共享样本进行特征提取,得到特征样本;Use the convolution layer in the abnormal area detection model to perform feature extraction on the shared samples to obtain feature samples;利用所述异常区域检测模型中池化层对所述特征样本进行降维,得到降维样本;Use the pooling layer in the abnormal area detection model to reduce the dimension of the feature sample to obtain the dimension-reduced sample;利用所述异常区域检测模型中全连接层输出所述降维样本的训练值,利用所述异常区域检测模型中的损失函数计算所述训练值与所述共享样本标签值的损失值;Use the fully connected layer in the abnormal area detection model to output the training value of the dimensionality reduction sample, and use the loss function in the abnormal area detection model to calculate the loss value of the training value and the shared sample label value;根据所述损失值,调整所述异常区域检测模型的模型梯度,直至所述损失值小于预设阈值时,得到所述异常区域检测模型的初始模型梯度。According to the loss value, the model gradient of the abnormal area detection model is adjusted until the loss value is less than a preset threshold, and the initial model gradient of the abnormal area detection model is obtained.
- 如权利要求9所述的电子设备,其中,所述接受服务端返回的更新模型梯度之前,还包括:利用所述服务端中存储的私钥,对所述初始模型梯度进行解密,得到解密模型梯度,在所述服务端中对所述解密模型梯度进行加权平均,得到更新模型梯度。The electronic device according to claim 9, wherein before receiving the updated model gradient returned by the server, the method further comprises: decrypting the initial model gradient by using the private key stored in the server to obtain a decrypted model The gradient of the decryption model is weighted and averaged in the server to obtain the updated model gradient.
- 一种计算机可读存储介质,存储有计算机程序,其中,所述计算机程序被处理器执行时实现如下所述的图像异常区域检测方法:A computer-readable storage medium storing a computer program, wherein, when the computer program is executed by a processor, the following method for detecting an abnormal area in an image is implemented:从预先构建的本地数据库中获取诊疗图像及诊疗结果,对所述诊疗图像进行异常区域定位,得到异常区域图像;Obtaining diagnosis and treatment images and diagnosis and treatment results from a pre-built local database, and locating abnormal areas on the diagnosis and treatment images to obtain images of abnormal areas;对所述异常区域图像进行3D图像构建,生成3D异常区域图像;3D image construction is performed on the abnormal area image to generate a 3D abnormal area image;对所述3D异常图像进行特征提取得到病理特征,对所述病理特征及诊疗结果分别进行向量化处理,得到病理特征向量及诊疗结果向量;Perform feature extraction on the 3D abnormal image to obtain pathological features, and perform vectorization processing on the pathological features and diagnosis and treatment results, respectively, to obtain a pathological feature vector and a diagnosis and treatment result vector;采用样本对齐方法,从所述病理特征向量和诊疗结果向量中选取共享样本;A sample alignment method is used to select shared samples from the pathological feature vector and the diagnosis and treatment result vector;利用所述共享样本对预构建的异常区域检测模型进行训练,得到初始模型梯度;Use the shared samples to train the pre-built abnormal region detection model to obtain the initial model gradient;将所述初始模型梯度加密并采取添加噪声处理后,上传至服务端,并接受服务端返回的更新模型梯度;After encrypting the initial model gradient and adding noise, upload it to the server, and accept the updated model gradient returned by the server;根据所述更新模型梯度更新所述异常区域检测模型的模型梯度,得到更新异常区域检测模型,并利用所述更新异常区域检测模型对待检查图像进行异常区域的检测。The model gradient of the abnormal area detection model is updated according to the updated model gradient to obtain an updated abnormal area detection model, and the abnormal area detection model is used to detect the abnormal area of the image to be inspected.
- 如权利要求15所述的计算机可读存储介质,其中,所述对所述诊疗图像进行异常区域定位,得到异常区域图像,包括:The computer-readable storage medium according to claim 15, wherein the performing abnormal region positioning on the diagnosis and treatment image to obtain the abnormal region image comprises:利用全卷积神经网络中的卷积层对所述诊疗图像进行卷积操作,得到特征诊疗图像;Using the convolution layer in the fully convolutional neural network to perform a convolution operation on the diagnosis and treatment image to obtain a characteristic diagnosis and treatment image;利用所述全卷积神经网络中的融合层对诊疗图像的底层特征与所述特征诊疗图像进行融合,得到目标特征图像;Using the fusion layer in the fully convolutional neural network to fuse the underlying features of the diagnosis and treatment image with the characteristic diagnosis and treatment image to obtain a target feature image;利用所述全卷积神经网络中的激活函数输出所述目标特征图像的检测结果,并根据所述检测结果,选取所述目标特征图像的异常区域,得到异常区域图像。The detection result of the target feature image is output by using the activation function in the fully convolutional neural network, and according to the detection result, an abnormal region of the target feature image is selected to obtain an abnormal region image.
- 如权利要求15所述的计算机可读存储介质,其中,所述对所述3D异常图像进行特征提取得到病理特征,包括:The computer-readable storage medium of claim 15, wherein the pathological feature obtained by feature extraction on the 3D abnormal image comprises:获取所述3D异常图像的区域坐标框;obtaining the regional coordinate frame of the 3D abnormal image;计算所述3D异常图像的第一病理特征预测坐标框,并计算所述第一病理特征预测坐标框与所述区域坐标框的第一交并比,筛选出所述第一交并比大于预设第一阈值的第一病理特征预测坐标框,对筛选的所述第一病理特征预测坐标框进行裁剪,得到第一病理特征图像;Calculate the first pathological feature predicted coordinate frame of the 3D abnormal image, and calculate the first intersection ratio of the first pathological feature predicted coordinate frame and the region coordinate frame, and filter out the first intersection ratio greater than the predicted coordinate frame. A first pathological feature prediction coordinate frame of a first threshold is set, and the screened first pathological feature prediction coordinate frame is cropped to obtain a first pathological feature image;计算所述第一病理特征图像的第二病理特征预测坐标框,并计算所述第二病理特征预测坐标框与所述区域坐标框的第二交并比,筛选出所述第二交并比大于预设第二阈值的第二病理特征预测坐标框,对筛选的所述第二病理特征预测坐标框进行裁剪,得到第二病理特征图像;Calculate the second pathological feature prediction coordinate frame of the first pathological feature image, and calculate the second intersection ratio of the second pathological feature prediction coordinate frame and the region coordinate frame, and filter out the second intersection ratio a second pathological feature prediction coordinate frame larger than a preset second threshold, crop the screened second pathological feature prediction coordinate frame to obtain a second pathological feature image;计算所述第二病理特征图像的第三病理特征预测坐标框,并计算所述第三病理特征预测坐标框与所述区域坐标框的第三交并比,筛选出所述第三交并比大于预设第三阈值的第三病理特征预测坐标框,对筛选的所述第三病理特征预测坐标框进行裁剪,得到第三病理特征图像;Calculate the third pathological feature prediction coordinate frame of the second pathological feature image, and calculate the third intersection and union ratio of the third pathological feature prediction coordinate frame and the region coordinate frame, and filter out the third intersection and union ratio A third pathological feature prediction coordinate frame larger than a preset third threshold is cropped, and a third pathological feature image is obtained by cropping the screened third pathological feature prediction coordinate frame;从所述第三病理特征图像中提取出病理特征。A pathological feature is extracted from the third pathological feature image.
- 如权利要求17所述的计算机可读存储介质,其中,所述计算所述3D异常图像的第一病理特征预测坐标框,包括:The computer-readable storage medium of claim 17, wherein the calculating the first pathological feature prediction coordinate frame of the 3D abnormal image comprises:利用下述方法计算所述3D异常图像的第一病理特征预测坐标框:The first pathological feature prediction coordinate frame of the 3D abnormal image is calculated by the following method:其中,T(r)表示第一病理特征预测坐标框,r表示3D异常图像的图像灰度阶数,P r(r)灰度概率密度函数。 Among them, T(r) represents the first pathological feature prediction coordinate frame, r represents the image grayscale order of the 3D abnormal image, and P r (r) grayscale probability density function.
- 如权利要求15所述的计算机可读存储介质,其中,所述利用所述共享样本对预构建的异常区域检测模型进行训练,得到初始模型梯度,包括:The computer-readable storage medium according to claim 15, wherein the training of a pre-built abnormal region detection model by using the shared samples to obtain an initial model gradient comprises:利用所述异常区域检测模型中的卷积层对所述共享样本进行特征提取,得到特征样本;Use the convolution layer in the abnormal area detection model to perform feature extraction on the shared samples to obtain feature samples;利用所述异常区域检测模型中池化层对所述特征样本进行降维,得到降维样本;Use the pooling layer in the abnormal area detection model to reduce the dimension of the feature sample to obtain the dimension-reduced sample;利用所述异常区域检测模型中全连接层输出所述降维样本的训练值,利用所述异常区域检测模型中的损失函数计算所述训练值与所述共享样本标签值的损失值;Use the fully connected layer in the abnormal area detection model to output the training value of the dimensionality reduction sample, and use the loss function in the abnormal area detection model to calculate the loss value of the training value and the shared sample label value;根据所述损失值,调整所述异常区域检测模型的模型梯度,直至所述损失值小于预设阈值时,得到所述异常区域检测模型的初始模型梯度。According to the loss value, the model gradient of the abnormal area detection model is adjusted until the loss value is less than a preset threshold, and the initial model gradient of the abnormal area detection model is obtained.
- 如权利要求15所述的计算机可读存储介质,其中,所述接受服务端返回的更新模型梯度之前,还包括:利用所述服务端中存储的私钥,对所述初始模型梯度进行解密,得到解密模型梯度,在所述服务端中对所述解密模型梯度进行加权平均,得到更新模型梯度。The computer-readable storage medium according to claim 15, wherein before receiving the updated model gradient returned by the server, the method further comprises: decrypting the initial model gradient by using the private key stored in the server, The decryption model gradient is obtained, and weighted average is performed on the decryption model gradient in the server to obtain the update model gradient.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011508405.8 | 2020-12-18 | ||
CN202011508405.8A CN112465819B (en) | 2020-12-18 | 2020-12-18 | Image abnormal region detection method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022126903A1 true WO2022126903A1 (en) | 2022-06-23 |
Family
ID=74804758
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/083088 WO2022126903A1 (en) | 2020-12-18 | 2021-03-25 | Method and device for image anomaly area detection, electronic device, and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112465819B (en) |
WO (1) | WO2022126903A1 (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112465819B (en) * | 2020-12-18 | 2024-06-18 | 平安科技(深圳)有限公司 | Image abnormal region detection method and device, electronic equipment and storage medium |
CN113177486B (en) * | 2021-04-30 | 2022-06-03 | 重庆师范大学 | Dragonfly order insect identification method based on regional suggestion network |
CN113140292A (en) * | 2021-05-12 | 2021-07-20 | 平安国际智慧城市科技股份有限公司 | Image abnormal area browsing method and device, mobile terminal equipment and storage medium |
CN115705678A (en) * | 2021-08-09 | 2023-02-17 | 腾讯科技(深圳)有限公司 | Image data processing method, computer equipment and medium |
CN113688924B (en) * | 2021-08-31 | 2024-05-31 | 中国平安财产保险股份有限公司 | Abnormal order detection method, device, equipment and medium |
CN116269738B (en) * | 2023-05-25 | 2023-08-01 | 深圳市科医仁科技发展有限公司 | Intelligent control method, device, equipment and storage medium of radio frequency therapeutic apparatus |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180260951A1 (en) * | 2017-03-08 | 2018-09-13 | Siemens Healthcare Gmbh | Deep Image-to-Image Recurrent Network with Shape Basis for Automatic Vertebra Labeling in Large-Scale 3D CT Volumes |
CN111583220A (en) * | 2020-04-30 | 2020-08-25 | 腾讯科技(深圳)有限公司 | Image data detection method and device |
CN111754473A (en) * | 2020-06-17 | 2020-10-09 | 平安科技(深圳)有限公司 | Abnormal image screening method, device and equipment for 3D image and storage medium |
CN111915609A (en) * | 2020-09-22 | 2020-11-10 | 平安科技(深圳)有限公司 | Focus detection analysis method, device, electronic equipment and computer storage medium |
CN112465819A (en) * | 2020-12-18 | 2021-03-09 | 平安科技(深圳)有限公司 | Image abnormal area detection method and device, electronic equipment and storage medium |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108806793A (en) * | 2018-04-17 | 2018-11-13 | 平安科技(深圳)有限公司 | Lesion monitoring method, device, computer equipment and storage medium |
CN109410167B (en) * | 2018-08-31 | 2021-11-09 | 深圳大学 | Analysis method, system and medium for 3D mammary gland image |
CN109886998B (en) * | 2019-01-23 | 2024-09-06 | 平安科技(深圳)有限公司 | Multi-target tracking method, device, computer device and computer storage medium |
CN110136103B (en) * | 2019-04-24 | 2024-05-28 | 平安科技(深圳)有限公司 | Medical image interpretation method, device, computer equipment and storage medium |
CN111462048A (en) * | 2020-03-09 | 2020-07-28 | 平安科技(深圳)有限公司 | Multi-label multi-example image detection method, device, equipment and storage medium |
CN111695605B (en) * | 2020-05-20 | 2024-05-10 | 平安科技(深圳)有限公司 | OCT image-based image recognition method, server and storage medium |
CN111931772B (en) * | 2020-09-18 | 2021-02-09 | 平安科技(深圳)有限公司 | Medical image processing method, device, equipment and storage medium |
-
2020
- 2020-12-18 CN CN202011508405.8A patent/CN112465819B/en active Active
-
2021
- 2021-03-25 WO PCT/CN2021/083088 patent/WO2022126903A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180260951A1 (en) * | 2017-03-08 | 2018-09-13 | Siemens Healthcare Gmbh | Deep Image-to-Image Recurrent Network with Shape Basis for Automatic Vertebra Labeling in Large-Scale 3D CT Volumes |
CN111583220A (en) * | 2020-04-30 | 2020-08-25 | 腾讯科技(深圳)有限公司 | Image data detection method and device |
CN111754473A (en) * | 2020-06-17 | 2020-10-09 | 平安科技(深圳)有限公司 | Abnormal image screening method, device and equipment for 3D image and storage medium |
CN111915609A (en) * | 2020-09-22 | 2020-11-10 | 平安科技(深圳)有限公司 | Focus detection analysis method, device, electronic equipment and computer storage medium |
CN112465819A (en) * | 2020-12-18 | 2021-03-09 | 平安科技(深圳)有限公司 | Image abnormal area detection method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112465819A (en) | 2021-03-09 |
CN112465819B (en) | 2024-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022126903A1 (en) | Method and device for image anomaly area detection, electronic device, and storage medium | |
ES2905660T3 (en) | Procedure and system for computer-assisted triage | |
US11416747B2 (en) | Three-dimensional (3D) convolution with 3D batch normalization | |
US20220165377A1 (en) | Ai-based multi-label heat map generating system and methods for use therewith | |
EP3327726B1 (en) | Anonymous and secure classification using a deep learning network | |
US11751832B2 (en) | CTA large vessel occlusion model | |
US12073939B2 (en) | Volumetric imaging technique for medical imaging processing system | |
JP2022118078A (en) | Systems and methods for anonymizing health data and modifying and redacting health data across geographic regions for analysis | |
US11462315B2 (en) | Medical scan co-registration and methods for use therewith | |
WO2021189909A1 (en) | Lesion detection and analysis method and apparatus, and electronic device and computer storage medium | |
US11602302B1 (en) | Machine learning based non-invasive diagnosis of thyroid disease | |
US20230014705A1 (en) | Method and system for computer-aided triage | |
WO2021189855A1 (en) | Image recognition method and apparatus based on ct sequence, and electronic device and medium | |
US11526994B1 (en) | Labeling, visualization, and volumetric quantification of high-grade brain glioma from MRI images | |
EP3735651A1 (en) | Inserting a further data block into a first ledger | |
CN110210234B (en) | Medical information migration method and device during referral, computer equipment and storage medium | |
CN107239722B (en) | Method and device for extracting diagnosis object from medical document | |
CN112582070A (en) | Providing and receiving medical data records | |
US20200082943A1 (en) | Diagnosis support apparatus, diagnosis support system, diagnosis support method, and non-transitory storage medium | |
CN114092475A (en) | Focal length determining method, image labeling method, device and computer equipment | |
US20230316505A1 (en) | Medical scan viewing system with roc adjustment and methods for use therewith | |
CN112927152B (en) | CT image denoising processing method, device, computer equipment and medium | |
US20220005588A1 (en) | Machine Learning of Dental Images to Expedite Insurance Claim Approvals and Identify Insurance Fraud | |
CN116563539A (en) | Tumor image segmentation method, device, equipment and computer readable storage medium | |
CN115760813A (en) | Screw channel generation method, device, equipment, medium and program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21904843 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21904843 Country of ref document: EP Kind code of ref document: A1 |