Configuration method and device of AIS (Automatic Identification System) detection model and processing equipment

Through the detection model based on the Encoder-Decoder architecture, combined with NCCT and DWI images, the AIS detection model is annotated and trained, achieving high-precision detection at the AIS lesion section and patient level, and solving the stage model errors and false positive detection in the existing technology. problems, improving detection accuracy and adaptability.

CN118587153AInactive Publication Date: 2024-09-03TONGJI HOSPITAL ATTACHED TO TONGJI MEDICAL COLLEGE HUAZHONG SCI TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410579622.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-11
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing AIS detection methods have stage model cumulative errors in NCCT images, resulting in reduced detection accuracy. Especially when AIS lesions have fewer sections, there are many false positive detection areas, and errors accumulate in model cascade classification tasks, affecting detection accuracy. sex.

Method used

Using a detection model based on the Encoder-Decoder architecture, by acquiring sample NCCT images and DWI images, labeling AIS lesion sections, training the model to perform feature extraction and prediction at all section levels, achieving 2D section-level AIS detection and 3D patient-level diagnosis , using synergy effects to improve prediction performance and reduce false positive detections.

Benefits of technology

It significantly improves the precision and accuracy of AIS detection, adapts to real application scenarios, meets the needs of high-quality AIS detection, reduces model cascade errors, and improves the robustness of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587153A
    Figure CN118587153A
Patent Text Reader

Abstract

The invention provides an AIS (Automatic Identification System) detection model configuration method, an AIS detection model configuration device and processing equipment, which are used for detecting an AIS focus section and a patient-level diagnosis result of an AIS patient by specifically analyzing all sections of an NCCT (Non-Configured Computed Tomography) image under the condition that an AIS detection model is configured through a detection model based on an Encoder-Decoder architecture. According to the method, the AIS detection effect of the 2D section level and the AIS detection effect of the 3D patient level are achieved, the synergistic effect between the two detection tasks is fully utilized, the prediction efficiency of the two tasks is improved through synchronous training, the method is more suitable for a real application scene, the high detection precision is obviously improved, and therefore the high-quality AIS detection requirement can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image detection, and in particular to a configuration method, device and processing equipment for an AIS detection model. Background Art

[0002] Acute ischemic stroke (AIS) has the characteristics of high morbidity, high mortality, high disability, high recurrence rate and high cost, and has high requirements for timeliness in the diagnosis and treatment process. Non-Contrast Computed Tomography (NCCT) has been widely used as the preferred clinical examination method due to its short scanning time. Therefore, identifying AIS through NCCT images can save the treatment time of AIS patients. Since AIS patients have a short onset time, the pathological changes of brain tissues are short, and the imaging changes on CT are small, it is difficult for imaging doctors to identify these changes with the naked eye, which brings great challenges to AIS identification based on NCCT images.

[0003] Traditional AIS recognition methods include ASPECT scoring, left-right contrast threshold segmentation of images, and random forest-based methods. However, these methods often rely on image contrast and doctor experience, are easily affected by image quality, and have poor accuracy and robustness.

[0004] With the development of deep learning technology, detection methods based on convolutional neural networks have become a research hotspot. In particular, the YOLO model and its variants are widely used in medical image detection tasks due to their excellent detection performance and timeliness. The YOLO model converts the target detection task into a regression problem. Unlike sliding windows and candidate regions, it uses full image information during training and prediction, greatly improving the accuracy and speed of detection. Although the YOLO model has achieved certain results in AIS detection tasks, the existing technology still has several defects. For example, an obvious defect is the cumulative error of the stage model.

[0005] For the stage model cumulative error, specifically, the conventional detection network requires paired training of images and target areas, but due to the actual application scenarios, there are very few sections of NCCT images with AIS lesions (1. In clinical practice, it is necessary to identify AIS and non-AIS patients from patients with AIS-like symptoms, and there are no AIS lesions in the NCCT images of non-AIS patients; 2. Due to the short onset time of AIS patients, pathological changes are difficult to be reflected in NCCT images, and NCCT images are scanned with a large layer thickness to improve the scanning speed, resulting in fewer sections with lesions, generally 1 to 3 In addition, one NCCT image contains 20 to 30 sections), which will result in a large number of sections of CNTT images without lesions being unknown during model training. Therefore, a large number of false positive detection areas will be generated in the model inference stage. In order to reduce the false positive rate, the detection model is usually cascaded with the classification task network to remove false positive samples. However, this model cascade method will result in cumulative multiplication errors of the model cascade (for example, the accuracy of the first model is 0.9, the accuracy of the second model is 0.9, and the overall accuracy after cascading is 0.81), which will reduce the detection accuracy of the model. Summary of the invention

[0006] The present application provides a configuration method, apparatus and processing equipment of an AIS detection model, which are used to configure the AIS detection model through a detection model based on an Encoder-Decoder architecture, specifically to analyze all sections of NCCT images to detect section-level detection results of AIS lesions and patient-level diagnosis results of AIS patients, so as to achieve 2D section-level AIS detection effect and 3D patient-level AIS detection effect, and can make full use of the synergy between the two detection tasks, improve the prediction efficiency of the two tasks through synchronous training, so that the model is more suitable for real application scenarios, has significantly improved high detection accuracy, and can ultimately meet high-quality AIS detection needs.

