A risk grading system for schistosomiasis liver disease ultrasound images based on deep learning

Through deep learning technology and a deep neural network with a Transformer structure, it solves the problems of subjectivity and low accuracy of traditional schistosomiasis liver ultrasound diagnosis methods, achieves rapid and accurate judgment and risk classification of schistosomiasis liver ultrasound images, and improves diagnostic efficiency and accuracy.

CN117274228BActive Publication Date: 2024-09-10脉得智能科技(无锡)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311387976.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-24
Publication Date
2024-09-10
Estimated Expiration
2043-10-24

AI Technical Summary

Technical Problem

Traditional schistosomiasis liver ultrasound diagnostic methods are subjective and dependent, making it difficult to capture complex lesion characteristic patterns, resulting in inconsistent diagnostic results and low accuracy.

Method used

A schistosomiasis liver disease ultrasound image risk grading system based on deep learning is adopted, including image acquisition, preprocessing, feature extraction, image judgment and risk level output modules, using deep neural networks with ResNet101 and Transformer structures, through image processing algorithms and self-attention mechanisms Perform feature extraction and risk classification.

Benefits of technology

It achieves rapid and accurate judgment and risk classification of schistosomiasis liver ultrasound images, reduces subjective errors, improves diagnostic efficiency and accuracy, and provides doctors with a more reliable diagnostic reference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117274228B
    Figure CN117274228B
Patent Text Reader

Abstract

The present invention discloses a risk grading system for ultrasound images of schistosomiasis liver disease based on deep learning, which relates to the technical field of ultrasound image risk grading. The system can quickly and accurately determine whether liver disease is caused by schistosomiasis infection in liver ultrasound images, and predict disease risks for ultrasound images of schistosomiasis liver disease, provide diagnostic suggestions for doctors, and assist doctors in making treatment decisions. Resnet101 is used as a classification network for schistosomiasis liver ultrasound and other liver ultrasound diseases to determine whether liver ultrasound disease images are caused by schistosomiasis infection. ConVit is used as a risk grading network for ultrasound images of schistosomiasis liver disease. The risk grading network can accurately and quickly extract and calculate features of ultrasound images of schistosomiasis liver disease, and finally the disease risk of liver ultrasound images is determined through a softmax function, thereby helping doctors to make more accurate diagnosis and evaluation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of ultrasound image risk grading, and in particular to a deep learning-based ultrasound image risk grading system for schistosomiasis liver disease. Background Art

[0002] Schistosomiasis liver disease is a parasitic disease caused by infection with schistosome parasites, which mainly harms the liver and surrounding tissues. Schistosomiasis parasites parasitize and lay eggs in the liver, causing inflammation and damage to liver tissue. As the number of parasites increases, liver tissue may develop lesions such as fibrosis, cirrhosis, and portal hypertension. This can seriously affect the function of the liver, leading to symptoms such as decreased liver function, jaundice, and ascites. Schistosomiasis liver disease can cause abdominal symptoms such as abdominal pain, bloating, and indigestion. This is due to the increase in intra-abdominal pressure caused by liver lesions and portal hypertension, which leads to abdominal discomfort and digestive system dysfunction. The harm of schistosomiasis liver disease seriously affects the patient's quality of life and health. Early prevention, diagnosis, and treatment are of great significance in reducing the harm of schistosomiasis liver disease.

[0003] At present, traditional methods have some shortcomings in schistosomiasis liver ultrasound, including the following aspects: 1. Subjectivity and dependence: Traditional methods usually rely on the subjective judgment and experience of doctors in schistosomiasis liver ultrasound, which is easily affected by individual differences and subjective errors of doctors. Different doctors may have different observations and diagnostic results, resulting in inconsistent diagnostic results. 2. Limited to specific features and patterns: Traditional methods in schistosomiasis liver ultrasound usually make diagnoses based on specific features and patterns extracted manually. However, the characteristics of schistosomiasis liver lesions can be very complex and diverse, and traditional methods often have difficulty capturing and describing these complex feature patterns.

