Crohn's disease detection method based on multi-instance learning and pathological images

Through a detection method based on multi-instance learning and pathological images, the Transformer network and Gaussian function linear combination model are used to solve the problem of distinguishing Crohn's disease and intestinal tuberculosis, improve detection accuracy and diagnostic reliability, and reduce the misdiagnosis rate.

CN117314888BActive Publication Date: 2024-09-17THE FIRST AFFILIATED HOSPITAL OF SUN YAT SEN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311452201.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-02
Publication Date
2024-09-17
Estimated Expiration
2043-11-02

AI Technical Summary

Technical Problem

It is difficult to accurately distinguish between Crohn's disease and intestinal tuberculosis with existing technology, resulting in low diagnostic sensitivity and reliance on doctor experience, which cannot guarantee the accuracy of test results.

Method used

Using a detection method based on multi-instance learning and pathological images, by obtaining the slice features of pathological images, using the Transformer network and Gaussian function linear combination model, combined with typical features and reference features, to predict pathological images and determine object features, reducing misdiagnosis Rate.

Benefits of technology

It improves the accuracy of Crohn's disease detection and the reliability of diagnosis, reduces the misdiagnosis rate, and provides clinicians with a more accurate reference basis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117314888B
    Figure CN117314888B
Patent Text Reader

Abstract

The present application discloses a Crohn's disease detection method based on multi-instance learning and pathological images, the method comprising obtaining a number of pathological images, and obtaining slice features corresponding to each pathological image, wherein the several pathological images correspond to the same target object, and each pathological image includes a preset number of image blocks; determining slice prediction results corresponding to each pathological image based on each slice feature; determining object features of the target object based on each slice feature, and determining object prediction results of the target object based on the object features and the slice features. After extracting the slice features corresponding to the pathological image, the present application determines the slice prediction results and target object features of the pathological image based on the slice features, and then determines the target object prediction results based on the slice-level features and the patient-level features, and uses the slice and patient levels together in the process of Crohn's disease detection, thereby improving the accuracy of Crohn's disease detection and reducing the misdiagnosis rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of biological technology, and in particular to a Crohn's disease detection method based on multi-example learning and pathological images. Background Art

[0002] Crohn's disease (CD) and intestinal tuberculosis (ITB) are two intestinal diseases. Although they overlap in clinical symptoms, endoscopic features, histological features, microbiological features, and serological indicators, their treatment methods and prognosis are very different. These characteristics are not unique to CD or ITB, and the diagnostic sensitivity is low, and they cannot accurately distinguish the two. However, currently, clinical diagnosis generally relies on various examinations and physician experience to make the distinction, which results in a high dependence of the examination results on physician experience and cannot guarantee the accuracy of the test results.

[0003] Therefore the prior art still needs to be improved and enhanced. Summary of the invention

[0004] The technical problem to be solved by the present application is to provide a Crohn's disease detection method based on multi-example learning and pathological images in view of the deficiencies of the existing technology.

[0005] In order to solve the above technical problems, the first aspect of the embodiment of the present application provides a Crohn's disease detection method based on multi-example learning and pathological images, the method comprising:

[0006] Acquire a plurality of pathological images, and acquire slice features corresponding to each pathological image, wherein the plurality of pathological images correspond to the same target object, and each pathological image includes a preset number of image blocks;

[0007] Determine the slice prediction result corresponding to each pathological image based on the characteristics of each slice;

[0008] An object feature of a target object is determined based on each slice feature, and an object prediction result of the target object is determined based on the object feature and the slice feature.

[0009] According to the above technical means, after extracting the slice features corresponding to the pathological image, the slice prediction results of the pathological image and the object features of the target object are determined based on the slice features, and then the target object prediction results are determined based on the slice features at the slice level and the object features at the patient level. In this way, the slice level and the patient level are jointly used in the process of Crohn's disease detection, providing clinicians with a more accurate and powerful reference basis, thereby reducing the misdiagnosis rate and improving the treatment effect of patients.

[0010] In one implementation, the Crohn's disease detection method based on multi-instance learning and pathological images, wherein the slice features include image block features of each image block; and determining the slice prediction results corresponding to each pathological image based on each slice feature specifically includes:

[0011] For each slice feature, select several typical features from the slice features;

[0012] Selecting a number of reference features from a preset feature library based on the number of typical features;

[0013] Interacting the plurality of typical features with the plurality of reference features to obtain a plurality of updated typical features and a plurality of updated reference features;

[0014] Based on the slice feature, a plurality of updated typical features and a plurality of updated reference features, a slice prediction result of the pathological image corresponding to the slice feature is determined.

[0015] According to the above technical means, by selecting several typical features from each slice feature, and selecting several reference features from the preset feature library based on these typical features, the method accurately reflects the specific characteristics of the pathological image slice. Furthermore, by interacting the typical features with the reference features, updated typical features and reference features are obtained, thereby enhancing the complementarity and identification ability between the features. The comprehensive use of slice features, updated typical features and updated reference features effectively determines the prediction results of pathological image slices, thereby improving the detection accuracy of Crohn's disease.

[0016] In one implementation, the Crohn's disease detection method based on multi-instance learning and pathological images, wherein the selecting of several typical features from the slice features specifically includes:

[0017] Each image block feature in the slice feature is modeled in a linear combination of Gaussian functions to obtain a feature distribution model;

[0018] By iterating the feature distribution model, several typical features are selected from the slice features.

[0019] According to the above technical means, each image block feature in the slice feature is modeled by using the modeling method of Gaussian function linear combination to more accurately express the difference of pathological images. At the same time, by iteratively selecting a number of typical features from the feature distribution model, the representativeness of the features is ensured, thereby improving the identification accuracy of the detection method.

[0020] In one implementation, the Crohn's disease detection method based on multi-instance learning and pathological images, wherein the step of determining the slice prediction result of the pathological image corresponding to the slice feature based on the slice feature, the plurality of updated typical features and the plurality of updated reference features specifically includes:

[0021] Inputting the slice features, the plurality of updated typical features and the plurality of updated reference features into a trained Transformer network;

[0022] The slice prediction result of the pathological image corresponding to the slice feature is determined by the Transformer network.