[0007] In a first aspect, the present application provides a method for configuring an AIS detection model, the method comprising:

[0008] Obtain sample NCCT images;

[0009] Determine the sample AIS lesion section existing in the sample NCCT image through the sample MRI diffusion weighted imaging (DWI) image corresponding to the sample NCCT image, and mark the corresponding detection frame of the sample AIS lesion section;

[0010] Based on the labeled sample NCCT images, a pre-configured detection model based on the Encoder-Decoder architecture is trained. When the training completion conditions are met, the training is completed to obtain an AIS detection model. The AIS detection model is composed of an encoder that extracts features from all sections of the input NCCT image, and then the decoder predicts the corresponding AIS lesion sections for all feature extraction results in the section detection task, and predicts the patient-level diagnosis result of whether the user corresponding to the input NCCT image is an AIS patient by aggregating all feature extraction results in the patient classification task.

[0011] In a second aspect, the present application provides a configuration device for an AIS detection model, the device comprising:

[0012] An acquisition unit, used for acquiring a sample NCCT image;

[0013] A labeling unit, used to determine the sample AIS lesion section existing in the sample NCCT image through the sample DWI image corresponding to the sample NCCT image, and label the corresponding detection frame of the sample AIS lesion section;

[0014] The training unit is used to train a pre-configured detection model based on an encoder-decoder architecture based on annotated sample NCCT images. When the training completion condition is detected to be met, the training is completed to obtain an AIS detection model, wherein the AIS detection model is performed by the encoder to extract features from all sections of the input NCCT image respectively, and then the decoder predicts the corresponding AIS lesion sections for all feature extraction results in the section detection task, and predicts the patient-level diagnosis result of whether the user corresponding to the input NCCT image is an AIS patient by aggregating all feature extraction results in the patient classification task.

[0015] In a third aspect, the present application provides a processing device, including a processor and a memory, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the method provided in the first aspect of the present application or any possible implementation method of the first aspect of the present application is executed.

[0016] In a fourth aspect, the present application provides a computer-readable storage medium, which stores multiple instructions, and the instructions are suitable for a processor to load to execute the method provided by the first aspect of the present application or any possible implementation of the first aspect of the present application.

[0017] From the above content, it can be concluded that the present application has the following beneficial effects:

[0018] For the AIS detection target based on deep learning, in the process of configuring the AIS detection model in this application, after obtaining the sample NCCT image, the sample AIS lesion section existing in the sample NCCT image is determined by the sample DWI image corresponding to the NCCT image, and the sample AIS lesion section corresponding to the detection box is annotated, and then based on the annotated sample NCCT image, the pre-configured detection model based on the Encoder-Decoder architecture is trained. When it is detected that the training completion condition is met, the training is completed to obtain the AIS detection model. Since the AIS detection model is configured so that the encoder extracts features from all sections of the input NCCT image respectively, and then the decoder predicts the corresponding AIS lesion sections for all feature extraction results in the section detection task, And in the patient classification task, by aggregating all feature extraction results, the patient-level diagnosis result of whether the user corresponding to the input NCCT image is an AIS patient is predicted. In this way, when the AIS detection model is configured by a detection model based on the Encoder-Decoder architecture, all sections of the NCCT image are analyzed to detect the section-level detection results of AIS lesions and the patient-level diagnosis results of AIS patients, so as to achieve 2D section-level AIS detection effect and 3D patient-level AIS detection effect, and can make full use of the synergy between the two detection tasks, improve the prediction efficiency of the two tasks through synchronous training, make the model more suitable for real application scenarios, have significantly improved high detection accuracy, and ultimately meet the high-quality AIS detection needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 A flowchart of a configuration method of the AIS detection model of this application;

[0021] Figure 2 A schematic diagram of a scenario of the working mechanism of the AIS model of this application;

[0022] Figure 3 This is another scenario diagram of the working mechanism of the AIS model of this application;

[0023] Figure 4 A schematic diagram of the structure of the configuration device of the AIS detection model of this application;

[0024] Figure 5 A schematic diagram of the structure of the processing equipment of this application. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0026] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described here can be implemented in a sequence other than that illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or modules is not necessarily limited to those steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or devices. The naming or numbering of steps in this application does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The process steps that have been named or numbered can change the execution order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.

[0027] The division of modules in this application is a logical division. There may be other division methods when it is implemented in actual applications. For example, multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection between modules can be electrical or other similar forms, which are not limited in this application. In addition, the modules or submodules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed in multiple circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present application.

[0028] Before introducing the configuration method of the AIS detection model provided by the present application, the background content involved in the present application is first introduced.

[0029] The configuration method, device and computer-readable storage medium of the AIS detection model provided in the present application can be applied to a processing device, and is used to, when the AIS detection model is configured by a detection model based on an Encoder-Decoder architecture, specifically to analyze all sections of NCCT images to detect section-level detection results of AIS lesions and patient-level diagnosis results of AIS patients, thereby achieving 2D section-level AIS detection effects and 3D patient-level AIS detection effects, and can fully utilize the synergy between the two detection tasks, improve the prediction efficiency of the two tasks through synchronous training, so that the model is more adapted to real application scenarios, has significantly improved high detection accuracy, and can ultimately meet high-quality AIS detection needs.