[0004] Artificial intelligence is an important development direction in the era of precision medicine. The development of big data, the shortage of medical resources, and the transformation of diagnosis and treatment models provide great opportunities for artificial intelligence. At present, artificial intelligence has made certain progress in medical imaging, pathology, and decision-making support systems. Deep learning models can learn the features of a large amount of ultrasound image data and automatically perform analysis tasks such as image segmentation, lesion detection, and classification. Compared with traditional manual feature extraction methods, deep learning can reduce the workload of doctors and improve the efficiency and accuracy of diagnosis. Through large-scale training data and optimization algorithms, deep learning models can learn complex image feature patterns, thereby having high accuracy in lesion detection and classification. Compared with manual judgment, deep learning can provide more consistent and objective results, reducing subjective errors and diagnostic differences. Summary of the invention

[0005] In order to solve the above technical problems, the present invention provides a risk grading system for ultrasound images of Schistosoma japonicum liver disease based on deep learning, including an image acquisition module, a preprocessing module, a feature extraction module, an image judgment module and a risk level output module;

[0006] An image acquisition module, used for acquiring an ultrasound image of the patient's liver using an ultrasound device;

[0007] A preprocessing module, used for preprocessing liver ultrasound images;

[0008] The feature extraction module is used to resize the liver ultrasound image to 224×224 and then send it to the schistosomiasis liver ultrasound classification network to extract the schistosomiasis liver disease features and other liver ultrasound image features in the liver ultrasound image.

[0009] An image judgment module is used to judge the liver ultrasound image to determine whether the liver lesions are caused by schistosomiasis infection, and if so, proceed to the next step;

[0010] The risk level output module is used to construct a deep neural network for schistosomiasis liver disease risk grading. The deep neural network extracts and calculates features of liver ultrasound images, calculates feature distances of different degrees of schistosomiasis liver disease lesions, and finally outputs the risk level of schistosomiasis liver disease.

[0011] The technical solution further defined in the present invention is:

[0012] Furthermore, in the preprocessing module, an image processing algorithm is used to preprocess the liver ultrasound image, and the preprocessing includes denoising, contrast enhancement, and brightness adjustment.

[0013] In the aforementioned deep learning-based risk grading system for schistosomiasis liver disease ultrasound images, in the feature extraction module, ResNet101 with a residual structure is used as the schistosomiasis liver ultrasound classification network. The leading part of the schistosomiasis liver ultrasound classification network includes a 7×7 convolutional layer, followed by a maximum pooling layer, which is used to perform preliminary feature extraction and dimensionality reduction on the input image.

[0014] The middle part of the schistosoma liver ultrasound classification network contains 4 block modules with residual structures, namely the first block module containing 3 residual structures, the second block module containing 4 residual structures, the third block module containing 23 residual structures, and the fourth block module containing 3 residual structures;

[0015] Global average pooling is used at the end of the schistosoma japonicum liver ultrasound classification network.

[0016] The aforementioned deep learning-based ultrasound image risk grading system for Schistosoma japonicum liver disease has a residual structure consisting of two 1×1 convolutional layers, one 3×3 convolutional layer, and a skip connection of one 1×1 convolutional layer.

[0017] In the aforementioned deep learning-based risk grading system for schistosomiasis liver disease ultrasound images, in the image judgment module, the method for judging the liver ultrasound image includes the following steps:

[0018] A1. Input the liver ultrasound image of size 224×224 into the first convolutional layer of the schistosoma liver ultrasound classification network, and output a feature map of size 112×112 and 64 channels;

[0019] A2. Pass the feature map output in the previous step through the first block module. The feature map output size is 56×56, and the number of channels is increased to 256.

[0020] A3. The feature map output in the previous step passes through the second block module. The feature map output size is 28×28, and the number of channels increases to 512.

[0021] A4. Pass the feature map output in the previous step through the third block module. The feature map output size is 14×14, and the number of channels is increased to 1024.

[0022] A5. Pass the feature map output in the previous step through the fourth block module. The feature map output size is 7×7, and the number of channels is increased to 2048.

[0023] A6, the global average pooling layer pools the 7×7 feature map into a 1×1 feature map, where each channel corresponds to a feature value; then the softmax function normalizes the value of each channel from 0 to 1 to obtain the probability and corresponding category, where 0 represents an ultrasound image of schistosomiasis liver disease and 1 represents an ultrasound image of a normal liver;

[0024] A7. Determine by category whether the liver ultrasound image is a liver disease caused by schistosomiasis infection.

[0025] In the above-mentioned deep learning-based ultrasound image risk grading system for Schistosoma japonicum liver disease, in step A6, for a classification problem with n categories, given an input vector X=(x1, x2, ..., x n ), the softmax function outputs Y = (y1, y2, ..., y n ) is calculated as follows:

[0026]

[0027] Among them, P(y|x) represents the probability of a certain i-th category calculated by the softmax function, e represents the base of the natural logarithm, i and j represent the i-th or j-th category, h(x, y i ) represents the vector value of the liver ultrasound image belonging to the i-th category.

[0028] In the aforementioned risk grading system for schistosomiasis liver disease ultrasound images based on deep learning, in the risk level output module, the deep neural network for schistosomiasis liver disease risk grading includes 1 convolution layer, 1 convolution transformation module, 1 average pooling layer, 1 layer normalization module LayerNorm and 1 fully connected layer connected in sequence; the convolution transformation module includes 12 convolution transformation submodules Convit blocks, of which the first 10 convolution transformation submodules Convit blocks are the first convolution transformation submodules Convit blocks, and the last 2 convolution transformation submodules Convit blocks are the second convolution transformation submodules Convit blocks;

[0029] The first convolutional transformation submodule Convit block includes a layer normalization module LayerNorm, a gated position self-attention module GPSA and a multi-layer perceptron module MLP; the second convolutional transformation submodule Convit block includes a layer normalization module LayerNorm, a multi-head attention module MHSA and a multi-layer perceptron module MLP.

[0030] The above-mentioned deep learning-based risk grading system for schistosomiasis liver disease ultrasound images, in the risk level output module, a method for extracting and calculating features of liver ultrasound images through a deep neural network for schistosomiasis liver disease risk grading includes the following steps:

[0031] B1. The liver ultrasound image with a size of 224×224, which is judged to be caused by schistosomiasis infection, is sent to the deep neural network for schistosomiasis liver disease risk grading. After passing through the first convolutional layer, the output feature map is 14×14 in size and has 768 channels.

[0032] B2, send the feature map with a size of 14×14 and 768 channels to the convolution transformation module, and output a feature vector with a size of 197×768;

[0033] B3. The 197×768 feature vector obtained in the previous step is passed through the average pooling layer, layer normalization module and fully connected layer in turn to obtain an N×3 feature vector. Finally, it is classified through the softmax function and the result is output.

[0034] In the above-mentioned deep learning-based ultrasound image risk grading system for Schistosoma japonicum liver disease, in the convolution transformation module of step B2, the input of each layer in the deep neural network is normalized by the layer normalization module LayerNorm, so that each feature dimension has zero mean and unit variance on the training samples; the limitations of convolution are simulated by initializing the gated position self-attention module GPSA, and then the attention of the corresponding position and content information is adjusted by a gating parameter; the feature map input is linearly projected into multiple feature subspaces by the multi-head attention module MHSA, and processed in parallel by multiple independent attention heads, and the result vectors are connected and mapped to the final output; after the multi-layer perceptron module MLP is applied to each attention mechanism sublayer, the output of each attention sublayer is nonlinearly mapped and feature transformed.

[0035] In the aforementioned risk grading system for ultrasound images of Schistosoma japonicum liver disease based on deep learning, in the risk level output module, the risk level of Schistosoma japonicum liver disease is set to three levels, namely, level one risk, level two risk, and level three risk;

[0036] The first-level risk is set as: the liver ultrasound image shows the presence of liver fibrosis; the second-level risk is set as: the liver ultrasound image shows that the liver fibrosis is further aggravated and the characteristics of cirrhosis appear; the third-level risk is set as: the liver ultrasound image shows the presence of liver cancer in addition to cirrhosis.

[0037] The beneficial effects of the present invention are:

[0038] (1) In the present invention, the schistosomiasis liver ultrasound classification network is used to quickly and accurately determine whether the liver lesions are caused by schistosomiasis infection from the liver ultrasound image, which provides a basis for the subsequent schistosomiasis liver disease risk classification;

[0039] (2) In the present invention, a deep neural network algorithm based on the combination of traditional convolutional neural network and Transformer structure is developed to predict the risk classification of ultrasound images of schistosomiasis liver disease. The algorithm uses the self-attention mechanism of Transformer to process the global dependencies in ultrasound images of schistosomiasis liver disease, and uses convolutional layers to process the local features of ultrasound images of schistosomiasis liver disease. The algorithm combines ultrasound images of schistosomiasis liver disease to classify the patient's disease risk. By establishing an automated recognition and classification model, it is possible to accurately analyze and interpret ultrasound images of schistosomiasis liver disease, help doctors quickly determine the severity of the patient's condition, provide a reference basis for clinical decision-making, and improve the doctor's diagnostic efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a schematic diagram of the overall framework of the present invention;