[0023] According to the above technical means, the correlation between each slice feature and other features is fully considered through the self-attention mechanism of the Transformer network itself, which helps to capture the potential correlation in the pathological image and thus improve the accuracy of differential diagnosis.

[0024] In one implementation, the Crohn's disease detection method based on multi-instance learning and pathological images, wherein after determining the slice prediction result of the pathological image corresponding to the slice feature based on the slice feature, the plurality of updated typical features and the plurality of updated reference features, the method further includes:

[0025] The preset feature library is updated based on the confidence using the several typical features.

[0026] According to the above technical means, by adopting typical features based on confidence to update the preset feature library, it is ensured that the feature library is always kept up to date and reflects the most recent or most representative pathological image features;

[0027] At the same time, as the feature library is continuously updated, the recognition and matching of new or changed pathological image features will be more accurate, thereby improving the overall diagnostic accuracy;

[0028] And based on the dynamic update of the feature library, the risk of misdiagnosis or missed diagnosis caused by using incorrect features is reduced.

[0029] In one implementation, the Crohn's disease detection method based on multi-instance learning and pathological images, wherein the determining the object features of the target object based on the features of each slice specifically includes:

[0030] Determine the attention score corresponding to each slice feature, and fuse the slice features based on the determined attention scores to obtain the initial object features;

[0031] The initial object feature and each slice feature are interacted to obtain the object feature.

[0032] According to the above technical means, by determining the attention score corresponding to each slice feature, an appropriate weight is given to each slice feature, ensuring that slice features that are more important or more relevant in the object features are given a larger weight, thereby improving the accuracy of the fusion effect. In addition, by interacting the initial object features with each slice feature, the relationship and influence between different slice features and the initial object features are considered, so that the obtained object features are more comprehensive and accurate.

[0033] In one implementation, the Crohn's disease detection method based on multi-instance learning and pathological images, wherein the initial object features and each slice feature are interacted to obtain the object features specifically includes:

[0034] The initial object features and each slice feature are input into the Transformer network;

[0035] The output weight corresponding to each slice feature is determined through the Transformer network, and the slice features are weighted based on the output weight to obtain the object feature.

[0036] In one implementation, the initial object features and each slice feature are interactively processed through a Transformer network to ensure that each slice feature is properly considered and weighted in the object feature formation process. The Transformer network enables the method to adaptively assign output weights to each slice feature, ensuring that key slice features are emphasized and non-key slice features are weakened, thereby obtaining object features more accurately and meticulously.

[0037] Beneficial effects: Compared with the prior art, the present application provides a method for detecting Crohn's disease based on multi-instance learning and pathological images, the method comprising obtaining a number of pathological images, and obtaining slice features corresponding to each pathological image, wherein the several pathological images correspond to the same target object, and each pathological image includes a preset number of image blocks; determining slice prediction results corresponding to each pathological image based on each slice feature; determining object features of the target object based on each slice feature, and determining object prediction results of the target object based on the object features and the slice features. After extracting the slice features corresponding to the pathological image, the present application determines the slice prediction results and target object features of the pathological image based on the slice features, and then determines the target object prediction results based on the slice-level features and the patient-level features, and uses the slice and patient levels together in the process of Crohn's disease detection, thereby improving the accuracy of Crohn's disease detection and reducing the misdiagnosis rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] 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 ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0039] Figure 1 A flowchart of a Crohn's disease detection method based on multi-instance learning and pathological images provided in this application.

[0040] Figure 2 A diagram of the network structure for pathological image classification based on typical feature propagation provided for this application.

[0041] Figure 3 A slice feature-patient feature interaction module diagram based on the self-attention mechanism provided for this application.

[0042] Figure 4 A schematic diagram of the structure of a Crohn's disease detection device based on multi-example learning and pathological images provided in this application.

[0043] Figure 5 This is a schematic diagram of the structure of the terminal device provided in this application.

[0044] Specific implementation method

[0045] The present application provides a Crohn's disease detection method based on multi-example learning and pathological images and a related device. In order to make the purpose, technical solution and effect of the present application clearer and more specific, the present application is further described in detail with reference to the accompanying drawings and examples. 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.

[0046] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0047] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with those in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.

[0048] It should be understood that the sequence numbers and sizes of the steps in this embodiment do not mean the order of execution. The execution order of each process is determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.

[0049] The inventors have found through research that Crohn's disease (CD) and intestinal tuberculosis (ITB) are two intestinal diseases. Although they overlap in clinical symptoms, endoscopic features, histological features, microbiological features and serological indicators, their treatment methods and prognosis are very different. These features are not unique to CD or ITB, and the diagnostic sensitivity is low, and the two cannot be accurately distinguished. However, currently, it is generally relied on various examinations and doctors' experience to distinguish them in clinical practice, which leads to a high dependence of the examination results on the doctor's experience, and the accuracy of the test results cannot be guaranteed.

[0050] In order to solve the above problems, in an embodiment of the present application, a number of pathological images are obtained, and slice features corresponding to each pathological image are obtained, wherein the several pathological images correspond to the same target object, and each pathological image includes a preset number of image blocks; slice prediction results corresponding to each pathological image are determined based on each slice feature; object features of the target object are determined based on each slice feature, and object prediction results of the target object are determined based on the object features and the slice features. After extracting the slice features corresponding to the pathological image, the present application determines the slice prediction results and target object features of the pathological image based on the slice features, and then determines the target object prediction results based on the slice-level features and the patient-level features, and uses the slice and patient levels together in the process of Crohn's disease detection, thereby improving the accuracy of Crohn's disease detection and reducing the misdiagnosis rate.

[0051] The application content is further explained below through the description of embodiments in conjunction with the accompanying drawings.

[0052] This embodiment provides a Crohn's disease detection method based on multi-instance learning and pathological images. Figure 1 As shown, the method includes:

[0053] S10, obtaining a plurality of pathological images, and obtaining slice features corresponding to each pathological image, wherein the plurality of pathological images correspond to the same target object, and each pathological image includes a preset number of image blocks.