[0030] The configuration method of the AIS detection model mentioned in this application can be executed by a configuration device of the AIS detection model, or a server, a physical host or a user equipment (UE) and other different types of processing devices integrated with the configuration device of the AIS detection model. Among them, the configuration device of the AIS detection model can be implemented in hardware or software, and the UE can be a terminal device such as a smart phone, a tablet computer, a laptop computer, a desktop computer or a personal digital assistant (PDA), and the processing device can be set in a device cluster.

[0031] It is easy to understand that the processing equipment that executes the configuration method of the AIS detection model of the present application, or the processing equipment equipped with the application service corresponding to the configuration method of the AIS detection model of the present application, generally speaking, only needs to have the corresponding data processing capabilities to meet the usage requirements. Therefore, it can be different types of devices such as servers, physical hosts or even UEs. If it is also considered to be applied to specific hospital application scenarios, it may involve working linkage with other equipment on site in the hospital or be responsible for AIS detection work. It is also necessary to configure the specific device form in combination with the specific application scenarios and specific application requirements.

[0032] Next, the configuration method of the AIS detection model provided by this application is introduced.

[0033] First, see Figure 1 , Figure 1 A flow chart of a configuration method of the AIS detection model of the present application is shown. The configuration method of the AIS detection model provided by the present application may specifically include the following steps S101 to S103:

[0034] Step S101, obtaining a sample NCCT image;

[0035] It can be understood that corresponding training samples need to be configured to meet the configuration requirements of the AIS detection model, the first of which is to obtain sample NCCT images.

[0036] NCCT imaging involves NCCT, which is the most commonly used imaging examination method in the diagnosis of AIS. Its purpose is easy to understand, which is to exclude hemorrhage and other non-ischemic lesions, and to preliminarily determine whether there is a fresh infarction focus, the location and range of infarction.

[0037] It can be understood that the sample NCCT images obtained here can be, in practical applications, real NCCT images after removing user personal information, or NCCT images modified based on real NCCT images after removing user personal information, or NCCT images autonomously generated by digital means.

[0038] In addition, it is easy to understand that the NCCT image is an image obtained by scanning with an NCCT device.

[0039] It is easy to understand that after obtaining the sample NCCT image, corresponding data preprocessing can be performed to enhance the data quality of the sample NCCT image. Of course, the obtained sample NCCT image itself can also have been subjected to corresponding data preprocessing, which is also possible in actual situations.

[0040] Step S102, determining the sample AIS lesion section existing in the sample NCCT image through the sample DWI image corresponding to the sample NCCT image, and marking the detection frame corresponding to the sample AIS lesion section;

[0041] Corresponding to the operations of the prior art mentioned above, the present application may also process the AIS lesion section existing in the sample NCCT image through the gold standard, that is, through the sample DWI image corresponding to the sample NCCT image, and record it as the sample AIS lesion section.

[0042] DWI, which involves DWI imaging, is another commonly used imaging examination method in the diagnosis of AIS.

[0043] Among them, it can be understood that the sample AIS lesion section in the NCCT image is determined based on the DWI image here, which can be understood as the NCCT image and DWI image collected for the same patient, and the DWI image is used to manually determine the existing AIS lesion section and map it to the NCCT image. This is often done by staff with maturity / experience. Considering that this link is not the focus of this application plan, no more specific explanation will be given.

[0044] In specific operations, the sections involved in this application can be processed by corresponding hospital image processing software, such as slice software. For this purpose, the section of the processed image is usually also called a slice section, or simply called a slice.

[0045] After the sample NCCT image is determined by the gold standard, the sample AIS lesion detection frame of the sample NCCT image can be labeled according to the determination result.

[0046] The detection box may also be referred to as a detection bounding box, etc. It is a form of annotation that marks the detection results expected by the model in the sample image used for training the model.

[0047] Step S103, based on the labeled sample NCCT images, a pre-configured detection model based on the Encoder-Decoder architecture is trained. When it is detected that the training completion condition is met, the training is completed to obtain an AIS detection model, wherein the AIS detection model is composed of an encoder that extracts features from all sections of the input NCCT image respectively, and then the decoder predicts the corresponding AIS lesion sections for all feature extraction results in the section detection task, and predicts the patient-level diagnosis result of whether the user corresponding to the input NCCT image is an AIS patient by aggregating all feature extraction results in the patient classification task.

[0048] It can be understood that the focus of the present application is on the configuration of the model itself. Specifically, the basic model selected for training in this application is a detection model based on the Encoder-Decoder architecture (encoder-decoder architecture), such as the DETR (Detection Transformer) model. The Encoder-Decoder architecture is an abstract concept of a deep learning model, in which the encoder (Encoder) is responsible for converting the input (Input) into features (Feature) and sending them to the decoder (Decoder), and the decoder (Decoder) is responsible for converting the features (Feature) into targets (Target) to obtain the output of the model.

[0049] Based on this general Encoder-Decoder architecture, this application is also configured with model configuration content specially designed for this application.

[0050] Corresponding to the previous annotation of the sample NCCT images (i.e., both the sections including AIS lesions and the sections not including AIS lesions were annotated during the annotation process), compared with the conventional detection model that only trains the target sections with AIS lesions, the trained model only focuses on the sections with AIS lesions for detection, and the present application can be trained based on all sections of the sample NCCT images. At the same time, the model is configured to carry out AIS lesion detection for all sections of the input NCCT images and predict the corresponding AIS lesion sections. More specifically, the processing targets of the model in the NCCT images involve three types of sections with AIS lesions of real AIS patients, sections without AIS lesions of real AIS patients, and sections without AIS lesions of non-AIS patients. Accurate detection is required from these three types of sections.