[0041] Figure 2 It is a schematic diagram of the overall process of the present invention;

[0042] Figure 3 This is a schematic diagram of the structure of the schistosome liver ultrasound classification network in an embodiment of the present invention;

[0043] Figure 4 Schematic diagram of the structure of the residual structure in an embodiment of the present invention;

[0044] Figure 5 Schematic diagram of the structure of the deep neural network for grading the risk of schistosomiasis liver disease in an embodiment of the present invention. DETAILED DESCRIPTION

[0045] This embodiment provides a risk grading system for schistosomiasis liver disease ultrasound images based on deep learning, such as Figure 1 to Figure 2 As shown, it includes an image acquisition module, a preprocessing module, a feature extraction module, an image judgment module and a risk level output module.

[0046] The image acquisition module is used to use an ultrasound device to obtain an ultrasound image of the patient's liver; use the ultrasound device to perform an ultrasound examination on the patient's liver, obtain an ultrasound image of the patient's liver, and obtain images at different angles and sections so as to more comprehensively evaluate the possibility of liver lesions.

[0047] The preprocessing module is used to preprocess the liver ultrasound image using an image processing algorithm. The preprocessing includes denoising, contrast enhancement, and brightness adjustment to optimize image quality and reduce interference factors in subsequent analysis.

[0048] The feature extraction module is used to resize the liver ultrasound image to 224×224 and then send it to the schistosomiasis liver ultrasound classification network to extract the schistosomiasis liver disease features and other liver ultrasound image features in the liver ultrasound image.

[0049] ResNet101 with a residual structure is used as the schistosome liver ultrasound classification network. Compared with the traditional convolutional neural network, ResNet101 with a residual structure is deeper and can extract richer and more complex feature representations, thereby improving the network's expression ability and performance.

[0050] like Figure 3 As shown in the figure, the leading part of the schistosoma liver ultrasound classification network contains a 7×7 convolutional layer, followed by a maximum pooling layer, which is used to perform preliminary feature extraction and dimensionality reduction on the input image;

[0051] The middle part of the schistosoma liver ultrasound classification network contains 4 block modules with residual structures, namely the first block module containing 3 residual structures, the second block module containing 4 residual structures, the third block module containing 23 residual structures, and the fourth block module containing 3 residual structures;

[0052] like Figure 4 As shown in the figure, the residual structure is used to solve the problem of gradient disappearance. The residual structure includes two 1×1 convolutional layers, one 3×3 convolutional layer, and a skip connection of a 1×1 convolutional layer. The skip connection of the 1×1 convolutional layer ensures faster transmission and retention of feature information, reducing feature information loss.

[0053] The global average pooling is used at the end of the schistosome liver ultrasound classification network, which can effectively reduce the number of parameters in the network, prevent overfitting, and improve the computational efficiency of the network.

[0054] An image judgment module is used to judge the liver ultrasound image to determine whether the liver lesions are caused by schistosomiasis infection, and if so, proceed to the next step;

[0055] The liver ultrasound image is subjected to feature extraction through the convolutional layer of the ResNet 101 network to obtain a liver feature map, which is then sent to the ResNetl01 fully connected layer to calculate the feature distance between the schistosomiasis liver disease image and the normal liver ultrasound image, and the category of the liver ultrasound image is calculated through the softmax function.

[0056] The method for judging the liver ultrasound image comprises the following steps:

[0057] A1. Input the RGB liver ultrasound image of size 224×224 into the first convolutional layer of the schistosoma liver ultrasound classification network, and output a feature map of size 112×112 and 64 channels;

[0058] A2. Pass the feature map output in the previous step through the first block module. The feature map output size is 56×56, and the number of channels is increased to 256.

[0059] A3. The feature map output in the previous step passes through the second block module. The feature map output size is 28×28, and the number of channels increases to 512.

[0060] A4. The feature map output in the previous step passes through the third block module. The feature map output size is 14×14, and the number of channels increases to 1024.

[0061] A5. Pass the feature map output in the previous step through the fourth block module. The feature map output size is 7×7, and the number of channels is increased to 2048.