[0054] Specifically, pathological images are mainly derived from medical pathology departments and are used for disease diagnosis and research. Among them, these pathological images are derived from different parts or different perspectives of the same target object. This target object can be a specific cancer cell or tissue sample, such as breast cancer or lung cancer. In the implementation of this application, the target object is Crohn's disease and intestinal tuberculosis tissue samples. By acquiring multiple pathological images of the same target object, the cell structure and morphological changes of the target object can be more comprehensively understood, thereby improving the accuracy of diagnosis.

[0055] Each pathology image is collected by a professional pathologist or pathology technician and obtained through a pathology slicer and a high-resolution scanner. Pathology images are usually in color and have extremely high resolution to ensure that the microscopic structure of cells and tissues can be clearly observed.

[0056] Each pathological image is divided into a plurality of preset image blocks, such as 100 blocks or 200 blocks. This block division method is helpful for processing and analyzing large-sized pathological images, and also makes the analysis of specific areas more convenient and efficient.

[0057] The slice features of each pathological image mainly describe the medical attributes and information of the image, such as cell morphology, tissue structure, staining, etc. The slice features can be manually annotated by a pathologist, or automatically extracted through deep learning and other technologies. For example, in the implementation of the present application, for a Crohn's disease pathological image, the slice features may include cell size, morphology, nuclear staining, etc.

[0058] In practical applications, multiple pathological images of the same target object can help doctors observe and evaluate it from different angles and levels. For example, they are of great value in the early diagnosis and staging of cancer.

[0059] In one implementation, the acquisition of several pathological images and the extraction of slice features can be completed through an automated process. For example, a deep learning model, such as U-Net or VGG, is used to perform image segmentation and feature extraction. In addition, for each image block, the method and process of feature extraction are the same as those of the overall pathological image, but the scope is limited to the image block.

[0060] Preferably, in the implementation of the present application, the method for acquiring a plurality of pathological images includes:

[0061] S11. Pathological images were read using the software library OpenSlide. In order to ensure that only the valid tissue part of the image was processed and blank or irrelevant areas were excluded, tissue contours were segmented at a lower resolution using OpenCV. When the resolution was increased to 40X, the entire tissue image was cut into multiple image blocks of size 512×512. These image blocks were designed to be non-overlapping to ensure the uniqueness of each image block. For each cut image block, the pixel coordinates of its upper left corner were saved for image processing and analysis.

[0062] S12. Re-read the corresponding image block according to the coordinate information saved in step S11. In order to enhance the generalization ability of the model and increase the diversity of the data set, the following augmentation techniques are randomly applied to each read image block:

[0063] ① Image rotation: This includes operations such as random rotation of 90°, or horizontal flipping, which adds diversity to the image while preserving its original characteristics.

[0064] ② Affine transformation: includes scaling and rotation of the image. Specifically, the image scaling range is set to 80% to 120% of the original image, while the rotation angle range is -30° to +30° to increase the diversity of the image.

[0065] ③Noise and blur: Add Gaussian noise to the image, and then use a Gaussian filter to blur it to simulate possible image quality problems in real situations.

[0066] ④ Image brightness and contrast: Adjust the brightness and contrast of the image as needed, enhance or weaken certain parts of the image to simulate different image acquisition conditions.

[0067] ⑤ Color adjustment: Adjust the hue and saturation of the image to simulate color deviation caused by equipment or environmental differences.

[0068] Augmentation technology can not only increase the diversity of training data, but also improve the robustness of the model to various real-world changes, thereby improving the final application performance.

[0069] Specifically, the slice feature includes an image block feature of each image block.

[0070] Slicing refers to a large image being divided into multiple smaller image blocks. These image blocks can be square, rectangular, or any other shape, depending on the specific application and processing requirements. For example, in medical image processing, a large medical scan image may be divided into multiple small image blocks for more detailed feature extraction and analysis.

[0071] Image block features refer to the feature set obtained after feature extraction of each image block. These features may include but are not limited to: color features, texture features, shape features, edge features, etc. Different image blocks will have different image block features due to differences in their content, background, and objects.

[0072] In a specific implementation, the process of extracting slice features is as follows:

[0073] Use image processing algorithms, such as Canny edge detection and Sobel operator, to preprocess large images and enhance their feature performance.

[0074] Divide the image: Divide the preprocessed large image into multiple image blocks according to the predetermined size.

[0075] Perform feature extraction on each image block. For example, use a trained feature extraction model, such as VGG16, MobileNet, etc., to extract image block features from each image block.

[0076] Merge features: Merge the image block features of all image blocks to form a comprehensive feature representation of the slice.

[0077] It is worth noting that when processing different image blocks, the feature extraction strategy and parameters may need to be adjusted accordingly to ensure that the features of each image block can be accurately extracted.

[0078] In the specific implementation of this application, a Resnet50 network model pre-trained based on ImageNet is used to extract features from pathological image blocks. ImageNet is a large image database that contains millions of annotated images covering a wide range of categories. The pre-trained model based on ImageNet has learned a large number of common features, which helps to quickly start specific tasks.

[0079] Before feature extraction of pathological image patches, the parameters of the Resnet50 model are first fine-tuned to make it more suitable for the characteristics and needs of pathological images. The fine-tuning process usually involves freezing certain layers of the model, such as the first 3 layers, and then continuing training on a specific pathological image dataset to update the model's weights.

[0080] On the fine-tuned Resnet50 model, each pathological image block is fed into the model for forward propagation to extract the deep features of each pathological image block. The deep features of each pathological image block not only reflect the cell and tissue information of the image block, but also integrate the high-level abstract features in the model, which is helpful for subsequent classification and analysis.

[0081] To facilitate subsequent research and analysis, the features of all image blocks are integrated and saved as a ".pt" file. ".pt" is a common file format in the PyTorch framework, used to save model parameters or data. Saving the features of all image blocks in one file can make subsequent data loading and processing more efficient.

[0082] In this way, subsequent pathological image classification research can be easily carried out, such as using these features for machine learning or deep learning training to identify and classify different pathological conditions.

[0083] S20, such as Figure 2 As shown, the slice prediction results corresponding to each pathological image are determined based on the features of each slice.

[0084] Specifically, slice features refer to a set of features obtained after feature extraction of pathological images, which can reflect various information of slice images, such as color, shape, texture, etc. Features can be extracted by trained deep neural network models, such as VGG16, VGG19, ResNet and other models.

