Pathological image detection method, device, computer equipment and storage medium
By adding feature extraction channels and inserting additional input modules into the convolutional neural network, a multi-scale neural network model is constructed, which solves the problem of the convolutional neural network's insufficient ability to fuse features of different scales in skin pathology image detection, and improves detection accuracy and efficiency.
Patent Information
- Application Number
- CN202110254516.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-09
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-03-09
AI Technical Summary
Existing convolutional neural networks lack the ability to fuse features of different scales in skin pathology image detection, resulting in insufficient resolution when cell morphology is not very different or cells are densely packed, reducing the detection accuracy and efficiency of pathology image detection.
By adding feature extraction channels to the original neural network model, a multi-scale neural network model is constructed, and additional input modules are inserted at the end of the downsampling layer or the continuous downsampling layer to improve the feature extraction capability of the model and enhance the preservation of image features.
It improves the detection accuracy and efficiency of pathological image detection, enhances the model's ability to preserve image features, and improves the accuracy of detection results.
Smart Images

Figure CN112802012B
Abstract
Description
Technical Field
[0001] The present application relates to the field of image detection technology, and in particular to a pathological image detection method, device, computer equipment and storage medium. Background Art
[0002] Histopathology is the gold standard for diagnosing local suspicious hyperplasia as benign or malignant diseases and their subtypes. Disease diagnosis results can be obtained by performing pathological tests on pathological images. With the development of convolutional neural networks in histopathological image detection technology, high detection accuracy has been achieved in medical image detection such as disease classification, lesion segmentation, cell detection, cell nucleus detection, and mitosis detection.
[0003] In skin pathology image detection, although convolutional neural networks can be used to classify the pathological levels of malignant melanoma and benign moles, existing convolutional neural networks lack the ability to fuse features of different scales. When the cell morphology in the pathology image is not very different or the cells are densely packed, the resolution of the convolutional neural network will be insufficient, thereby reducing the detection accuracy and efficiency of pathology image detection. Summary of the invention
[0004] Based on this, it is necessary to provide a pathological image detection method, device, computer equipment and storage medium that can improve the detection accuracy and efficiency of pathological image detection in response to the above technical problems.
[0005] A pathological image detection method, the method comprising:
[0006] Acquire a pathological image to be detected;
[0007] Using a pre-trained pathological image detection model to perform pathological detection on the pathological image to be detected to obtain a pathological image detection result;
[0008] The training process of the pathological image detection model includes:
[0009] Acquire a sample set, wherein the sample set includes a pathological image obtained by processing each original pathological image;
[0010] Training each neural network model according to the sample set to obtain corresponding image detection models; the neural network model is a neural network model constructed by adding a feature extraction channel to the original neural network model;
[0011] Using each of the image detection models to perform image detection tests to obtain corresponding image detection test results;
[0012] The image detection test results are compared, and the pathological image detection model is determined from among the image detection models according to the comparison results.
[0013] In one embodiment, the construction method of each of the neural network models includes:
[0014] Insert each additional input module into each model position of the original neural network model to obtain each constructed neural network model, the additional input module is used to increase the feature extraction channel of the sample set during model training, and the number of the additional input module is at least one.
[0015] In one embodiment, the inserting of each additional input module into each model position of the original neural network model comprises:
[0016] Each of the additional input modules is respectively inserted into the end of the corresponding downsampling layer or the continuous downsampling layer of the original neural network, and the output width of each of the additional input modules is the same as the output width of the downsampling layer or the continuous downsampling layer of the original neural network.
[0017] In one of the embodiments, when each neural network model is trained according to the sample set to obtain the corresponding image detection models, the image input into each additional input module is a scaled pathological image in the sample set.
[0018] In one embodiment, the number of insertable positions of each additional input module in the original neural network model is the same as the number of non-continuous downsampling layers of the original neural network model, and the number of insertable positions is at least one.
[0019] In one embodiment, the method for determining the number of the additional input modules inserted into the original neural network model and the corresponding insertion positions includes:
[0020] Determine a search space, wherein the search space includes each insertable position of the original neural network model;
[0021] Obtaining a current additional input module, inserting the current additional input module into each of the insertable positions of the original neural network model, respectively, to obtain each initial neural network model; performing an image detection test on each of the initial neural network models, to obtain corresponding initial detection results;
[0022] Determine an insertion position of the current additional input module according to each of the initial detection results, and remove the determined insertion position and the insertable position corresponding to the initial detection result less than a preset accuracy from the search space;
[0023] Acquire the next additional input module as the current additional input module, and return to the step of inserting the current additional input module into each of the insertable positions of the original neural network model until the search space is empty;
[0024] In the determined initial detection results corresponding to each of the insertion positions, the additional input modules and corresponding insertion positions corresponding to the initial detection results with high detection accuracy are determined as the additional input modules and corresponding insertion positions that can be inserted into the original neural network model.
[0025] In one embodiment, the method for determining the number of the additional input modules inserted into the original neural network model and the corresponding insertion positions includes:
[0026] Determine a search space, wherein the search space includes each insertable position of the original neural network model;
[0027] Performing an image detection test on the original neural network model to obtain an original detection result;
[0028] Obtaining the current additional input module and the current insertable position of the search space;
[0029] Inserting the current additional input module to obtain a current initial neural network model, wherein the current additional input module is inserted into the current insertable position of the original neural network model; performing an image detection test on the current initial neural network model to obtain a first initial detection result;
[0030] When the first initial detection result is greater than the original detection result, determining the insertion position corresponding to the first initial detection result as the insertion position of the current additional input module, and using the current initial network model corresponding to the first initial detection result as the original neural network model;
[0031] removing the current insertable position from the search space, taking the next additional input module as the current additional input module, obtaining the next insertable position of the search space as the current insertable position, and returning to the step of obtaining the current additional input module and the current insertable position of the search space until the search space is empty;
[0032] In the determined initial detection results corresponding to each of the insertion positions, the additional input modules and corresponding insertion positions corresponding to the initial detection results with high detection accuracy are determined as the additional input modules and corresponding insertion positions that can be inserted into the original neural network model.
[0033] A pathological image detection device, comprising:
[0034] A pathological image acquisition module, used for acquiring a pathological image to be detected;
[0035] A pathological image detection module, used to perform pathological detection on the pathological image to be detected using a pre-trained pathological image detection model to obtain a pathological image detection result;
[0036] A pathological image detection model acquisition module is used to acquire the pathological image detection model; wherein the training process of the pathological image detection model includes: acquiring a sample set, the sample set including pathological images obtained after processing each original pathological image; training each neural network model according to the sample set to obtain corresponding image detection models; the neural network model is a neural network model constructed after adding a feature extraction channel to the original neural network model; using each of the image detection models to perform image detection tests to obtain corresponding image detection test results; comparing each of the image detection test results, and determining the pathological image detection model from each of the image detection models according to the comparison results.
[0037] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0038] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.
[0039] The above-mentioned pathological image detection method, device, computer equipment and storage medium obtain the pathological image to be detected; use the pre-trained pathological image detection model to perform pathological detection on the pathological image to be detected to obtain the pathological image detection result; in the training process of the pathological image detection model, each neural network model is trained according to the sample set to obtain the corresponding image detection model; wherein the neural network model is a neural network model constructed after adding a feature extraction channel to the original neural network model; and then the pathological image detection model is determined from each image detection model. The above-mentioned embodiment method is adopted to construct a neural network model by adding a feature extraction channel, so that the pathological image detection model obtained by training can save more image features, thereby effectively improving the detection accuracy and efficiency of pathological image detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A diagram showing an application environment of a pathological image detection method in an embodiment;
[0041] Figure 2 A schematic diagram of a process of a pathological image detection method in one embodiment;
[0042] Figure 3Schematic diagram of a training process of a pathological image detection model in one embodiment;
[0043] Figure 4 is a schematic diagram of a neural network model constructed in one embodiment;
[0044] Figure 5 is a schematic diagram of an additional input module in one embodiment;
[0045] Figure 6 is a schematic diagram of a pathological image in a sample set in a specific embodiment;
[0046] Figure 7 is a structural block diagram of a pathological image detection device in one embodiment;
[0047] Figure 8 It is a structural block diagram of a pathological image detection model acquisition module in one embodiment;
[0048] Fig. 9 is an internal structure diagram of a computer device in one embodiment;
[0049] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0051] In one embodiment, the pathological image detection method provided by the present application can be applied to Figure 1 In the application environment shown, the application environment involves both a terminal 102 and a server 104, and the terminal 102 communicates with the server 104 through a network. Specifically, the server 104 obtains the pathological image to be detected through the terminal 102; a pre-trained pathological image detection model is used to perform pathological detection on the pathological image to be detected, and a pathological image detection result is obtained; wherein the training process of the pathological image detection model includes: obtaining a sample set, the sample set includes a pathological image obtained after processing each original pathological image; training each neural network model according to the sample set to obtain corresponding image detection models; the neural network model is a neural network model constructed after adding a feature extraction channel to the original neural network model; using each image detection model to perform image detection test, and obtaining corresponding image detection test results; comparing each image detection test result, and determining the pathological image detection model from each image detection model according to the comparison result.
[0052] In one embodiment, the server 104 may also train a pathological image detection model, and the terminal 102 obtains the pathological image detection model from the server 104. The terminal 102 obtains a pathological image to be detected; and uses the obtained pathological image detection model to perform pathological detection on the pathological image to be detected to obtain a pathological image detection result.
[0053] In one embodiment, the pathological image detection model may also be trained by the terminal 102. The terminal 102 obtains a pathological image to be detected; and uses a pre-trained pathological image detection model to perform pathological detection on the pathological image to be detected to obtain a pathological image detection result.
[0054] The terminal 102 may be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0055] In one embodiment, if Figure 2 As shown, a pathological image detection method is provided, and the method is applied to a terminal 102 or a server 104 for pathological image detection as an example for description, and includes the following steps:
[0056] Step S202: Acquire a pathological image to be detected.
[0057] The pathological image to be detected is a pathological image of tissue that needs to be pathologically detected. The pathological image of the tissue is called a pathological image and comes from the patient. Histopathology is the gold standard for diagnosing local suspicious hyperplasia as benign or malignant diseases and their subtypes. The disease diagnosis result can be obtained by pathologically detecting the pathological image. Specifically, the pathological image to be detected is obtained.
[0058] Step S204: perform pathology detection on the pathology image to be detected using the pre-trained pathology image detection model to obtain a pathology image detection result.
[0059] The pathological image detection model is a pre-trained model. When in use, the pathological image detection model can be directly run, and the pathological image to be detected can be imported to perform pathological detection, and the disease type corresponding to the pathological image to be detected can be obtained. Specifically, the pathological image to be detected is imported into the pre-trained pathological image detection model for pathological detection to obtain the pathological image detection result.
[0060] In one embodiment, if Figure 3 As shown, a training process of a pathological image detection model is provided, and the process is described by taking the terminal 102 or the server 104 for training the pathological image detection model as an example, including the following steps:
[0061] Step S302: Acquire a sample set, where the sample set includes pathological images obtained by processing each original pathological image.
[0062] The original pathological images are multiple unprocessed pathological images of different disease types from patients. Specifically, when pathological image detection is applied to skin pathology detection, the original pathological images mainly include whole slide images (WSI) images from multiple hospitals and cancer databases (The Cancer Genome Atlas, TCGA), which mainly include melanoma, intradermal nevus, junctional nevus, compound nevus and other diseases.
[0063] In one embodiment, each original pathological image is preprocessed, mainly including image color and size processing. Specifically, the Macenko method can be used to normalize the color of the WSI original pathological image, and each WSI image is cut into patch images of a preset size under a preset magnification of the microscope, which are called sub-images. The preset magnification of the microscope can be set to 40 times (X), and the preset size can be set to 512*512 pixels.
[0064] In one embodiment, after processing each original pathological image, a sub-image that meets a preset condition is selected from each WSI image as a pathological image in a sample set, and the sample set is used to train a pathological image detection model. The preset condition can be set to that the area of the lesion tissue in the sub-image accounts for 50% or more of the total area of the sub-image, so as to improve the detection accuracy of the trained pathological image detection model.
[0065] In one of the embodiments, after obtaining the sample set, the sample set can be expanded by horizontal rotation, flipping and cutting, and the pathological images in the sample set are divided into a training set, a validation set and a test set. The validation set is a redivision of the training set and is used to adjust the parameters of the model. When dividing the sample set, the pathological images in the three sets do not overlap, that is, the pathological images belonging to the same patient only exist in one of the training set, the validation set and the test set. Specifically, the patients from whom the pathological images come can be distinguished by setting the image name, attributes, etc.
[0066] Step S304, training each neural network model according to the sample set to obtain corresponding image detection models; the neural network model is a neural network model constructed by adding a feature extraction channel to the original neural network model.
[0067] In one of the embodiments, in order to improve the detection accuracy of the pathological image detection model, a feature extraction channel is added to the original neural network model so that it can save more image features. Specifically, an additional input module is inserted into the original neural network model to construct a multi-scale neural network model, and the inserted additional input module constitutes an insertion layer, and its additional image feature information can improve the feature extraction capability of the model.
[0068] Specifically, each additional input module is inserted into each model position of the original neural network model to obtain each constructed neural network model, and the additional input module is used to increase the feature extraction channel of the sample set during model training. The number of additional input modules is at least one. However, when the detection accuracy of the original neural network model cannot be improved after inserting the additional input modules into all model positions of the original neural network model, the number of additional input modules may also be 0.
[0069] In one of the embodiments, the position in the original neural network model where the additional input module can be inserted is called an insertable position. Specifically, the number of insertable positions of each additional input module in the original neural network model is the same as the number of non-continuous downsampling layers of the original neural network model, and the number of insertable positions is at least one. For example, the number of non-continuous downsampling layers of the VGG neural network model is 5, and the number of corresponding insertable positions of the model is 5. The number of downsampling layers of the ResNet50 neural network model is 5, of which 2 downsampling layers are continuous sampling layers, that is, the number of non-continuous sampling layers is 4, and the number of corresponding insertable positions of the model is 4.
[0070] In one embodiment, the image input into each additional input module is a pathological image in a scaled sample set to preserve more global image features. Figure 4 As shown, a schematic diagram of a constructed neural network model is provided. The original neural network model includes 5 Block modules and a classifier layer, and there are 3 insertable positions. After inserting 3 Input Block additional input modules into the original neural network model, the neural network model is constructed. In the constructed neural network model, the pathological image I0 in the sample set is input to Block module 1, and the images I1, I2 and I3 input into the Input Block additional input module are obtained by downsampling the pathological image I0, and the sizes of the images I1, I2 and I3 are respectively equal to the size of the inserted layer image.
[0071] In one embodiment, all additional input modules have the same topology. Figure 5As shown in FIG. 1 , a schematic diagram of an additional input module is provided. The additional input module can be a three-layer stack, using three convolutional layers, namely 1*1, 3*3 and 1*1 convolutional layers, to gradually expand the image feature extraction channels from 3 to N, where N represents the number of downsampling layers. The output of the additional input module is aggregated with the output of the downsampling layer in series, and the series connection is used as the input of the insertion layer.
[0072] In one embodiment, when each additional input module is inserted into the original neural network model, a preset insertion rule is followed. The preset insertion rule is set so that each additional input module can only be inserted into the end of the downsampling layer or the continuous downsampling layer of the original neural network model, and the output width of the additional input module is the same as the output width of the downsampling layer or the continuous downsampling layer. Specifically, each additional input module is inserted into the end of the corresponding downsampling layer or the continuous downsampling layer of the original neural network, and the output width of each additional input module is the same as the output width of the downsampling layer or the continuous downsampling layer of the original neural network.
[0073] Specifically, each neural network model is trained according to the training set and the validation set to obtain corresponding image detection models; wherein the neural network model is a neural network model constructed after adding a feature extraction channel to the original neural network model.
[0074] Step S306, using each image detection model to perform image detection test to obtain corresponding image detection test results.
[0075] Specifically, an image detection test is performed on each image detection model according to the test set to obtain each image detection test result corresponding to each image detection model, wherein the image detection test result may include detection accuracy.
[0076] Step S308, comparing the image detection test results, and determining the pathological image detection model from the image detection models according to the comparison results.
[0077] Specifically, the detection accuracy of each image detection test result is compared, and the image detection model with the highest detection accuracy is determined as the pathology image detection model used for pathology detection.
[0078] In the above-mentioned pathological image detection method, a pathological image to be detected is obtained; a pre-trained pathological image detection model is used to perform pathological detection on the pathological image to be detected, and a pathological image detection result is obtained; in the training process of the pathological image detection model, each neural network model is trained according to the sample set to obtain the corresponding image detection model; wherein the neural network model is a neural network model constructed after adding a feature extraction channel to the original neural network model; and then the pathological image detection model is determined from each image detection model. The above-mentioned embodiment method is adopted, and an additional input module is inserted into the original neural network model to add a feature extraction channel and construct a neural network model, so that the pathological image detection model obtained by training can save more image features, thereby effectively improving the detection accuracy and efficiency of pathological image detection.
[0079] Since the number of additional input modules inserted into the original neural network model and the corresponding insertion positions are different, the model obtained by subsequent training will have different effects, and there may be a situation where the detection accuracy of the model still decreases even if the additional input modules are inserted. Therefore, in order to improve the detection accuracy and efficiency of the model, two methods for determining the number of additional input modules inserted into the original neural network model and the corresponding insertion positions are proposed.
[0080] In one embodiment, a method for determining the number of additional input modules to be inserted into an original neural network model and the corresponding insertion positions is provided, which gives priority to the detection accuracy of the model, and is called an accuracy-first multi-scale network search algorithm, comprising the following steps:
[0081] Step S402, determining a search space, where the search space includes each insertable position of the original neural network model.
[0082] The insertable positions of the original neural network model are determined according to the number of discontinuous downsampling layers of the original neural network model, and the set of all the insertable positions is used as the search space. Specifically, the m insertable positions q are represented as q1, q2…, qm, respectively, and the search space Q is represented as Q = {q1, q2…, qm}.
[0083] Step S404, obtain the current additional input module, insert the current additional input module into each insertable position of the original neural network model, and obtain each initial neural network model; perform image detection test on each initial neural network model to obtain corresponding initial detection results.
[0084] Among them, when inserting each additional input module into the original neural network model, only one additional input module and its corresponding insertion position are determined each time, and then the number of each additional input module and the corresponding insertion position are determined. When the number of additional input modules is one, the insertion position corresponding to the additional input module is determined; when the number of additional input modules is two, the insertion position corresponding to the first additional input module has been determined by the above steps, and only the insertion position corresponding to the second additional input module needs to be determined, and so on.
[0085] Specifically, the current additional input module is obtained, and the current additional input module is respectively inserted into each insertable position q1, q2..., qm of the original neural network model to obtain each initial neural network model; image detection test is performed on each initial neural network model to obtain corresponding initial detection results, that is, detection accuracy.
[0086] Step S406, determining the insertion position of the current additional input module according to each initial detection result, and removing the determined insertion position and the insertable position corresponding to the initial detection result less than a preset accuracy from the search space.
[0087] The preset accuracy is set to the image detection test result corresponding to the original neural network after the original neural network model is subjected to the image detection test. Specifically, after obtaining each initial detection result corresponding to each initial network model, the initial detection result with high detection accuracy is selected, and the insertable position corresponding to the initial detection result is determined as the insertion position of the current additional input module. Then, the insertion position is removed from the search space, and the insertable position corresponding to the initial detection result with less than the preset accuracy is removed from the search space, so that the search space becomes smaller and smaller.
[0088] Step S408, obtaining the next additional input module as the current additional input module, and returning to the step of inserting the current additional input module into each insertable position of the original neural network model until the search space is empty.
[0089] After determining the insertion position corresponding to the first additional input module, when the number of additional input modules is two, only the insertion position corresponding to the second additional input module needs to be determined. The determination can be made by returning and repeating the above steps S404-S406 until there is no insertable position in the search space, that is, the search space is empty.
[0090] Specifically, the next additional input module is obtained as the current additional input module, and the step of inserting the current additional input module into each insertable position of the original neural network model is returned until the search space is empty.
[0091] Step S410, in the initial detection results corresponding to the determined insertion positions, the additional input modules and the corresponding insertion positions corresponding to the initial detection results with high detection accuracy are determined as the additional input modules and the corresponding insertion positions that can be inserted into the original neural network model.
[0092] Specifically, in the above steps S404-S408, initial detection results of multiple additional input modules and corresponding insertion positions are obtained, and the additional input modules and corresponding insertion positions corresponding to the initial detection results with high detection accuracy are selected to determine the additional input modules and corresponding insertion positions that can be inserted into the original neural network model.
[0093] In one embodiment, the computer code of the precision-first multi-scale network search algorithm is as follows. Wherein, Q represents the search space, m represents the number of insertable positions, q1, q2, ..., qm represent the 1st, 2nd ... mth insertable positions respectively, model represents the initial network model, r represents the detection accuracy of the model, W represents the WSI pathological image sample set, σ represents the model accuracy threshold, which can be set to 0.0005 to improve the efficiency of network search. The time complexity O of the precision-first multi-scale network search algorithm is expressed as (m 2 / 2)*T, where T represents the time to train and test the model on the sample set.
[0094]
[0095]
[0096] In one embodiment, another method for determining the number of additional input modules to be inserted into the original neural network model and the corresponding insertion positions is provided, which gives priority to the training speed of the model, and is called a speed-priority multi-scale network search algorithm, and includes the following steps:
[0097] Step S502, determining a search space, where the search space includes each insertable position of the original neural network model.
[0098] Among them, the various insertable positions of the original neural network model are determined according to the number of non-continuous downsampling layers of the original neural network model, and the set of all insertable positions is used as the search space. In the search space, the various insertable positions are sorted from shallow to deep according to their depth in the original neural network model. Specifically, the m insertable positions q are represented as q1, q2…, qm, respectively, and the search space Q is represented as Q = {q1, q2…, qm}.
[0099] Step S504, performing image detection test on the original neural network model to obtain original detection results.
[0100] Specifically, an image detection test is performed on the original neural network model before the additional input module is inserted to obtain the original detection result.
[0101] Step S506, obtaining the current additional input module and the current insertable position in the search space.
[0102] Among them, when inserting each additional input module into the original neural network model, only one additional input module and its corresponding insertion position are determined each time, and then the number of each additional input module and the corresponding insertion position are determined. When the number of additional input modules is one, the insertion position corresponding to the additional input module is determined; when the number of additional input modules is two, the insertion position corresponding to the first additional input module has been determined by the above steps, and only the insertion position corresponding to the second additional input module needs to be determined, and so on.
[0103] Specifically, the current additional input module and the current insertable position of the search space Q are obtained. The current insert position is obtained in sequence in the search space, that is, the current insert position is q1.
[0104] Step S508, insert the current additional input module to obtain the current initial neural network model, and insert the current additional input module into the current insertable position of the original neural network model; perform image detection test on the current initial neural network model to obtain a first initial detection result.
[0105] Specifically, the current additional input module is inserted into the current insertable position q1 to obtain the current initial neural network model, and an image detection test is performed on the current initial neural network model to obtain a first initial detection result.
[0106] Step S510, when the first initial detection result is greater than the original detection result, the insertion position corresponding to the first initial detection result is determined as the insertion position of the current additional input module, and the current initial network model corresponding to the first initial detection result is used as the original neural network model.
[0107] Specifically, when the first initial detection result is greater than the original detection result, the insertion position q1 corresponding to the first initial detection result is directly determined as the insertion position of the current additional input module, and the second initial detection result corresponding to the next currently insertable position q2 is no longer calculated, so as to improve the training speed of the model. Then, the current initial network model corresponding to the first initial detection result is used as the new original neural network model when the second additional input module is inserted, that is, the second initial detection result corresponding to the insertion of the second additional input module is compared with the original detection result of the new original neural network model, that is, compared with the first initial detection result.
[0108] In one of the embodiments, when the first initial detection result is less than or equal to the original detection result, the step of using the current initial network model corresponding to the first initial detection result as the original neural network model is not performed, that is, the structure of the original neural network model is not changed.
[0109] Specifically, when the first initial detection result is greater than the original detection result, the insertion position corresponding to the first initial detection result is determined as the insertion position of the current additional input module, and the current initial network model corresponding to the first initial detection result is used as the original neural network model.
[0110] Step S512, remove the current insertable position from the search space, take the next additional input module as the current additional input module, obtain the next insertable position of the search space as the current insertable position, return to the step of obtaining the current additional input module and the current insertable position of the search space, until the search space is empty.
[0111] Among them, after the first initial detection result is compared with the original detection result, no matter whether the first initial detection result is greater than the original detection result, or the first initial detection result is less than the original detection result, the used insertable position q1 will be calculated and removed from the search space to make the search space smaller and smaller. When the number of additional input modules is two, it is only necessary to determine the insertion position corresponding to the second additional input module. The next insertable position q2 in the search space is used as the current insertable position, and the current additional input module is inserted into the current insertable position q2, and the above steps S504-S512 are returned and repeated until there is no insertable position in the search space, that is, the search space is empty.
[0112] Specifically, remove the current insertable position from the search space, take the next additional input module as the current additional input module, obtain the next insertable position of the search space as the current insertable position, return to the step of obtaining the current additional input module and the current insertable position of the search space, until the search space is empty.
[0113] Step S514, among the initial detection results corresponding to the determined insertion positions, the additional input modules and the corresponding insertion positions corresponding to the initial detection results with high detection accuracy are determined as the additional input modules and the corresponding insertion positions that can be inserted into the original neural network model.
[0114] Specifically, in the above steps S504-S512, initial detection results of multiple additional input modules and corresponding insertion positions are obtained, and the additional input modules and corresponding insertion positions corresponding to the initial detection results with high detection accuracy are selected to determine the additional input modules and corresponding insertion positions that can be inserted into the original neural network model.
[0115] In one embodiment, the computer code of the speed-first multi-scale network search algorithm is as follows. Wherein, Q represents the search space, m represents the number of insertable positions, q1, q2, ..., qm represent the 1st, 2nd ... mth insertable positions respectively, model represents the initial network model, r represents the detection accuracy of the model, W represents the WSI pathological image sample set, and σ represents the model accuracy threshold to improve the efficiency of the network search, which can be set to 0.0005. The time complexity O of the speed-first multi-scale network search algorithm is expressed as m*T, where T represents the time for training and testing the model on the sample set. Compared with the accuracy-first multi-scale network search algorithm, the time complexity of the speed-first multi-scale network search algorithm has been greatly reduced.
[0116]
[0117] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and one of the specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0118] In one specific embodiment, when the pathological image detection method is applied to skin pathology detection, the specific steps are as follows:
[0119] 1. Obtaining the sample set
[0120] 2241 WSI original images were obtained from Xiangya Hospital, Yale School of Medicine and TCGA, including four diseases: melanoma, intradermal nevus, junctional nevus and compound nevus. The Macenko method was used to normalize the color of the WSI original pathological images, and each WSI image was cut into a patch image of 512*512 pixels.
[0121] Patch images in which the lesion tissue area accounts for 50% or more of the total area of the patch image are selected as pathological images in the WSI sample set, specifically including 200,000 patch images in 2241 WSI original images. The pathological images in the WSI sample set are divided into training set, validation set and test set, as shown in Table 1. Among them, taking 42,002 / 760 in the training set of Melanoma in Table 1 as an example, 42002 represents 42002 patch images, 760 represents 760 WSI original images, and so on. Schematic diagram of pathological images of each disease type in the WSI sample set, as shown in Figure 6 shown.
[0122] Table 1 WSI sample set
[0123]
[0124] 2. Determine the pathological image detection model
[0125] The original neural network model was selected as the ResNet50 neural network model. Each neural network model was constructed by inserting additional input modules at each model position of the original neural network model. The detection accuracy of the corresponding image detection models was compared, and the effectiveness of the precision-first multi-scale network search algorithm and the speed-first multi-scale network search algorithm was evaluated. The number of additional input modules and the corresponding insertion positions were determined, and finally the pathological image detection model was determined.
[0126] The WSI sample set was expanded by lateral rotation, flipping and shearing, and the stochastic gradient descent (SGD) optimization method was used with a momentum of 0.9, a weight decay of 0.0001, and an initial learning rate of 0.01. There are 4 insertable positions in the ResNet50 neural network model. The calculation process and results of the precision-first multi-scale network search algorithm are shown in Table 2. Eight models were trained. Among them, the Inserted position and the Possible position are None, indicating the original neural network model, the Inserted position indicates that the position has been inserted, and the Possible position indicates the position of this insertion and test.
[0127] Specifically, in step 1, it is determined that the selected insertion position is q1, and the insertable position q4 is excluded. In step 2, it is determined that the selected insertion position is q3. In step 3, if all insertable positions cannot achieve a higher detection accuracy, the calculation stops. As shown in Table 2, when the number of additional input modules is two and the insertion positions are q1 and q3, the detection accuracy of the pathological image detection model after the constructed neural network model training is the best, reaching 97.3%.
[0128] Table 2 Calculation process and results of the precision-first multi-scale network search algorithm
[0129]
[0130] The calculation process and results of the speed-priority multi-scale network search algorithm are shown in Table 3. Five models were trained. Among them, Inserted position and Possible position are None, which means the original neural network model, Inserted position means that the position has been inserted, and Possible position means the position of this insertion and test.
[0131] Specifically, in step 1, it is determined that the selected insertion position is q1. In step 2, when the insertion position is q2, the model cannot achieve higher detection accuracy, so the insertable position q2 is excluded and the calculation continues. In step 3, it is determined that the selected insertion position is q3. In step 4, the insertable position q4 is finally excluded. It can be seen from Table 3 that when the number of additional input modules is two and the insertion positions are q1 and q3, the detection accuracy of the pathological image detection model after the constructed neural network model training is the best, reaching 97.3%.
[0132] Table 3 Calculation process and results of speed-first multi-scale network search algorithm
[0133]
[0134] Similarly, the original neural network models are selected as InveptionV4 and EfficientNetB0 neural network models, and the optimal number of additional input modules and the corresponding insertion positions determined by the above two algorithms are shown in Table 4.
[0135] Among them, Inserted position and Possible position are None, indicating the original neural network model, and Inserted position indicates that the detection accuracy of the pathological image detection model after the training of the neural network model constructed when the position is inserted is the best.
[0136] Table 4 Calculation results corresponding to other original neural network models
[0137]
[0138] The above two algorithms can be used to construct multiple neural network models with high detection accuracy, which can improve the detection accuracy of the original neural network model by 1.1%-2.7%. In practical applications, when determining the number of additional input modules to be inserted into the original neural network model and the corresponding insertion positions, one of the algorithms can be selected at will. The model with the highest detection accuracy is determined as the pathological image detection model.
[0139] Pathological Image Detection
[0140] A pathological image to be detected is obtained, and a pathological image detection model is used to perform pathological detection on the pathological image to be detected, so as to obtain the disease type corresponding to the pathological image to be detected.
[0141] In one of the specific embodiments, the performance of the neural network model constructed after inserting the additional input module is analyzed through an ablation experiment. The ablation experiment refers to controlling a condition or parameter to remain unchanged and determining, based on the ablation experiment results, that a certain condition or parameter has a greater impact on the result.
[0142] Specifically, three network models were designed in the ablation experiment, including: a network model that replaces concatenation with summation, a network model that replaces concatenation with 1*1 convolutional layers, and a network model that replaces the additional input module with a module with a wider output channel, which only widens the output channel at the insertion position.
[0143] The original neural network model is selected as the ResNet50 neural network model, and a neural network model with three additional input modules and insertion positions q1, q2 and q3 is constructed, as well as the network models of the above three ablation experiments. Table 5 shows the comparison of the ablation experiment results, from which it can be concluded that inserting additional input modules into the original neural network model is the main reason for effectively improving the detection accuracy and efficiency of pathological image detection.
[0144] Table 5. Comparison of ablation experiment results
[0145]
[0146] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0147] In one embodiment, if Figure 7 As shown, a pathological image detection device is provided, including: a pathological image acquisition module 610, a pathological image detection module 620 and a pathological image detection model acquisition module 630, wherein:
[0148] The pathological image acquisition module 610 is used to acquire the pathological image to be detected.
[0149] The pathological image detection module 620 is used to perform pathological detection on the pathological image to be detected by using a pre-trained pathological image detection model to obtain a pathological image detection result.
[0150] The pathological image detection model acquisition module 630 is used to acquire the pathological image detection model. The training process of the pathological image detection model includes: acquiring a sample set, wherein the sample set includes pathological images obtained after processing each original pathological image; training each neural network model according to the sample set to obtain corresponding image detection models; the neural network model is a neural network model constructed by adding a feature extraction channel to the original neural network model; performing image detection tests using each image detection model to obtain corresponding image detection test results; comparing each image detection test result, and determining the pathological image detection model from each image detection model according to the comparison result.
[0151] In one embodiment, the pathological image detection model acquisition module 630 is used to acquire the pathological image detection model from a model training device. Wherein, when the pathological image detection device is a terminal, the model training device may be a server or other terminal device used to train and acquire the pathological image detection model.
[0152] In one embodiment, the pathological image detection model acquisition module 630 can be trained to obtain the pathological image detection model by itself. Figure 8 As shown, the pathological image detection model acquisition module 630 specifically includes: a sample set acquisition module 710, a training module 720, a testing module 730 and a model determination module 740, wherein:
[0153] The sample set acquisition module 710 is used to acquire a sample set, where the sample set includes a pathological image obtained by processing each original pathological image.
[0154] The training module 720 is used to train each neural network model according to the sample set to obtain corresponding image detection models; the neural network model is a neural network model constructed by adding a feature extraction channel to the original neural network model.
[0155] The testing module 730 is used to perform image detection tests using each of the image detection models to obtain corresponding image detection test results.
[0156] The model determination module 740 is used to compare the image detection test results and determine the pathological image detection model from the image detection models according to the comparison results.
[0157] In one embodiment, the training module 720 includes the following units:
[0158] A model construction unit is used to insert each additional input module at each model position of the original neural network model to obtain each constructed neural network model, the additional input module is used to increase the feature extraction channel of the sample set during model training, and the number of the additional input module is at least one.
[0159] The image input unit is used for inputting the image in each additional input module as a scaled pathological image in the sample set when each neural network model is trained according to the sample set to obtain the corresponding image detection models.
[0160] In one embodiment, the model building unit includes the following units:
[0161] The additional input module insertion unit is used to insert each of the additional input modules into the end of the corresponding downsampling layer or the continuous downsampling layer of the original neural network, and the output width of each of the additional input modules is the same as the output width of the downsampling layer or the continuous downsampling layer of the original neural network.
[0162] The insertable position limiting unit is used to limit the number of insertable positions of each additional input module in the original neural network model to be the same as the number of non-continuous downsampling layers of the original neural network model, and the number of insertable positions is at least one.
[0163] The additional input module quantity and insertion position determination unit is used to determine the quantity and corresponding insertion positions of each additional input module to be inserted into the original neural network model.
[0164] In one embodiment, the additional input module quantity and insertion position determination unit includes the following units:
[0165] The first search space determination unit is used to determine the search space, and the search space includes each insertable position of the original neural network model.
[0166] The initial detection result acquisition unit is used to obtain the current additional input module, insert the current additional input module into each of the insertable positions of the original neural network model, and obtain each initial neural network model; perform image detection test on each of the initial neural network models to obtain corresponding initial detection results.
[0167] The first insertion position determination unit is used to determine the insertion position of the current additional input module according to each of the initial detection results, and remove the determined insertion position and the insertable position corresponding to the initial detection result less than a preset accuracy from the search space.
[0168] The second insertion position determination unit is used to obtain the next additional input module as the current additional input module, and return to the step of inserting the current additional input module into each of the insertable positions of the original neural network model until the search space is empty.
[0169] The first result determination unit is used to determine, among the initial detection results corresponding to the determined insertion positions, the additional input modules and the corresponding insertion positions corresponding to the initial detection results with high detection accuracy as the additional input modules and the corresponding insertion positions that can be inserted into the original neural network model.
[0170] In one embodiment, the additional input module quantity and insertion position determination unit includes the following units:
[0171] The second search space determination unit is used to determine the search space, and the search space includes each insertable position of the original neural network model.
[0172] The original detection result acquisition unit is used to perform image detection test on the original neural network model to obtain the original detection result.
[0173] The current insertable position acquisition unit is used to acquire the current additional input module and the current insertable position of the search space.
[0174] The first initial detection result acquisition unit is used to insert the current additional input module to obtain the current initial neural network model, wherein the current additional input module is inserted into the current insertable position of the original neural network model; and perform image detection test on the current initial neural network model to obtain a first initial detection result.
[0175] A third insertion position determination unit is used to determine the insertion position corresponding to the first initial detection result as the insertion position of the current additional input module when the first initial detection result is greater than the original detection result, and to use the current initial network model corresponding to the first initial detection result as the original neural network model.
[0176] The fourth insertion position determination unit is used to remove the current insertable position from the search space, take the next additional input module as the current additional input module, obtain the next insertable position of the search space as the current insertable position, and return to the step of obtaining the current additional input module and the current insertable position of the search space until the search space is empty.
[0177] The second result determination unit is used to determine the additional input modules and corresponding insertion positions corresponding to the initial detection results with high detection accuracy as the additional input modules and corresponding insertion positions that can be inserted into the original neural network model.
[0178] For the specific definition of the pathological image detection device, please refer to the definition of the pathological image detection method above, which will not be repeated here. Each module in the above-mentioned pathological image detection device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0179] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store pathological image detection data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a pathological image detection method is implemented.
[0180] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.10As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a pathological image detection method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0181] Those skilled in the art will understand that Figure 9-10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0182] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps of the above-mentioned pathological image detection method when executing the computer program.
[0183] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned pathological image detection method are implemented.
[0184] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0185] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0186] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A pathological image detection method, the method comprising: Acquire a pathological image to be detected; Using a pre-trained pathological image detection model to perform pathological detection on the pathological image to be detected to obtain a pathological image detection result; The training process of the pathological image detection model includes: Acquire a sample set, wherein the sample set includes a pathological image obtained by processing each original pathological image; Determine a search space, wherein the search space includes each insertable position of the original neural network model; Obtaining a current additional input module, inserting the current additional input module into each of the insertable positions of the original neural network model, respectively, to obtain each initial neural network model; performing an image detection test on each of the initial neural network models, to obtain corresponding initial detection results; Determine the insertion position of the current additional input module according to each of the initial detection results, and remove the determined insertion position and the insertable position corresponding to the initial detection result less than a preset accuracy from the search space; Acquire the next additional input module as the current additional input module, and return to the step of inserting the current additional input module into each of the insertable positions of the original neural network model until the search space is empty; In the determined initial detection results corresponding to each of the insertion positions, each additional input module corresponding to the initial detection result with high detection accuracy and the corresponding insertion position are determined as each of the additional input modules and the corresponding insertion position that can be inserted into the original neural network model; the additional input module is used to increase the feature extraction channel of the sample set during model training, and the number of the additional input modules is at least one; the number of the insertable positions of each of the additional input modules in the original neural network model is the same as the number of layers of the non-continuous downsampling layer of the original neural network model, and the number of the insertable positions is at least one; Inserting each additional input module into each model position of the original neural network model respectively to obtain each constructed neural network model; Training each of the neural network models according to the sample set to obtain corresponding image detection models; Using each of the image detection models to perform image detection tests to obtain corresponding image detection test results; The image detection test results are compared, and the pathological image detection model is determined from among the image detection models according to the comparison results.
2. The method according to claim 1, characterized in that The method of inserting each additional input module into each model position of the original neural network model comprises: Each of the additional input modules is respectively inserted into the end of the corresponding downsampling layer or the continuous downsampling layer of the original neural network, and the output width of each of the additional input modules is the same as the output width of the downsampling layer or the continuous downsampling layer of the original neural network.
3. The method according to claim 1, characterized in that When the neural network models are trained according to the sample set to obtain the corresponding image detection models, the image input into each additional input module is a scaled pathological image in the sample set.
4. The method according to claim 1, characterized in that: The method further comprises: Performing an image detection test on the original neural network model to obtain an original detection result; Obtaining the current additional input module and the current insertable position of the search space; Inserting the current additional input module to obtain a current initial neural network model, wherein the current additional input module is inserted into the current insertable position of the original neural network model; performing an image detection test on the current initial neural network model to obtain a first initial detection result; When the first initial detection result is greater than the original detection result, determining the insertion position corresponding to the first initial detection result as the insertion position of the current additional input module, and using the current initial neural network model corresponding to the first initial detection result as the original neural network model; removing the current insertable position from the search space, taking the next additional input module as the current additional input module, obtaining the next insertable position of the search space as the current insertable position, and returning to the step of obtaining the current additional input module and the current insertable position of the search space until the search space is empty; In the determined initial detection results corresponding to each of the insertion positions, the additional input modules and corresponding insertion positions corresponding to the initial detection results with high detection accuracy are determined as the additional input modules and corresponding insertion positions that can be inserted into the original neural network model.
5. A pathological image detection device, characterized in that: The device comprises: A pathological image acquisition module, used for acquiring a pathological image to be detected; A pathological image detection module, used to perform pathological detection on the pathological image to be detected using a pre-trained pathological image detection model to obtain a pathological image detection result; A pathological image detection model acquisition module is used to acquire the pathological image detection model; wherein the training process of the pathological image detection model includes: acquiring a sample set, wherein the sample set includes pathological images obtained after processing each original pathological image; determining a search space, wherein the search space includes each insertable position of the original neural network model; acquiring a current additional input module, inserting the current additional input module into each of the insertable positions of the original neural network model, and obtaining each initial neural network model; performing an image detection test on each of the initial neural network models to obtain each corresponding initial detection result; determining the insertion position of the current additional input module according to each of the initial detection results, and removing the determined insertion position and the insertable position corresponding to the initial detection result with a precision less than a preset precision from the search space; acquiring the next additional input module as the current additional input module, and returning to the step of inserting the current additional input module into each of the insertable positions of the original neural network model, until the search space is empty; after determining each of the insertion positions In the initial detection results corresponding to the positions, each additional input module and the corresponding insertion position corresponding to the initial detection results with high detection accuracy are determined as each additional input module and the corresponding insertion position that can be inserted into the original neural network model; the additional input module is used to increase the feature extraction channel of the sample set during model training, and the number of the additional input modules is at least one; the number of insertable positions of each additional input module in the original neural network model is the same as the number of non-continuous downsampling layers of the original neural network model, and the number of insertable positions is at least one; each additional input module is inserted into each model position of the original neural network model to obtain each constructed neural network model; each neural network model is trained according to the sample set to obtain corresponding image detection models; each image detection model is used to perform image detection test to obtain corresponding image detection test results; each image detection test result is compared, and the pathological image detection model is determined from each image detection model according to the comparison result.
6. The pathological image detection device according to claim 5, characterized in that: The pathological image detection model acquisition module is also used for: Each of the additional input modules is respectively inserted into the end of the corresponding downsampling layer or the continuous downsampling layer of the original neural network, and the output width of each of the additional input modules is the same as the output width of the downsampling layer or the continuous downsampling layer of the original neural network.
7. The pathological image detection device according to claim 5, characterized in that: The pathological image detection model acquisition module is also used for: When the neural network models are trained according to the sample set to obtain the corresponding image detection models, the image input into each additional input module is a scaled pathological image in the sample set.
8. The pathological image detection device according to claim 5, characterized in that: The pathological image detection model acquisition module is also used for: Performing an image detection test on the original neural network model to obtain an original detection result; Acquire the current additional input module and the current insertable position of the search space; Inserting the current additional input module to obtain a current initial neural network model, wherein the current additional input module is inserted into the current insertable position of the original neural network model; performing an image detection test on the current initial neural network model to obtain a first initial detection result; When the first initial detection result is greater than the original detection result, determining the insertion position corresponding to the first initial detection result as the insertion position of the current additional input module, and using the current initial neural network model corresponding to the first initial detection result as the original neural network model; removing the current insertable position from the search space, taking the next additional input module as the current additional input module, obtaining the next insertable position of the search space as the current insertable position, and returning to the step of obtaining the current additional input module and the current insertable position of the search space until the search space is empty; In the determined initial detection results corresponding to each of the insertion positions, the additional input modules and corresponding insertion positions corresponding to the initial detection results with high detection accuracy are determined as the additional input modules and corresponding insertion positions that can be inserted into the original neural network model.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