[0062] A6, the global average pooling layer pools the 7×7 feature map into a 1×1 feature map, where each channel corresponds to a feature value; then the softmax function normalizes the value of each channel from 0 to 1 to obtain the probability and corresponding category, where 0 represents an ultrasound image of schistosomiasis liver disease and 1 represents an ultrasound image of a normal liver;

[0063] A7. Determine by category whether the liver ultrasound image is a liver disease caused by schistosomiasis infection.

[0064] In step A6, for a classification problem with n categories, given an input vector X = (x1, x2, ..., x n ), the softmax function outputs Y = (y1, y2, ..., y n ) is calculated as follows:

[0065]

[0066] Among them, P(y|x) represents the probability of a certain i-th category calculated by the softmax function, e represents the base of the natural logarithm, i and j represent the i-th or j-th category, h(x, y i ) represents the vector value of the liver ultrasound image belonging to the i-th category.

[0067] The risk level output module is used to construct a deep neural network for schistosomiasis liver disease risk grading. The deep neural network extracts and calculates features of liver ultrasound images, calculates feature distances of different degrees of schistosomiasis liver disease lesions, and finally outputs the risk level of schistosomiasis liver disease.

[0068] The risk level of schistosomiasis liver disease is set to three levels, namely, level one risk, level two risk and level three risk; the level one risk is set as: the liver ultrasound image shows the presence of liver fibrosis; the level two risk is set as: the liver ultrasound image shows that the liver fibrosis is further aggravated and features of cirrhosis appear; the level three risk is set as: the liver ultrasound image shows the presence of liver cancer in addition to cirrhosis.

[0069] like Figure 5 As shown, the deep neural network for schistosomiasis liver disease risk grading includes a convolutional layer, a convolutional transformation module, an average pooling layer, a layer normalization module LayerNorm and a fully connected layer connected in sequence; the convolutional transformation module includes 12 convolutional transformation submodules Convit blocks, of which the first 10 convolutional transformation submodules Convit blocks are the first convolutional transformation submodules Convit blocks, and the last 2 convolutional transformation submodules Convit blocks are the second convolutional transformation submodules Convit blocks;

[0070] The first convolutional transformation submodule Convit block includes a layer normalization module LayerNorm, a gated positional self-attention module (Gated Positional Self-Attention, GPSA) and a multi-layer perceptron module (Multi-LayerPerceptron, MLP); the second convolutional transformation submodule Convit block includes a layer normalization module LayerNorm, a multi-head self-attention module (Multi-Head Self-Attention, MHSA) and a multi-layer perceptron module MLP.

[0071] In the convolutional transformation module, the gated position self-attention module GPSA mainly replaces the SAblock (Self-Attention) in the Transformer architecture and is used to enhance the performance of the traditional visual Transformer; the initialization of the gated position self-attention module GPSA is designed to mimic the locality of the convolutional layer, but each attention head is flexible and can adjust the attention to position and content information through gating parameters, allowing them to escape locality.

[0072] The multi-head attention module MHSA is a variant of the multi-head self-attention mechanism, mainly composed of fully connected layers and dropout layers. It is often used in deep learning models such as the Transformer architecture. It captures the correlation and dependency between different positions in the input sequence by using multiple attention heads at the same time.

[0073] The multi-layer perceptron module MLP is a commonly used artificial neural network model, also known as a multi-layer perceptron, which consists of multiple fully connected layers, each of which consists of multiple neurons (also called nodes).

[0074] In the risk level output module, a method for extracting and calculating features of liver ultrasound images by a deep neural network for schistosomiasis liver disease risk grading includes the following steps:

[0075] B1. The liver ultrasound image with a size of 224×224, which is judged to be caused by schistosomiasis infection, is sent to the deep neural network for schistosomiasis liver disease risk grading. After passing through the first convolutional layer, the output feature map is 14×14 in size and has 768 channels.

[0076] B2, send the feature map with a size of 14×14 and 768 channels to the convolution transformation module, and output a feature vector with a size of 197×768;

[0077] B3. The 197×768 feature vector obtained in the previous step is passed through the average pooling layer, layer normalization module and fully connected layer in turn to obtain an N×3 feature vector. Finally, it is classified through the softmax function and the result is output.

[0078] In the convolution transformation module of step B2, the input of each layer in the deep neural network is normalized by the layer normalization module LayerNorm, so that each feature dimension has zero mean and unit variance on the training samples, which helps to alleviate the gradient vanishing problem and promotes better gradient propagation in the network, thereby accelerating the training convergence process.