[0085] When the pathological image is a pathological slice image of human tissue, different feature extraction models can be selected according to the characteristics of different organs of the human body. For example, for lung pathological images, the ResNet model can be selected for feature extraction, and for liver pathological images, the VGG16 model can be selected for feature extraction.

[0086] The slice prediction result is obtained by predicting the slice features through the prediction model. The prediction model is a trained deep learning model, such as a convolutional neural network model, a long short-term memory model, or other applicable machine learning models. The prediction result can be the classification of the slice image, such as benign or malignant; it can also be the score of the slice image, such as the degree of invasion, the degree of malignancy, etc.

[0087] For example, when a pathological image is obtained, the ResNet model is first used to extract its features, and then these features are input into a trained CNN model to obtain the slice prediction results of the pathological image. If there are multiple pathological images, each pathological image is processed in this way to obtain the slice prediction results of each pathological image.

[0088] It is worth noting that when processing multiple pathological images, the processing flow of each pathological image is the same. It is only necessary to input the slice features of each pathological image into the prediction model to obtain the respective slice prediction results.

[0089] In one implementation, determining the object feature of the target object based on each slice feature, and determining the object prediction result of the target object based on the object feature and the slice feature includes:

[0090] S21. For each slice feature, select several typical features from the slice features;

[0091] Specifically, based on the slice features obtained in S10, in order to reduce the computational complexity and improve the accuracy of the analysis, not all slice features are used, but a number of the most representative or typical features are selected in each slice for analysis. These selected features are selected based on their uniqueness, indicativeness to a certain disease or other relevant criteria.

[0092] For example, in pathological sections for detecting Crohn's disease, typical features may include non-caseating granulomas under the mucosa of the digestive tract, ulcers deep into the muscularis, thickening of the intestinal wall, etc. The brightness, shape, size and other properties of these features in the image may be different from those of normal tissues, so they can be identified and selected.

[0093] In order to select features more efficiently, a machine learning method can be used to build a model to automatically select the most typical and key features from each slice by training with previously labeled data. For example, a convolutional neural network based on deep learning can be used to analyze slice images and extract key features from them.

[0094] In one implementation of the present application, the selecting of several typical features from the slice features specifically includes:

[0095] S211, modeling each image block feature in the slice feature in a linear combination manner of Gaussian functions to obtain a feature distribution model;

[0096] Specifically, in actual clinical diagnosis and treatment, especially in the field of pathology, doctors often diagnose patients based on slices with typical lesion features. In order to more efficiently and accurately extract these typical lesion features from a large number of slices, this application proposes a pathology image classification method based on typical feature propagation.

[0097] The core of the pathological image classification method lies in an innovative network structure, which can accurately select several typical features from each slice feature. Specifically, in order to achieve the acquisition of typical features, the expectation maximization attention algorithm, referred to as EM attention, is used.

[0098] The working principle of the EM attention algorithm is based on the Gaussian mixture model (GMM). This algorithm performs feature statistics on each slice and models the image block features in the slice in the form of a linear combination of Gaussian functions, effectively identifying typical lesion features in the slice.

[0099] To explain further, considering the various features and their changes in the slice, the EM Attention algorithm is able to assign weights to the features according to their distribution and importance, ensuring that only the most representative and diagnostically valuable features are selected, which not only improves the accuracy of diagnosis, but also greatly shortens the analysis time, providing doctors with a more intuitive and accurate reference.

[0100] Furthermore, the mathematical formula for modeling can be:

[0101]

[0102] Where n is the number of Gaussian functions, is the feature of the image block, p is the model established for the distribution of slice features, and zik represent the mean, covariance and weight of the kth Gaussian function respectively, and d is 1024.

[0103] In the specific implementation of this application, some specific configurations are made to the expectation maximization algorithm. First, the number of Gaussian functions is set to 8 to ensure that more feature distributions can be covered and captured during the calculation process. At the same time, the number of iterations of the EM algorithm is set to 4 to ensure a good balance between algorithm convergence and computing resources.

[0104] In addition, a balance parameter is set to control the weight between the original features and the updated features, which is set to 0.5. This means that during the calculation process, these two types of features are given equal weight.

[0105] It is worth noting that in the initial stage of training, typical features may not have been fully learned and captured. Therefore, a phased strategy is adopted: in the first 50 training cycles, only typical features within a slice are used for training; and after completing 50 training cycles, typical features between slices are added to the training process. Such a strategy can avoid premature introduction of typical features that may not be accurate, thereby affecting the training effect of the model.

[0106] S212. Select several typical features from the slice features by iterating the feature distribution model.

[0107] Specifically, the EMattention algorithm randomly initializes the mean in the initial stage. At each iteration, the algorithm goes through two key steps. The first is the E step (Expectation Step), in which the algorithm calculates the weight of the Gaussian function, which represents the probability that each image block feature is generated by the Gaussian function. Then, the M step (Maximization Step) is executed, which is mainly used to update the mean of the Gaussian function.

[0108] These two steps are performed alternately to capture the global contextual information of the slice in a non-local way. Through continuous iteration and adjustment, the model gradually understands which parts or features in the slice are most likely to be typical or most diagnostically valuable.

[0109] S22. Selecting a plurality of reference features from a preset feature library based on the plurality of typical features.

[0110] Specifically, in order to ensure more accurate results during the classification process, not only the typical features of the current slice are considered, but also a preset feature library is used, which stores the typical features of various medium and high confidence slices. This strategy is based on the understanding that even in the same slice, the typical features will show subtle differences due to different forms of image blocks. Therefore, by using the preset feature library, the typical features between different slices are better propagated, and the differences in the images between each type of slice are maximized, thereby helping the network to more accurately classify those slices that are difficult to distinguish.

[0111] The preset feature library exists in the form of a storage table, which records the typical features of each type of slice and its corresponding prediction score. When new slice data enters, its typical features and prediction scores are first obtained, and then compared with the scores of similar slices in the storage table.

[0112] Furthermore, in one implementation, the process of comparing scores based on the preset feature library is as follows:

[0113] First, a threshold for prediction score is preset for each type of slice, which is obtained through statistical analysis of historical data. This design ensures that only when the prediction score of a new slice is higher than the preset threshold, its related typical features are eligible to enter the preset feature library or replace the existing data in it.

[0114] When new slice data are submitted to the system, their predicted scores are carefully compared with the scores of similar slices in the preset feature library.

[0115] In addition, a weighting system was introduced to optimize the score comparison. Considering that different typical features may have different importance in actual clinical diagnosis, a weight is assigned to each feature. The weight is determined based on the rarity of the features and their contribution to the classification. This means that when comparing the scores, the assigned weights are taken into account, thus reflecting the true value of each feature more accurately.

[0116] Therefore, when a new slice needs to be classified, not only the typical features directly extracted from the current slice will be considered, but also similar reference features will be retrieved based on these typical features in the preset feature library. This combined method not only improves the accuracy of classification, but also enhances the model's ability to distinguish difficult-to-distinguish slices.

[0117] S23. Interacting the plurality of typical features with the plurality of reference features to obtain a plurality of updated typical features and a plurality of updated reference features.

[0118] Specifically, in order to further optimize and update the typical features and reference features, a method based on a bidirectional random walk module was adopted, which was specially designed for the features within and between slices, aiming to make these features more representative and discriminative.

[0119] Among them, typical feature propagation plays a core role. Specifically, given a set of slice features, the typical features are propagated to the current slice features using random walk operations to achieve feature update and optimization.

[0120] The core calculation formula of this propagation operation is:

[0121] F * = w·Z * μ * +(1-w)·F

[0122] Among them, w is a parameter in the range of [0,1], and its main function is to balance the weights between the original features and the propagated features. The balanced design ensures that the updated features do not deviate too much from the original features, thereby maintaining the stability and continuity of the features. * represents the weight of the Gaussian function, u * It is the typical feature of the current slice or the typical feature extracted from the historical slice.

[0123] After the propagation of typical features and the effect of this bidirectional random walk module, not only the updated intra-slice features but also the updated inter-slice features are obtained, namely, F * , making the feature system more complete and helping to improve the accuracy and robustness of the model.

[0124] S24. Determine a slice prediction result of the pathological image corresponding to the slice feature based on the slice feature, a plurality of updated typical features, and a plurality of updated reference features.

[0125] Specifically, in order to ensure that the classification prediction results of pathological images are both accurate and stable, the current slice features, updated typical features, and reference features are comprehensively considered for judgment.

[0126] First, the feature description of the current pathological image slice is obtained through the feature extraction network. The feature description represents key information such as pathological morphology, texture, and color distribution on the slice, providing basic data for subsequent prediction analysis.

[0127] Secondly, the updated typical features are selected from the preset feature library. The typical features are previously selected and stored based on their high prediction scores, representing the most representative features of the pathological sections.

[0128] Again, in addition to typical features, reference features similar to the current slice features are retrieved from the feature library. Reference features are extracted based on the comparison of previous pathological slice data with the data in the existing library, providing additional clues about the pathological classification of the current slice.

[0129] After obtaining these three types of feature data, the discrimination stage begins.

[0130] In one implementation, a deep learning classifier is used to consider the above three features and fuse them together. Based on the fused features, the classifier generates a prediction result for the current pathological slice, which represents the most likely pathological category of the slice.

[0131] In order to increase the accuracy of prediction, a weighting system is used to assign different weights to features from different sources. These weights are determined based on the importance of the features and their contribution to the classification.

[0132] It is worth noting that in the specific implementation of this application, a multi-classification task at the slice level is faced. Due to the imbalance in the number of categories in the pathological slice samples, the selected loss function is LADE. The LADE loss function fully considers the number of samples in each category in the data set and assigns importance weights to different categories, thereby improving the attention to minority categories and classification performance.

[0133] Preferably, in an implementation of the present application, determining the slice prediction result of the pathological image corresponding to the slice feature based on the slice feature, the plurality of updated typical features and the plurality of updated reference features specifically includes:

[0134] S241, inputting the slice features, several updated typical features and several updated reference features into a trained Transformer network.

[0135] Among them, the Transformer network based on the self-attention mechanism was originally designed for natural language processing and other sequence learning tasks. However, over time, due to its superior processing power and flexibility, the Transformer network has been widely used in the field of computer vision. For example, Vision Transformer and SwinTransformer, etc., have achieved remarkable results in the field of image analysis.

[0136] Furthermore, a key feature is that the Transformer network can theoretically process sequences of arbitrary length. By adopting the self-attention mechanism, the Transformer network can effectively focus on the global information in the sequence and capture the relationship between different elements, which is particularly critical for pathological image analysis. Because pathological images contain a lot of tiny and detailed information, they need to be compared and analyzed on a global scale.

[0137] Typically, in computer vision applications, images are first decomposed into several image blocks and converted into sequence form for network analysis. In this context, each image block can be considered as a sequence element. For pathological images, after feature extraction, each image block feature is considered as a sequence element to ensure that the input data structure provided to the Transformer is consistent with the expected input when it was designed.

[0138] In summary, the features of each image block of the pathological slice, the updated typical features, and the updated reference features are provided as input sequences to the Transformer network. The Transformer can effectively capture the interrelationships and connections between features, thereby providing a comprehensive and comprehensive analysis result for the entire pathological slice.

[0139] S242. Determine a slice prediction result of the pathological image corresponding to the slice feature through the Transformer network.

[0140] Specifically, based on the above-mentioned division of several small image blocks from the entire pathological image slice, these image blocks represent the local features of the image and can be regarded as elements similar to the vocabulary in the Transformer network.

[0141] Next, the image patch is input into the Transformer encoder. The core of the encoder is the multi-head self-attention mechanism. The multi-head self-attention mechanism allows the model to simultaneously consider the relationship between the selected image patch and all other image patches, thereby capturing the interdependencies and contextual information between different locations in the image. The advantage of the self-attention mechanism is that it can generate a unique representation for each image patch that is weighted by its relationship with all other image patches.

[0142] In addition to the multi-head self-attention mechanism, the encoder also contains a feedforward neural network and residual connections. The feedforward neural network further processes the output of the self-attention, enhancing the expressiveness of the model. The residual connection helps prevent the gradient vanishing problem that occurs when training deep networks.