[0051] In this case, it helps the model to obtain higher detection accuracy based on all feature extraction results (section features) in independent, section-level section detection tasks for AIS lesions, and it also helps the model to achieve higher classification accuracy in patient-level diagnosis of AIS patients based on all feature extraction results (section features) in the patient classification task of AIS patients, thus ultimately achieving 2D section-level AIS detection effects and 3D patient-level AIS detection effects.

[0052] For the above model working mechanism, you can also combine Figure 2 A scenario diagram of the working mechanism of the AIS model of the present application is shown for a more vivid understanding.

[0053] Taking the slice section mentioned above as an example, the present application can realize 2D slice-level AIS detection and 3D Partient-level AIS diagnosis.

[0054] Moreover, during the training process, corresponding to the presence of two parallel detection tasks in the model (corresponding to the presence of a parallel decoder structure setting in the present application), the present application can also make full use of the synergy between the two detection tasks and improve the prediction efficiency of the two detection tasks through synchronous training. In this way, there will be no detection accuracy problem accompanied by the cumulative error of the multi-stage model as in the prior art, thereby improving the prediction efficiency of the overall model and achieving the high-precision AIS detection goal.

[0055] In the process of model training, it is easy to understand that any type of model training architecture can be used, which can be flexibly configured according to actual needs, mainly:

[0056] The sample NCCT image is input into the model, so that the model can carry out AIS detection based on all sections of the input sample NCCT image to realize forward propagation. Then, the loss function is calculated according to the AIS detection results combined with the labeled AIS detection results, and the model parameters are iteratively optimized according to the loss function calculation results to realize back propagation. In this way, when the training completion conditions such as training time, training times or detection accuracy are met, the model training can be completed, and the model at this time is an AIS detection model that can be put into actual AIS detection work.

[0057] from Figure 1 It can be seen from the illustrated embodiment that, for the AIS detection target based on deep learning, in the process of configuring the AIS detection model of the present application, after obtaining the sample NCCT image, the sample AIS lesion section existing in the sample NCCT image is determined by the sample DWI image corresponding to the NCCT image, and the sample AIS lesion section corresponding to the detection frame is annotated, and then based on the annotated sample NCCT image, the pre-configured detection model based on the Encoder-Decoder architecture is trained. When it is detected that the training completion condition is met, the training is completed to obtain the AIS detection model. Since the AIS detection model is configured so that the encoder extracts features from all sections of the input NCCT image respectively, and then the decoder predicts the corresponding AIS lesion for all feature extraction results in the section detection task, Lesion section, and in the patient classification task, by aggregating all feature extraction results to predict the patient-level diagnosis result of whether the user corresponding to the input NCCT image is an AIS patient. In this way, when the AIS detection model is configured by a detection model based on the Encoder-Decoder architecture, all sections of the NCCT images are analyzed to detect the section-level detection results of AIS lesions and the patient-level diagnosis results of AIS patients, so as to achieve 2D section-level AIS detection effect and 3D patient-level AIS detection effect, and can make full use of the synergy between the two detection tasks, improve the prediction efficiency of the two tasks through synchronous training, make the model more suitable for real application scenarios, and have significantly improved high detection accuracy, which can ultimately meet the high-quality AIS detection needs.

[0058] Continue to the above Figure 1 Each step of the illustrated embodiment and possible implementation methods thereof in practical applications are described in detail.

[0059] The inventors of the present application also noticed that, at the detail level, under the recognized gold standard only, the NCCT images were annotated with reference to the DWI images, and this annotation method would have a certain degree of accuracy deviation. This is because the scanning layer thickness interval between the NCCT images and the DWI images is large, resulting in a non-strict correspondence between the cross-sections of the two images. Secondly, there is a gap in the inspection time between the NCCT images and the DWI images.

[0060] In this regard, in order to significantly alleviate or even eliminate the above-mentioned problem of inaccurate labeling, the present application provides a detection model based on the Encoder-Decoder architecture as an exemplary implementation method, which can be specifically configured as follows:

[0061] The decoder fuses the inspection time interval parameters of NCCT images and DWI images in the section detection task, assists in the regression prediction of AIS lesion section detection boxes for all feature extraction results, and assists in the patient classification task to determine the patient-level diagnosis result of whether the user corresponding to the input NCCT image is an AIS patient based on all feature extraction results.

[0062] It can be seen that this application focuses on the section detection task performed by the decoder, and specifically introduces a working mechanism for the inspection time interval parameters of the fusion of NCCT images and DWI images. In this way, the accuracy problem caused by the incomplete fit between NCCT images and DWI images in actual situations can be effectively avoided.

[0063] Furthermore, as a more specific implementation scheme of the above embodiment, the detection model based on the Encoder-Decoder architecture of the present application, as another exemplary embodiment, may also be configured with:

[0064] The encoder extracts the overall features of all sections of the input NCCT image sent to the model, and adds the overall feature extraction results and the inspection time (usually in minutes) in both the input NCCT image and the corresponding DWI image (of the input NCCT image) to features of the same length as the image. The result is used as the input of the decoder to enable the decoder to fuse the inspection time interval parameters of the NCCT image and the DWI image.