[0079] The gated position self-attention module GPSA is a form of position self-attention with soft convolutional inductive bias. It simulates the limitations of convolution by initializing the gated position self-attention module GPSA, and then adjusts the attention of the corresponding position and content information through a gating parameter, giving each attention head the freedom to escape the limitations.

[0080] The feature map input is linearly projected into multiple feature subspaces through the multi-head attention module MHSA and processed in parallel by multiple independent attention heads (layers), and the resulting vectors are concatenated and mapped to the final output.

[0081] After the multi-layer perceptron module MLP is applied to each attention mechanism sub-layer, it plays an important role in Transformer, mainly used for nonlinear mapping and feature conversion of the output of each attention sub-layer.

[0082] The ConVit risk grading network used in the deep neural network for risk grading of Schistosoma japonicum liver disease has the advantages of traditional convolutional neural networks (CNN) and Transformer models. The convolution layer is mainly used to process the local features of the image block. These local features are extracted and encoded by the convolution layer, and then fused with the global features in the Transformer module. This combination of convolution and Transformer enables ConVit to process global and local image features at the same time, thereby improving the performance of image classification. The ConVit risk grading network can quickly and accurately predict and grade the ultrasound images of Schistosoma japonicum liver disease, provide doctors with diagnostic advice, predict disease risks, and assist doctors in making corresponding decisions and treatments.

[0083] In summary, the system of this embodiment can quickly and accurately determine whether liver disease is caused by schistosomiasis infection in liver ultrasound images, and predict disease risk for schistosomiasis liver disease ultrasound images, provide diagnostic advice to doctors, and assist doctors in making treatment decisions. Resnet101 is used as the classification network for schistosomiasis liver ultrasound and other liver ultrasound diseases to determine whether liver ultrasound disease images are caused by schistosomiasis infection. ConVit is used as the risk grading network for schistosomiasis liver disease ultrasound images. The risk grading network can accurately and quickly extract and calculate the features of schistosomiasis liver disease ultrasound images. Finally, the softmax function is used to determine the disease risk of liver ultrasound images, thereby helping doctors to diagnose and evaluate more accurately.

[0084] In addition to the above embodiments, the present invention may also have other implementation modes. Any technical solution formed by equivalent replacement or equivalent transformation falls within the protection scope required by the present invention.

Claims

1. A risk grading system for schistosomiasis liver disease ultrasound images based on deep learning, characterized by: It includes an image acquisition module, a preprocessing module, a feature extraction module, an image judgment module and a risk level output module; An image acquisition module, used for acquiring an ultrasound image of the patient's liver using an ultrasound device; A preprocessing module, used for preprocessing liver ultrasound images; A feature extraction module is used to uniformly adjust the size of the liver ultrasound image to 224×224, and then send it to the schistosomiasis liver ultrasound classification network, so as to extract the schistosomiasis liver disease features and other liver ultrasound image features in the liver ultrasound image through the schistosomiasis liver ultrasound classification network; An image judgment module is used to judge the liver ultrasound image to determine whether the liver lesions are caused by schistosomiasis infection, and if so, proceed to the next step; The risk level output module is used to construct a deep neural network for schistosomiasis liver disease risk grading. The deep neural network extracts and calculates features of liver ultrasound images, calculates feature vectors of different lesion degrees of schistosomiasis liver disease, and finally outputs the risk level of schistosomiasis liver disease. In the risk level output module, the deep neural network for schistosomiasis liver disease risk grading includes a convolutional layer, a convolutional transformation module, an average pooling layer, a layer normalization module LayerNorm and a fully connected layer connected in sequence; the convolutional transformation module includes 12 convolutional transformation submodules Convit block, of which the first 10 convolutional transformation submodules Convitblock are the first convolutional transformation submodule Convit block, and the last two convolutional transformation submodules Convit block are the second convolutional transformation submodule Convit block; The first convolutional transformation submodule Convit block includes a layer normalization module LayerNorm, a gated position self-attention module GPSA, and a multi-layer perceptron module MLP; the second convolutional transformation submodule Convit block includes a layer normalization module LayerNorm, a multi-head attention module MHSA, and a multi-layer perceptron module MLP; In the risk level output module, the method for extracting and calculating features of liver ultrasound images by using a deep neural network for schistosomiasis liver disease risk grading includes the following steps: B1. The liver ultrasound image with a size of 224×224, which is judged to be caused by schistosomiasis infection, is sent to the deep neural network for schistosomiasis liver disease risk grading. After passing through the first convolutional layer, the output feature map is 14×14 in size and has 768 channels. B2, send the feature map with a size of 14×14 and 768 channels to the convolution transformation module, and output a feature vector with a size of 197×768; B3. The 197×768 feature vector obtained in the previous step is passed through the average pooling layer, layer normalization module and fully connected layer in sequence, and finally classified through the softmax function to output the result; In the convolution transformation module of step B2, the input of each layer in the deep neural network is normalized by the layer normalization module LayerNorm, so that each feature dimension has zero mean and unit variance on the training samples; the limitations of convolution are simulated by initializing the gated position self-attention module GPSA, and then a gating parameter is used to adjust the attention of the corresponding position and content information; the feature map input is linearly projected into multiple feature subspaces by the multi-head attention module MHSA, and processed in parallel by multiple independent attention heads, and the result vectors are connected and mapped to the final output; after applying the multi-layer perceptron module MLP to each attention mechanism sublayer, the output of each attention sublayer is nonlinearly mapped and feature transformed.