[0143] After being processed by the encoder, each image patch is given an encoded representation that captures its relationship and context with other image patches. Finally, all the image patch encodings are merged or aggregated to form a vector representation that represents the entire slice.

[0144] Furthermore, to achieve classification, the vector representation of the entire slice is fed into a fully connected layer, which outputs the prediction score for each category. Based on the score, the final prediction result of the pathology image slice is determined.

[0145] In another implementation, after determining the slice prediction result of the pathological image corresponding to the slice feature based on the slice feature, the plurality of updated typical features and the plurality of updated reference features, the method further includes:

[0146] The preset feature library is updated based on the confidence using the several typical features.

[0147] Specifically, after obtaining the typical features of each slice, a confidence-based strategy is used to update the preset feature library.

[0148] First, a special feature library is established to store the typical features of high-confidence slices under different categories. The establishment of the feature library follows a standard: different slices under the same category may contain image blocks of the same type but different shapes. Therefore, by storing the typical features of each slice in the feature library and propagating the typical features in the subsequent process, the image differences between different slices under the same category are fully utilized, so that the model can more accurately identify difficult-to-identify slices during subsequent training and classification.

[0149] More specifically, a feature library is used to record the typical features of each type of slice and its corresponding prediction score. When new slice features and prediction scores are generated, the new data will be compared with the scores of similar slices in the feature library. If the new prediction score is higher than the score in the feature library, the new typical features and their scores will replace the original data and be updated to the feature library. This mechanism ensures that the feature library is always maintained in the latest and most representative state.

[0150] Furthermore, in order to effectively manage the feature library and ensure that it does not consume too much memory, a strategy is formulated: under each category, only the typical features with the top k prediction scores are saved, where k is a preset parameter, and the value of k can be 5, representing the top five typical features, and the value of k can also be 10, representing the top ten typical features. Preferably, in the specific implementation of the present application, the 10 typical features with the highest confidence are retained to achieve a balance between retaining key information and saving computing resources.

[0151] In summary, through the score comparison and update mechanism, not only the high quality of the data in the preset feature library is ensured, but also the goal of gradually improving the classification accuracy of the model in the continuous learning process is achieved, making the model more accurate and robust when dealing with difficult-to-distinguish slices.

[0152] S30, such as Figure 3 As shown, the object feature of the target object is determined based on each slice feature, and the object prediction result of the target object is determined based on the object feature and the slice feature.

[0153] In one implementation, determining the object features of the target object based on the features of each slice specifically includes:

[0154] S31, determining the attention scores corresponding to the respective slice features, and fusing the slice features based on the determined attention scores to obtain initial object features;