[0065] It can be understood that the solution goal corresponding to the previous scheme of fusing the inspection time interval parameters of NCCT images and DWI images in the section detection task in the decoder (Decoder) stage can be specifically implemented by relying on the feature processing disclosed by the previous encoder (Encoder) here. The overall features are first extracted, and then added to the features in the NCCT image and the corresponding DWI image with the inspection time encoded as the same length as the image, to obtain the target features that can be input into the subsequent decoder, that is, the decoder fuses the inspection time interval parameters of the NCCT image and the DWI image.

[0066] At the same time, for the encoder, or the overall feature extraction involved in the Encoder stage, as another exemplary embodiment, the present application can be configured as follows:

[0067] Specifically, the encoder can extract the overall features of all sections of the input NCCT image sent to the model through a multi-instance learning method based on a Gaussian mixture model.

[0068] The multiple instance learning method based on Gaussian mixture model involved may specifically include the following configuration contents:

[0069] The following formula is used to fit the distribution of features using the Gaussian mixture model, and then Gaussian weighting is performed based on the obtained distribution processing results:

[0070] μ,δ=GMM(F i ),i=1,2,…,n,

[0071]

[0072] Among them, μ represents the mathematical expectation, δ represents the variance, and F i represents the image features extracted from the i-th section, GMM represents the Gaussian mixture model, G(i|μ,δ) represents the corresponding weight value determined by the Gaussian mixture model, and F represents the Gaussian weighted result. As the overall feature extraction result involved above, more specifically, GMM(F i ) is obviously the Gaussian mixture model (distribution processing result) that affects the feature fitting extracted by the i-th section, and the corresponding distribution parameters μ, δ are determined. Then, for each section, the corresponding weight value is determined based on the fitted Gaussian mixture model and recorded as G(i|μ,δ), which is used for Gaussian weighted processing for all sections.

[0073] It can be seen that in order to synchronize the features of the section detection task for the classification diagnosis task, the present application specifically adopts a multi-instance learning method to perform feature aggregation. At the same time, the inventor of the present application noticed that the head NCCT image generally contains 20 to 30 sections, and the onset location of AIS is usually a single diffuse type. In this case, the present application uses Gaussian distribution to fit the coronal and sagittal planes of its distribution, and promotes the overall feature extraction processing through the above-mentioned specific implementation method, thereby achieving a high-precision overall feature extraction effect, which is helpful for the section processing of the subsequent decoder.

[0074] With regard to the loss function used for training the model, the inventors of the present application believe that conventional loss functions for detection tasks (including bounding box loss function, category loss function, and confidence loss function, etc.) need to be calculated based on the actual lesion area and the predicted lesion area. However, as mentioned above, the present application needs to process all three types of sections, namely, sections with AIS lesions of real AIS patients, sections without AIS lesions of real AIS patients, and sections without AIS lesions of non-AIS patients. However, due to the existence of sections without AIS lesions, it is difficult to calculate the loss function. For this reason, the inventors of the present application have also designed a new strategy to calculate the loss function.

[0075] First of all, considering that this application is a single-target detection task, the category loss function is removed and the border loss Loss is used. rect and confidence loss Loss conf In addition, since it is necessary to face two types of input samples x with and without targets, and to face two situations of whether the prediction result y contains the target area, as another exemplary embodiment, the loss function used for the section detection task during training is specifically:

[0076]

[0077] Among them, Loss represents the overall loss function, Loss rect Represents border loss, Loss rect It is composed of 1-IOU evaluation indicators, 0 means that the predicted result and the true result have no overlap, 1 means that the predicted result is completely consistent with the true result, and Loss conf Represents confidence loss, Loss conf It is composed of the cross entropy evaluation index to measure the credibility of the target area. The closer it is to 1, the less credible it is, and 0 is the minimum value. x represents the input, y represents the prediction result, and AIS region represents the AIS lesion.

[0078] It should be understood that the specific quantitative formulas behind the 1-IOU evaluation index and the cross entropy evaluation index are conventional and universal. The focus of this application is to integrate these two evaluation indicators on this basis to build a more complete application architecture. Therefore, a more specific explanation is not given here.

[0079] As for the specific quantitative formula of the above loss function, it is easy to see that:

[0080] 1. When the input x does not contain AIS lesions but the predicted result y contains AIS lesions, it means that the prediction result is completely wrong, so the border loss Loss rect Set to the maximum value 1, and the confidence loss Loss conf Add, corresponding to the middle part of the formula;

[0081] 2. When the input x does not contain the AIS lesion, and the predicted result y does not contain the AIS lesion, it means that the predicted target box result is completely correct, so the border loss Loss rect Set to the minimum value 0, and the confidence loss Loss conf Add together, corresponding to the lower part of the formula.

[0082] Under this setting, it is obvious that the designed loss function can more closely fit the model working mechanism involved in this application, thereby promoting more efficient and accurate model training effects.

[0083] At the same time, on the other hand, for the loss function used for the patient classification task during the training process, as another exemplary embodiment, the present application is specifically designed as follows:

[0084] The loss function used for the patient classification task during training can specifically adopt the binary cross entropy evaluation indicator.

[0085] Among them, it should be understood that considering that the binary cross entropy evaluation indicator itself is also a conventional loss function, it will not be explained in detail here.