2. According to claim 1, a deep learning-based risk grading system for schistosomiasis liver disease ultrasound images is characterized by: In the preprocessing module, an image processing algorithm is used to preprocess the liver ultrasound image, and the preprocessing includes denoising, contrast enhancement and brightness adjustment.

3. According to claim 1, a deep learning-based risk grading system for schistosomiasis liver disease ultrasound images is characterized by: In the feature extraction module, ResNet101 with a residual structure is used as a schistosome liver ultrasound classification network. The leading part of the schistosome liver ultrasound classification network includes a 7×7 convolution layer, and the convolution layer is followed by a maximum pooling layer for preliminary feature extraction and dimensionality reduction of the input image; The middle part of the schistosoma liver ultrasound classification network contains 4 block modules with residual structures, namely the first block module containing 3 residual structures, the second block module containing 4 residual structures, the third block module containing 23 residual structures, and the fourth block module containing 3 residual structures; Global average pooling is used at the end of the schistosoma japonicum liver ultrasound classification network.

4. According to claim 3, a deep learning-based risk grading system for schistosomiasis liver disease ultrasound images is characterized by: The residual structure includes two 1×1 convolutional layers, one 3×3 convolutional layer and a skip connection of one 1×1 convolutional layer.

5. According to claim 1, a deep learning-based risk grading system for schistosomiasis liver disease ultrasound images is characterized by: In the image judgment module, the method for judging the liver ultrasound image comprises the following steps: A1. Input the liver ultrasound image of size 224×224 into the first convolutional layer of the schistosoma liver ultrasound classification network, and output a feature map of size 112×112 and 64 channels; A2. Pass the feature map output in the previous step through the first block module. The feature map output size is 56×56, and the number of channels is increased to 256. A3. The feature map output in the previous step passes through the second block module. The feature map output size is 28×28, and the number of channels increases to 512. A4. Pass the feature map output in the previous step through the third block module. The feature map output size is 14×14, and the number of channels is increased to 1024. A5. Pass the feature map output in the previous step through the fourth block module. The feature map output size is 7×7, and the number of channels is increased to 2048. A6, the global average pooling layer pools the 7×7 feature map into a 1×1 feature map, where each channel corresponds to a feature value; then the softmax function normalizes the value of each channel from 0 to 1 to obtain the probability and corresponding category, where 0 represents an ultrasound image of schistosomiasis liver disease and 1 represents an ultrasound image of a normal liver; A7. Determine by category whether the liver ultrasound image is a liver disease caused by schistosomiasis infection.

6. The deep learning-based ultrasound image risk grading system for Schistosoma japonicum liver disease according to claim 1 is characterized by: In the risk level output module, the risk level of Schistosoma japonicum liver disease is set to three levels, namely, level one risk, level two risk and level three risk; The first-level risk is set as follows: liver ultrasound images show liver fibrosis; the second-level risk is set as follows: liver ultrasound images show that liver fibrosis is further aggravated and features of cirrhosis appear; The third level risk setting is: the liver ultrasound image shows the presence of liver cancer in addition to cirrhosis.