[0155] For the field of pathological image analysis, how to effectively fuse features from different slices of the same object (such as Crohn's disease pathological tissue) is a common challenge. Each slice may contain valuable information for diagnosis, but the importance of different slices may vary.

[0156] Therefore, a method is needed to determine the weights of each slice feature, and to fuse the slice features with emphasis based on the weights to obtain the corresponding object features.

[0157] Generally, there are several options for determining the weights of each slice feature, such as:

[0158] Max Slice Strategy (Maxs): In this strategy, the prediction probability of each slice feature is first calculated, then the probabilities are sorted, and the slice feature with the highest probability is selected as the patient-level feature. This strategy is based on the assumption that the slice with the highest probability often contains the most important information, so using this slice feature as a patient-level feature should yield better prediction results.

[0159] MaxMinS: In this strategy, the predicted probability of each slice feature is first calculated, and then the probabilities are sorted, and the two slice features with the largest and smallest probabilities are taken, and the features are averaged as the patient-level features. This strategy is based on the assumption that the slice features with the largest and smallest probabilities often contain the richest information, and by averaging their features, a more comprehensive patient-level feature can be obtained.

[0160] Attention Feature Fusion Strategy (AFS): In this strategy, the attention network is first used to calculate the attention score of each slice feature, and then based on the attention score, the slice features are fused to obtain a patient-level feature. This strategy is based on the assumption that the importance of each slice feature is different. Through the attention mechanism, weighted fusion can be performed according to the importance of each feature to obtain a more accurate patient-level feature. Of course, it is worth noting that when using the attention feature fusion strategy, the slice-level network can be trained and then the patient-level network can be trained.

[0161] Preferably, to solve this problem, the present application introduces an attention feature fusion strategy. Specifically, the core of the attention feature fusion strategy is the attention mechanism.

[0162] The attention mechanism is a technique for capturing the relative importance of different parts of an input. It has been widely used in fields such as natural language processing, computer vision, and recommendation systems.

[0163] First, determine the attention score corresponding to each slice feature. This process can be regarded as a learning process. The model learns the influence of each slice feature on the diagnosis result by learning the training data, and assigns a corresponding attention score to each slice feature. This score represents the importance of the feature among all slice features. The higher the value, the more important the feature is.

[0164] Then, the slice features are fused based on the determined attention scores. This process is achieved through a weighted average, where the weight of each slice feature is its corresponding attention score. In this way, the slice features from the same object are effectively fused while retaining the important information of each feature.

[0165] Specifically, for the feature vector set {h j}, which is fed into a fully connected neural network layer and a logistic activation function is applied to each h j Output weight α j Secondly, based on this weight, the vector is weighted averaged to finally obtain the patient feature v j , where the formula is:

[0166] α j =FC(h j |j=1 to N i )

[0167]

[0168] In summary, the initial object feature is obtained. The initial object feature integrates all slice features from the same object, retaining the important information of each slice feature and considering the relative importance of each slice feature. Therefore, this feature can effectively improve the prediction performance of the model.

[0169] S32: Interact the initial object feature with each slice feature to obtain object features.

[0170] Specifically, when processing pathological images, the interaction between the initial object features (patient features) and each slice feature is crucial for extracting useful diagnostic information. In this application, in order to more effectively utilize the connection between slice features and patient features, a feature interaction module based on the self-attention mechanism is designed.

[0171] Specifically, the module treats the feature vector of the initial object and the feature vector of the slice as equally important information inputs, rather than treating them differently. The feature interaction module based on the self-attention mechanism allows the feature vector of the initial object and the feature vector of the slice to be processed simultaneously in the same processing stage, and automatically learns the intrinsic connection between these features through the self-attention mechanism.

[0172] To achieve this goal, the Transformer network was used as the main processing framework. The Transformer network has powerful feature extraction and relationship modeling capabilities, and can process and integrate patient-level and slice-level features.

[0173] After being input into the Transformer network, a fully connected layer is used to achieve patient-level and slice-level predictions. In addition, the model's attention matrix is ​​visualized, allowing clinicians to intuitively understand the model's attention distribution when processing these two types of features.

[0174] The design of the feature interaction module based on the self-attention mechanism provides a general network framework for this application, which is suitable for different slice network designs. The main advantage is that the association between slice and patient features is more effectively utilized.

[0175] In a specific implementation, the interacting the initial object feature with each slice feature to obtain the object feature specifically includes:

[0176] S321, the initial object features and each slice feature are input into the Transformer network.

[0177] S322. Determine the output weight corresponding to each slice feature through the Transformer network, and weight each slice feature based on the output weight to obtain the object feature.

[0178] Specifically, in order to better extract and analyze the slice features in the image, the Transformer network is used. The main advantage of the Transformer network is that it can handle complex dependencies between items in the input and is suitable for various types of feature extraction and representation.

[0179] First, the initial object features and each slice feature are fed into the Transformer network as input. The input part of the Transformer network usually includes an embedding layer, which transforms these features into a continuous vector space so that the network can process them.

[0180] The core of the Transformer network is its self-attention mechanism. The self-attention mechanism allows the model to consider all features in the input at the same time when processing a certain feature, and each feature contributes differently to the processing, so that the model can dynamically assign different weights to the input features, where the weight can be understood as the importance of each slice feature in generating object features.

[0181] After the feature passes through the self-attention mechanism, the feature vector will pass through a feed-forward neural network for further transformation and encoding. After passing through the Transformer network, the output weight corresponding to each slice feature will be obtained.

[0182] Secondly, the slice features are weighted according to these output weights. In other words, the proportion of each slice feature and the initial object feature in the final object feature is determined according to the weight obtained in the Transformer network, making full use of the information of all slice features while ensuring the attention to important features.

[0183] In summary, a feature that integrates the feature information of each slice and the feature information of the initial object is obtained. This integrated object feature not only contains the unique information of each individual slice, but also integrates the relationship between each slice and the initial object feature, providing a comprehensive and accurate feature description for subsequent pathological image classification.

[0184] In the specific implementation of this application, a structure with 8 blocks and 8 attention heads is set, which is the same as the common Transformer Encoder network structure. In this configuration, each block contains a self-attention layer and a feedforward neural network layer, and each attention head represents a different focus area.

[0185] It is worth noting that no independent classification tokens are set in the implementation of this application. Instead, it relies on the functions of the Transformer network itself to generate a global contextual representation by interacting and integrating all elements in the input sequence. Specifically, the Transformer network takes into account each image block feature in the pathological slice, as well as the corresponding updated typical features and updated reference features, to form a comprehensive contextual representation. This representation captures the complex interaction between slice features and initial object features, as well as their relative relationship in the global context.

[0186] In addition, in the implementation of the present application, when processing the slice feature network and the initial object feature network, the ADAM optimizer is selected to adjust the network parameters. The ADAM optimizer has the characteristics of adaptive learning rate, which can provide a separate learning rate for each parameter, so that the model can converge faster and more stably during the training process.

[0187] In the initial stage, the learning rate is set to 1e-4, which is a moderate choice that can ensure the stability of training while avoiding too slow training speed caused by too small a learning rate. As the training progresses, a cosine annealing strategy is used to gradually reduce the learning rate. This strategy can effectively balance the relationship between exploration and utilization, allowing the network to make more detailed adjustments when approaching the optimal solution. Under this setting, the learning rate will gradually decay in each cycle, and each cycle is defined as 50 rounds. After a cycle, the learning rate will be adjusted to close to 1e-12, which is small enough to ensure the stability of the model when approaching the optimal solution.

[0188] In order to prevent overfitting, a weight decay mechanism is introduced, and the weight decay coefficient is set to 5e-4. Each time the model updates the weight, a part of the weight will be suppressed, so that the complexity of the network is controlled and the risk of overfitting is reduced.

[0189] The above network will be trained for 400 rounds under such settings. The setting of this optimization strategy not only ensures the efficiency of model training, but also ensures the generalization ability and stability of the model.

[0190] At the same time, a five-fold cross-validation strategy is adopted in the implementation of this application to improve the generalization performance of the model. To ensure the balanced distribution of data, two principles are followed: first, the sample slices of the same patient are divided into the same fold; second, the number of slices in each fold is kept as consistent as possible. Based on this strategy, the entire data set is divided into five parts: three parts are used for model training, one part is used for model verification, and the last part is used for model testing.

[0191] For model training, all networks are trained from scratch without any pre-trained parameters. In order to enable the model to better capture the detailed features of pathological images, a two-level training strategy is adopted. First, the slice-level network is trained, and then the object target level network is trained based on the slice-level network. It is worth noting that during the training of the object target level network, the parameters of the slice-level network are not frozen, so that the parameters of the slice-level and object target level networks can be dynamically adjusted during the entire training process, which helps to improve the performance of the model.

[0192] In summary, this embodiment provides a method for detecting Crohn's disease based on multi-instance learning and pathological images, the method comprising obtaining a number of pathological images, and obtaining slice features corresponding to each pathological image, wherein the several pathological images correspond to the same target object, and each pathological image includes a preset number of image blocks; determining slice prediction results corresponding to each pathological image based on each slice feature; determining object features of the target object based on each slice feature, and determining object prediction results of the target object based on the object features and the slice features. After extracting the slice features corresponding to the pathological image, the present application determines the slice prediction results and target object features of the pathological image based on the slice features, and then determines the target object prediction results based on the slice-level features and the patient-level features, and uses the slice and patient levels together in the process of Crohn's disease detection, thereby improving the accuracy of Crohn's disease detection and reducing the misdiagnosis rate.

[0193] Based on the above-mentioned Crohn's disease detection method based on multiple example learning and pathological images, this embodiment provides a Crohn's disease detection device based on multiple example learning and pathological images, such as Figure 4As shown, the device comprises:

[0194] A feature extraction module 100 is used to obtain a plurality of pathological images and obtain slice features corresponding to each pathological image, wherein the plurality of pathological images correspond to the same target object and each pathological image includes a preset number of image blocks;

[0195] A first prediction module 200, for determining slice prediction results corresponding to each pathological image based on each slice feature;

[0196] The second prediction module 300 is used to determine the object feature of the target object based on each slice feature, and determine the object prediction result of the target object based on the object feature and the slice feature.

[0197] Based on the above-mentioned Crohn's disease detection method based on multi-instance learning and pathological images, this embodiment provides a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the Crohn's disease detection method based on multi-instance learning and pathological images as described in the above-mentioned embodiment.

[0198] Based on the above-mentioned Crohn's disease detection method based on multi-example learning and pathological images, the present application also provides a terminal device, such as Figure 5 As shown, it includes at least one processor (processor) 20; display screen 21; and memory (memory) 22, and may also include a communications interface (Communications Interface) 23 and a bus 24. Among them, the processor 20, the display screen 21, the memory 22 and the communication interface 23 can communicate with each other through the bus 24. The display screen 21 is configured to display a preset user guide interface in the initial setting mode. The communication interface 23 can transmit information. The processor 20 can call the logic instructions in the memory 22 to execute the method in the above embodiment.

[0199] In addition, the logic instructions in the memory 22 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.

[0200] The memory 22 is a computer-readable storage medium that can be configured to store software programs, computer executable programs, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes functional applications and data processing by running the software programs, instructions or modules stored in the memory 22, that is, implementing the methods in the above embodiments.

[0201] The memory 22 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 22 may include a high-speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, may also be a transient storage medium.

[0202] In addition, the specific process of loading and executing the multiple instruction processors in the above-mentioned storage medium and the terminal device has been described in detail in the above-mentioned method, and will not be described one by one here.

[0203] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A Crohn's disease detection method based on multi-instance learning and pathological images, characterized in that: The method comprises: Acquire a plurality of pathological images, and acquire slice features corresponding to each pathological image, wherein the plurality of pathological images correspond to the same target object, and each pathological image includes a preset number of image blocks; Determine the slice prediction result corresponding to each pathological image based on the characteristics of each slice; Determining an object feature of a target object based on each slice feature, and determining an object prediction result of the target object based on the object feature and the slice feature, specifically includes: For each slice feature, select several typical features from the slice features; Selecting a number of reference features from a preset feature library based on the number of typical features; The plurality of typical features and the plurality of reference features are interacted to obtain a plurality of updated typical features and a plurality of updated reference features, wherein the interaction method refers to feature propagation interaction based on a bidirectional random walk mechanism; Determining a slice prediction result of a pathological image corresponding to the slice feature based on the slice feature, a plurality of updated typical features and a plurality of updated reference features; The selecting of several typical features from the slice features specifically includes: Each image block feature in the slice feature is modeled in a linear combination of Gaussian functions to obtain a feature distribution model; By iterating the feature distribution model, several typical features are selected from the slice features.

2. The Crohn's disease detection method based on multi-instance learning and pathological images according to claim 1, characterized in that: The determining, based on the slice feature, the plurality of updated typical features and the plurality of updated reference features, the slice prediction result of the pathological image corresponding to the slice feature specifically includes: Inputting the slice features, the plurality of updated typical features and the plurality of updated reference features into a trained Transformer network; The slice prediction result of the pathological image corresponding to the slice feature is determined by the Transformer network.

3. The Crohn's disease detection method based on multi-instance learning and pathological images according to claim 1 or 2, characterized in that: After determining the slice prediction result of the pathological image corresponding to the slice feature based on the slice feature, the plurality of updated typical features and the plurality of updated reference features, the method further includes: The preset feature library is updated based on the confidence using the several typical features.

4. The Crohn's disease detection method based on multi-instance learning and pathological images according to claim 1, characterized in that: Determining the object features of the target object based on the features of each slice specifically includes: Determine the attention score corresponding to each slice feature, and fuse the slice features based on the determined attention scores to obtain the initial object features; The initial object feature and each slice feature are interacted to obtain the object feature.

5. The Crohn's disease detection method based on multi-instance learning and pathological images according to claim 4, characterized in that: The interacting of the initial object features with each slice feature to obtain the object features specifically includes: The initial object features and each slice feature are input into the Transformer network; The output weight corresponding to each slice feature is determined through the Transformer network, and the slice features are weighted based on the output weight to obtain the object feature.

6. A Crohn's disease detection device based on multi-instance learning and pathological images, characterized in that: The device comprises: A feature extraction module, used to obtain a plurality of pathological images and obtain slice features corresponding to each pathological image, wherein the plurality of pathological images correspond to the same target object and each pathological image includes a preset number of image blocks; A first prediction module, used to determine the slice prediction results corresponding to each pathological image based on the characteristics of each slice; The second prediction module is used to determine the object feature of the target object based on each slice feature, and determine the object prediction result of the target object based on the object feature and the slice feature, specifically including: For each slice feature, select several typical features from the slice features; Selecting a number of reference features from a preset feature library based on the number of typical features; The plurality of typical features and the plurality of reference features are interacted to obtain a plurality of updated typical features and a plurality of updated reference features, wherein the interaction method refers to feature propagation interaction based on a bidirectional random walk mechanism; Determining a slice prediction result of a pathological image corresponding to the slice feature based on the slice feature, a plurality of updated typical features and a plurality of updated reference features; The selecting of several typical features from the slice features specifically includes: Each image block feature in the slice feature is modeled in a linear combination of Gaussian functions to obtain a feature distribution model; By iterating the feature distribution model, several typical features are selected from the slice features.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the Crohn's disease detection method based on multi-instance learning and pathological images as described in any one of claims 1-5.

8. A terminal device, characterized in that: include: Processor and memory; The memory stores a computer-readable program executable by the processor; When the processor executes the computer-readable program, the steps in the Crohn's disease detection method based on multi-instance learning and pathological images as described in any one of claims 1 to 5 are implemented.