[0086] At the same time, in order to synergistically utilize the two detection tasks, section detection task and patient classification task, for the analysis of NCCT images, the loss functions of the two tasks can jointly perform reverse iterative optimization on the encoder, while the loss function of the section detection task above performs reverse iterative optimization on the decoder (that is, the loss function of the patient classification task above does not participate in the reverse iterative optimization of the decoder).

[0087] As you can see, a more specific implementation plan is given here for how to promote the use of loss functions in the model training process.

[0088] For the above solutions, you can also combine Figure 3 Another scenario diagram of the working mechanism of the AIS model of the present application is shown for a more vivid understanding.

[0089] At the same time, as mentioned above, the sample NCCT image may also involve data preprocessing. In this regard, focusing on data preprocessing, the present application also provides a set of practical supporting solutions. Specifically, as another exemplary embodiment, the present application method may also include:

[0090] The sample NCCT images are subjected to data preprocessing, wherein the data preprocessing includes image pixel value normalization processing and image size normalization processing.

[0091] It can be seen that in the embodiment here, the present application specifically involves two types of data preprocessing: image pixel value standardization and image size standardization, so as to reduce the data differences between different devices and different hospitals behind different data sources, and form the data format in the same standard form for easy use.

[0092] As an example, there are:

[0093] NCCT images and DWI images with suspected AIS symptoms were collected, and the AIS detection results of NCCT images were annotated based on DWI images (0 / 1, 0 indicates non-AIS, 1 indicates AIS), and AIS lesions were segmented and annotated on NCCT images of AIS patients.

[0094] 1. Data preprocessing

[0095] 1.1 Image pixel value standardization

[0096] Use a window width of 40 and a window position of 80, that is, the maximum value is 80 and the minimum value is 0. First, the pixel value is intercepted, that is:

[0097]

[0098] Then perform maximum and minimum value normalization, that is:

[0099]

[0100] 1.2 Image size standardization

[0101] All sample NCCT images are centered and cut into 30 slices. Sample NCCT images with less than 30 slices are padded with 0 slices, so that the input size of all sample NCCT images is 512×512×30.

[0102] 2. Model training

[0103] From the preprocessed data set, all sections of an AIS and a non-AIS sample NCCT image are randomly selected as a batch of data and sent to the model for learning to avoid the situation where there is only one category in the section detection task or patient classification task. The loss function of the model is calculated using the design strategy introduced above, and the training of the section detection task and the patient classification task is performed simultaneously.

[0104] In order to improve the generalization performance of the model, 3D image enhancement is performed based on all slices of the sample NCCT images. According to possible situations in reality, random rotation is performed within ±15° and image brightness is randomly adjusted within ±10% to improve sample diversity.

[0105] 3. Model prediction post-processing

[0106] Since the patient classification task is simpler than the section detection task, all sections of a sample NCCT image are input. When the classification result indicates that the probability is lower than 0.5, the target detection results obtained by the model for all sections of the current sample NCCT image are removed to form an overall result for output. Since a section is a single lesion, that is, there will only be one AIS lesion area, for the output result of the detection network, the predicted target with the largest confidence is selected as the overall result for output.

[0107] After completing the model training and obtaining the AIS detection model, it can obviously be put into practical use, that is, put into AIS detection work. To this end, the present application method may also include:

[0108] Obtaining the NCCT image to be detected;

[0109] Input the NCCT image to be detected into the AIS detection model;

[0110] Extract the patient-level detection results corresponding to the NCCT images to be detected output by the AIS detection model.

[0111] It can be understood that when put into actual use, the AIS detection processing of obtaining the NCCT image to be detected and the AIS detection model can refer to the introduction of configuring the AIS model above, and the details will not be repeated here.

[0112] After obtaining the patient-level test results output by the model, corresponding processing such as storage, result display or result push can be carried out according to the preset data usage requirements, and the specific configuration can be flexibly carried out according to actual needs.

[0113] The above is an introduction to the configuration method of the AIS detection model provided by the present application. In order to better implement the configuration method of the AIS detection model provided by the present application, the present application also provides a configuration device of an AIS detection model from the perspective of a functional module.

[0114] See also Figure 4 , Figure 4 This is a schematic diagram of a configuration device for an AIS detection model of the present application. In the present application, the configuration device 400 for an AIS detection model may specifically include the following structure:

[0115] An acquisition unit 401 is used to acquire a sample NCCT image;

[0116] The labeling unit 402 is used to determine the sample AIS lesion section existing in the sample NCCT image through the sample DWI image corresponding to the sample NCCT image, and label the corresponding detection frame of the sample AIS lesion section;

[0117] The training unit 403 is used to train a pre-configured detection model based on the Encoder-Decoder architecture based on the labeled sample NCCT images. When it is detected that the training completion condition is met, the training is completed to obtain an AIS detection model, wherein the AIS detection model is performed by the encoder to extract features from all sections of the input NCCT image respectively, and then the decoder predicts the corresponding AIS lesion sections for all feature extraction results in the section detection task, and predicts the patient-level diagnosis result of whether the user corresponding to the input NCCT image is an AIS patient by aggregating all feature extraction results in the patient classification task.

[0118] In an exemplary embodiment, the detection model based on the Encoder-Decoder architecture is specifically configured as follows:

[0119] The decoder fuses the inspection time interval parameters of NCCT images and DWI images in the section detection task, assists in the regression prediction of AIS lesion section detection boxes for all feature extraction results, and assists in the patient classification task to determine the patient-level diagnosis result of whether the user corresponding to the input NCCT image is an AIS patient based on all feature extraction results.

[0120] In another exemplary embodiment, the detection model based on the Encoder-Decoder architecture is further configured with:

[0121] The encoder extracts the overall features of all sections of the input NCCT image sent to the model, and adds the overall feature extraction results to the features of the input NCCT image and the corresponding DWI image whose inspection time is encoded as the same length as the image. The result is used as the input of the decoder to enable the decoder to fuse the inspection time interval parameters of the NCCT image and the DWI image.

[0122] In another exemplary embodiment, the encoder specifically extracts the overall features of all sections of the input NCCT image fed into the model by a multi-instance learning method based on a Gaussian mixture model;

[0123] The multi-instance learning method based on Gaussian mixture model specifically includes the following configuration contents:

[0124] The following formula is used to fit the distribution of features using the Gaussian mixture model, and then Gaussian weighting is performed based on the obtained distribution processing results:

[0125] μ,δ=GMM(F i ),i=1,2,…,n,

[0126]

[0127] Among them, μ represents the mathematical expectation, δ represents the variance, and F i represents the image features extracted from the i-th section, GMM represents the Gaussian mixture model, G(i|μ,δ) represents the corresponding weight value determined by the Gaussian mixture model, and F represents the Gaussian weighted result as the overall feature extraction result.

[0128] In another exemplary embodiment, the loss function used for the section detection task during training is specifically:

[0129]

[0130] Among them, Loss represents the overall loss function, Loss rect Represents border loss, Loss rect It is composed of 1-IOU evaluation indicators, 0 means that the predicted result and the true result have no overlap, 1 means that the predicted result is completely consistent with the true result, and Loss conf Represents confidence loss, Loss conf It is composed of the cross entropy evaluation index to measure the credibility of the target area. The closer it is to 1, the less credible it is, and 0 is the minimum value. x represents the input, y represents the prediction result, and AIS region represents the AIS lesion.

[0131] In another exemplary embodiment, the loss function used for the patient classification task during training specifically adopts a binary cross entropy evaluation indicator, the loss functions of the two detection tasks jointly perform reverse iterative optimization on the encoder, and the loss function of the section detection task performs reverse iterative optimization on the decoder.

[0132] In yet another exemplary embodiment, the apparatus further comprises:

[0133] The preprocessing unit 404 is used to perform data preprocessing on the sample NCCT image, wherein the data preprocessing includes image pixel value normalization processing and image size normalization processing.

[0134] This application also provides a processing device from the perspective of hardware structure, see Figure 5 , Figure 5 501, a memory 502, and an input / output device 503. The processor 501 is used to execute the computer program stored in the memory 502 to implement the following Figure 1 The steps of the configuration method of the AIS detection model in the corresponding embodiment; or, the processor 501 is used to execute the computer program stored in the memory 502 to implement the following Figure 4 Corresponding to the functions of each unit in the embodiment, the memory 502 is used to store the processor 501 executing the above Figure 1 The computer program required for the configuration method of the AIS detection model in the corresponding embodiment.

[0135] Exemplarily, the computer program may be divided into one or more modules / units, one or more modules / units are stored in the memory 502, and executed by the processor 501 to complete the present application. One or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the computer device.

[0136] The processing device may include, but is not limited to, a processor 501, a memory 502, and an input / output device 503. Those skilled in the art will appreciate that the illustration is merely an example of a processing device and does not constitute a limitation on the processing device, and may include more or fewer components than shown in the illustration, or a combination of certain components, or different components. For example, the processing device may also include a network access device, a bus, etc., and the processor 501, the memory 502, the input / output device 503, etc. are connected via a bus.

[0137] The processor 501 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the processing device, and uses various interfaces and lines to connect various parts of the entire device.

[0138] The memory 502 can be used to store computer programs and / or modules. The processor 501 implements various functions of the computer device by running or executing the computer programs and / or modules stored in the memory 502 and calling the data stored in the memory 502. The memory 502 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the processing device, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0139] When the processor 501 is used to execute the computer program stored in the memory 502, the following functions can be implemented:

[0140] Obtain sample NCCT images;

[0141] Determine the sample AIS lesion section existing in the sample NCCT image through the sample MRI diffusion weighted imaging (DWI) image corresponding to the sample NCCT image, and mark the corresponding detection frame of the sample AIS lesion section;

[0142] Based on the labeled sample NCCT images, a pre-configured detection model based on the Encoder-Decoder architecture is trained. When the training completion conditions are met, the training is completed to obtain an AIS detection model. The AIS detection model is composed of an encoder that extracts features from all sections of the input NCCT image, and then the decoder predicts the corresponding AIS lesion sections for all feature extraction results in the section detection task, and predicts the patient-level diagnosis result of whether the user corresponding to the input NCCT image is an AIS patient by aggregating all feature extraction results in the patient classification task.

[0143] Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the configuration device, processing device and corresponding units of the AIS detection model described above can refer to the following. Figure 1 The description of the configuration method of the AIS detection model in the corresponding embodiment will not be repeated here.

[0144] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0145] To this end, the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the present application as follows: Figure 1 The steps of the configuration method of the AIS detection model in the corresponding embodiment, the specific operation can refer to the following Figure 1 The description of the configuration method of the AIS detection model in the corresponding embodiment will not be repeated here.

[0146] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0147] Due to the instructions stored in the computer-readable storage medium, the present application can be executed. Figure 1 The steps of the configuration method of the AIS detection model in the corresponding embodiment, therefore, the present application can be implemented as follows Figure 1 The beneficial effects that can be achieved by the configuration method of the AIS detection model in the corresponding embodiment are detailed in the previous description and will not be repeated here.

[0148] The configuration method, device, processing equipment and computer-readable storage medium of the AIS detection model provided by the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A configuration method for an AIS detection model, characterized in that: The method comprises: Obtaining plain scan computer tomography (NCCT) images of the sample; Determine the sample acute ischemic stroke AIS lesion section existing in the sample NCCT image through the sample magnetic resonance diffusion weighted imaging DWI image corresponding to the sample NCCT image, and mark the corresponding detection frame of the sample AIS lesion section; Based on the labeled sample NCCT images, a pre-configured detection model based on the Encoder-Decoder architecture is trained. When it is detected that the training completion condition is met, the training is completed to obtain an AIS detection model, wherein the AIS detection model is performed by the encoder to extract features from all sections of the input NCCT image respectively, and then the decoder predicts the corresponding AIS lesion sections for all feature extraction results in the section detection task, and predicts the patient-level diagnosis result of whether the user corresponding to the input NCCT image is an AIS patient by aggregating all the feature extraction results in the patient classification task.

2. The method according to claim 1, characterized in that The detection model based on the Encoder-Decoder architecture is specifically configured as follows: The decoder fuses the inspection time interval parameters of the NCCT image and the DWI image in the section detection task, assists in the regression prediction of the AIS lesion section detection frame for all the feature extraction results, and assists in determining the patient-level diagnosis result of whether the user corresponding to the input NCCT image is an AIS patient based on all the feature extraction results in the patient classification task.

3. The method according to claim 2, characterized in that The detection model based on the Encoder-Decoder architecture is further configured with: The encoder extracts the overall features of all sections of the input NCCT image sent to the model, and adds the overall feature extraction results to the features of the input NCCT image and the corresponding DWI image in which the inspection time is encoded as the same length as the image. The obtained result is used as the input of the decoder to enable the decoder to fuse the inspection time interval parameters of the NCCT image and the DWI image.

4. The method according to claim 3, characterized in that The encoder specifically extracts the overall features of all sections of the input NCCT image sent to the model through a multi-instance learning method based on a Gaussian mixture model; The multi-instance learning method based on Gaussian mixture model specifically includes the following configuration contents: The following formula is used to fit the distribution of features using the Gaussian mixture model, and then Gaussian weighting is performed based on the obtained distribution processing results: u,δ=GMM(F),i=1,2,...,n, Among them, μ represents the mathematical expectation, δ represents the variance, and F i represents the image features extracted from the i-th section, GMM represents the Gaussian mixture model, G(i|μ,δ) represents the corresponding weight value determined by the Gaussian mixture model, and F represents the Gaussian weighted result, which is used as the overall feature extraction result.

5. The method according to claim 3, characterized in that: The loss function used for the section detection task during training is specifically: Among them, Loss represents the overall loss function, Lossrec t Represents the border loss, Lossrec t It is composed of 1-IOU evaluation indicators, 0 means that the predicted result and the true result have no overlap, 1 means that the predicted result is completely consistent with the true result, and Losscon f Represents confidence loss, Losscon f It is composed of the cross entropy evaluation index to measure the credibility of the target area. The closer it is to 1, the less credible it is, and 0 is the minimum value. x represents the input, y represents the prediction result, and AIS region represents the AIS lesion.

6. The method according to claim 5, characterized in that During the training process, the loss function used for the patient classification task specifically adopts a binary cross entropy evaluation indicator. The loss functions of the two detection tasks jointly perform reverse iterative optimization on the encoder, and the loss function of the section detection task performs reverse iterative optimization on the decoder.

7. The method according to claim 1, characterized in that The method further comprises: The sample NCCT image is subjected to data preprocessing, wherein the data preprocessing includes image pixel value normalization processing and image size normalization processing.

8. A configuration device for an AIS detection model, characterized in that: The device comprises: An acquisition unit, used for acquiring a plain scan electronic computer tomography (NCCT) image of the sample; A labeling unit, used to determine the sample acute ischemic stroke AIS lesion section existing in the sample NCCT image through the sample magnetic resonance diffusion weighted imaging DWI image corresponding to the sample NCCT image, and label the corresponding detection frame of the sample AIS lesion section; The training unit is used to train a pre-configured detection model based on the Encoder-Decoder architecture based on the labeled sample NCCT image. The training is completed when it is detected that the training completion condition is met to obtain an AIS detection model, wherein the AIS detection model is performed by the encoder to extract features from all sections of the input NCCT image respectively, and then the decoder predicts the corresponding AIS lesion sections for all feature extraction results in the section detection task, and predicts the patient-level diagnosis result of whether the user corresponding to the input NCCT image is an AIS patient by aggregating all feature extraction results in the patient classification task.

9. A processing device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and the processor executes the method according to any one of claims 1 to 7 when calling the computer program in the memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the method according to any one of claims 1 to 7.