A reliability discrimination method and system for intelligent diagnosis of dermatological images

By establishing source domain reference data and model calibration, calculating classification uncertainty and source domain deviation risk signals, and generating reliability scores, the problems of overconfidence and cross-domain misdiagnosis in intelligent diagnosis of skin disease images are solved, thereby improving the safety and accuracy of AI diagnosis of skin diseases.

CN123161004APending Publication Date: 2026-11-24HUNAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611354157.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-02
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing intelligent diagnostic methods for skin diseases suffer from overconfidence, decreased cross-domain image diagnostic performance, and insufficient reliability discrimination in actual clinical and telemedicine applications, making it difficult to effectively identify high-risk misdiagnosed samples.

Method used

By establishing source domain reference data, performing model probability calibration and feature extraction, calculating classification uncertainty and source domain deviation risk signals, and fusing them to generate a reliability score, the reliability of skin disease images can be determined.

Benefits of technology

It improves the clinical safety of AI-based diagnosis of skin diseases, reduces the risk of misdiagnosis, adapts to multiple data sources and imaging conditions, and enhances the robustness and accuracy of the diagnostic system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123161004A_ABST
    Figure CN123161004A_ABST
Patent Text Reader

Abstract

This invention discloses a reliability assessment method and system for intelligent diagnosis of skin disease images in the fields of medical image processing and artificial intelligence. The invention constructs a source domain skin disease image feature library and determines model probability calibration parameters. For the skin disease image to be tested, a classification model is used to obtain classification output values ​​and deep representation vectors. On one hand, after temperature calibration, the prediction entropy is calculated to obtain a classification uncertainty risk signal; on the other hand, the k-nearest neighbor distance between the tested representation and the source domain feature library is calculated to obtain a source domain distribution deviation risk signal. The two risk signals are standardized and fused to generate a diagnostic reliability risk score. Based on a threshold, the reliability of the diagnostic result is determined, and auxiliary diagnostic results or manual review suggestions are output. This invention achieves automatic identification of high-risk samples and manual review prompts, improving the clinical safety of AI-based diagnosis of skin diseases.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of medical image processing and artificial intelligence technology, specifically to a reliability assessment method and system for intelligent diagnosis of skin disease images. Background Technology

[0002] Skin diseases are a common and diverse group of illnesses with complex clinical manifestations. Many skin diseases share similarities in color, shape, texture, borders, and lesion distribution, leading to significant visual confusion between different diseases. For example, some inflammatory skin diseases may present with similar erythema, papules, or scaling; some pigmented lesions may also be highly similar in color and borders. Therefore, the diagnosis of skin diseases relies not only on image features but also on information such as the physician's experience, medical history, and examination results.

[0003] In recent years, deep learning technology has been widely used in the analysis of skin disease images. With the development of deep learning technology, intelligent diagnostic systems for skin disease images based on models such as convolutional neural networks and visual Transformers have been extensively studied and have achieved good results in standardized single-dataset classification tasks.

[0004] Existing intelligent diagnostic methods for skin diseases typically output disease categories and corresponding predicted probabilities directly, which has significant shortcomings in practical clinical and telemedicine applications. First, deep neural networks generally suffer from overconfidence. The softmax probability output by the model is not calibrated, and even if the prediction is wrong, it may output a high confidence result, which cannot truly reflect the reliability of the diagnosis. Second, in practical applications, the sources of skin disease images are complex. Different hospitals, shooting equipment, lighting conditions, and imaging methods (such as dermatoscopes and clinical photos) can lead to significant differences between the image distribution and the training data. When the model faces out-of-distribution samples, its performance drops significantly, but it may still give a high-confidence false diagnosis. Third, existing reliability assessment methods mostly rely on a single indicator, or judge classification uncertainty based solely on the probability entropy of the model output, or judge distribution shift solely based on feature distance. They fail to combine the two risk factors of "model category confusion" and "image distribution deviation" at the same time, thus limiting their reliability assessment capabilities.

[0005] In summary, existing technologies lack a scheme that can simultaneously calibrate model prediction probabilities, quantify source domain distribution support, and integrate the two types of risk for dermatological diagnosis reliability assessment. This makes it difficult to effectively identify high-risk misdiagnosed samples in cross-domain and low-quality images, thus limiting the safe application of AI-assisted diagnosis in clinical scenarios. Summary of the Invention

[0006] The purpose of this invention is to provide a reliability assessment method and system for intelligent diagnosis of skin disease images, which solves the technical problem that existing intelligent diagnosis methods for skin disease images usually directly output disease categories and corresponding predicted probabilities, which have significant shortcomings in actual clinical and telemedicine applications. This invention assesses diagnostic risk from two dimensions: classification uncertainty and source domain distribution deviation, generates a unified reliability score, realizes automatic identification of high-risk samples and manual review prompts, and improves the clinical safety of AI diagnosis of skin diseases.

[0007] To achieve the above objectives, the technical solution of the present invention is as follows: A reliability assessment method for intelligent image-based diagnosis of skin diseases includes the following steps: S1. Establish source domain reference data: Collect skin disease images labeled with disease categories as source domain data, train a skin disease image classification model after unified preprocessing; extract deep representation vectors of source domain images, and construct a source domain image feature library together with the corresponding disease category labels; S2. Determine model probability calibration parameters: Use the source domain validation set image to determine the temperature parameters for model probability calibration, and at the same time, statistically analyze the standardized parameters of calibration prediction entropy and source domain nearest neighbor distance. S3. Feature extraction of the image to be tested: Perform preprocessing consistent with the source domain on the skin disease image to be tested, input the skin disease image classification model, output the classification output value and extract the deep representation vector; S4. Calculate the classification uncertainty risk signal: Use the temperature parameter to perform temperature calibration on the classification output value to obtain the calibration prediction probability, and calculate the prediction entropy based on the calibration prediction probability as the classification uncertainty risk signal; S5. Calculate the source domain deviation risk signal: Match the deep representation vector of the image to be tested with the source domain image feature library, calculate the average distance of the k nearest neighbors, and use it as the source domain distribution deviation risk signal; S6. Fusion scoring and reliability judgment: The two types of risk signals are standardized using the standardized statistical parameters, and then weighted and fused to obtain a diagnostic reliability risk score; the risk score is compared with a preset threshold, and the corresponding reliability judgment result is output.

[0008] Furthermore, in S1, the source domain data includes one or more of the following: publicly available skin disease image datasets, images of historical confirmed cases from hospitals, clinical photographs, and dermoscopic images; the unified preprocessing includes image size adjustment, color channel unification, pixel value normalization, and image quality screening.

[0009] Furthermore, in S1, the skin disease image classification model is any one of the following: convolutional neural network, visual Transformer, hybrid CNN-Transformer network, multi-scale network, attention network, or model ensemble model.

[0010] Furthermore, S2 includes the following steps: S21. Input the source domain validation set images into the trained skin disease image classification model to obtain the classification output value corresponding to each image; S22. The classification output value is calibrated using a temperature scaling method to make the calibrated prediction probability closer to the actual prediction reliability.

[0011] S23. Temperature parameters are determined through the source domain validation set. The negative log-likelihood loss is optimized on the source domain validation set to make the probability distribution after model calibration more consistent with the true label. S24. On the source domain validation set, statistically analyze the range, mean, standard deviation, or quantile of the calibration prediction entropy and the source domain nearest neighbor distance to obtain the model probability calibration parameters and the risk signal standardization parameters.

[0012] Furthermore, in step S4, calculating the prediction entropy based on the calibration prediction probability, as a classification uncertainty risk signal, specifically includes: If the calibrated predicted probabilities are mainly concentrated in one disease category, the prediction entropy is low, indicating that the model's classification judgment of the image is relatively clear. If the predicted probabilities are spread across multiple disease categories, the prediction entropy is high, indicating that the model has difficulty distinguishing which disease the image belongs to, and the diagnosis result has high uncertainty.

[0013] Furthermore, in S5, the distance metric for the average k-nearest neighbor distance includes Euclidean distance, cosine distance, Mahalanobis distance, Manhattan distance, kernel distance, or a learning-based distance metric; the value of k is a fixed value or is adaptively determined based on the number of samples and the number of categories.

[0014] Furthermore, standardization processes include min-max normalization, z-score normalization, quantile normalization, rank normalization, or robust scaling; alternatives to weighted fusion include multiplicative fusion, maximum value fusion, logistic regression fusion, neural network fusion, decision tree fusion, or hierarchical rule fusion; preset thresholds are dynamically adjusted based on fixed scores, validation set quantiles, expected referral rates, clinical safety requirements, disease risk levels, or medical scenarios, with lower manual review thresholds set for high-risk disease categories.

[0015] Furthermore, in step S6, the reliability determination result includes: If the risk score is below a preset threshold, the diagnosis result is deemed reliable, and an AI-assisted diagnosis result is output. If the risk score is higher than or equal to the preset threshold, the diagnosis result is deemed unreliable, and a prompt for manual review or referral is output.

[0016] A reliability assessment system for intelligent image diagnosis of skin diseases includes: The source domain data construction module is used to collect and label skin disease images, train a classification model after preprocessing, and extract deep representations to construct a source domain image feature library. The parameter determination module is used to determine the temperature parameters for model probability calibration, as well as the standardized statistical parameters of the risk signal; The image preprocessing and feature extraction module is used to perform preprocessing on the skin disease images to be tested, and output classification output values ​​and deep representation vectors through the classification model; The uncertainty calculation module is used to perform temperature calibration on the classification output value and calculate the prediction entropy to obtain the classification uncertainty risk signal. The distribution deviation calculation module is used to calculate the k-nearest neighbor average distance between the deep representation of the image under test and the feature library of the source domain image, and obtain the source domain distribution deviation risk signal. The fusion and discrimination module is used to standardize and fuse two types of risk signals to generate a diagnostic reliability risk score, and output the reliability discrimination result based on the threshold.

[0017] By adopting the above technical solution, the present invention has the following advantages: 1. This invention provides a reliability judgment method for intelligent diagnosis of skin disease images. Based on the classification and diagnosis of skin diseases, a reliability judgment step is added. Instead of directly outputting a diagnostic conclusion, it further evaluates the credibility of the results, which is more suitable for scenarios such as clinical auxiliary diagnosis and remote medical triage, and reduces the risk of misdiagnosis.

[0018] 2. This invention provides a reliability judgment method for intelligent diagnosis of skin disease images. By calibrating the output probability of the model through temperature scaling, it alleviates the problem of overconfidence in deep neural networks and makes the predicted probability more consistent with the real reliability. This method is more accurate than directly using the confidence judgment of the maximum probability of softmax.

[0019] 3. This invention provides a reliability judgment method for intelligent diagnosis of skin disease images. It introduces a source domain feature library and the average distance of k-nearest neighbors to quantify the distribution differences between the test image and the training data. It can effectively identify diagnostic risks caused by cross-device, cross-shooting environment, image quality abnormalities and out-of-distribution samples, and make up for the shortcomings of a single probability index.

[0020] 4. This invention provides a reliability judgment method for intelligent diagnosis of skin disease images. It combines prediction entropy and source domain neighborhood distance, and integrates two types of risk signals: classification uncertainty and source domain distribution deviation. It comprehensively evaluates the diagnostic reliability from two dimensions: "the model cannot distinguish" and "the image has never been seen before". Compared with the judgment method of a single index, it covers more failure scenarios, is more robust, and has a more comprehensive reliability judgment capability.

[0021] 5. This invention provides a reliability assessment method for intelligent diagnosis of skin disease images. Based on risk scoring and threshold control, it enables selective referral. Low-risk samples retain AI-assisted diagnostic results, while high-risk samples trigger manual review. This method can effectively improve the overall accuracy and security of the AI ​​diagnostic system while controlling clinical workload.

[0022] 6. This invention provides a reliability judgment method for intelligent diagnosis of skin disease images. The technical solution has good scalability, does not depend on specific network structures and distance measurement methods, can be adapted to various classification models, data sources and clinical scenarios, and is easy to deploy and implement. Attached Figure Description

[0023] Figure 1 is a schematic diagram of the overall process of the image diagnosis reliability judgment method for skin diseases of the present invention; Figure 2 is a technical structural diagram of the skin disease image diagnosis reliability discrimination system of the present invention; Figure 3 is a block diagram of the dual-branch principle for reliability assessment of the present invention. Detailed Implementation

[0024] The technical solution of the present invention will be specifically described below with reference to the accompanying drawings. It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus.

[0025] As shown in Figure 1, this embodiment provides a reliability discrimination method for intelligent diagnosis of skin disease images. The method of the present invention is divided into three stages: source domain preparation stage, model training and calibration stage, and practical application discrimination stage.

[0026] In the source domain preparation phase, the first step is to acquire a source domain dermatology image dataset. Source domain images are dermatology images with labeled disease categories. These can come from publicly available dermatology image datasets (such as HAM10000, BCN20000, DERM12345, PAD-UFES-20, etc.), historical confirmed hospital images, clinical photographs, dermoscopic images, or a combination of images from multiple sources. Then, the source domain images undergo unified preprocessing, including image resizing, color channel unification, pixel value normalization, and image quality screening.

[0027] During the model training and calibration phase, a skin disease image classification model is trained using preprocessed source domain images. This model can employ deep image classification models such as convolutional neural networks, visual Transformers, hybrid CNN-Transformer networks, or multi-scale networks. After training, the model can output disease classification results and extract deep representation vectors from images before the classification layer. Then, the source domain images are input into the trained model, and the deep representation vectors for each image are extracted. These representation vectors are then saved along with the corresponding disease category labels to form a source domain image feature library. Simultaneously, a temperature scaling parameter is determined using a source domain validation set for subsequent temperature calibration of the model's classification prediction output values.

[0028] In the practical application discrimination stage, the image of the skin disease to be tested is acquired and input into the classification model to obtain the disease classification output value and deep representation vector. The classification output value is calibrated using a temperature scaling parameter to obtain the calibrated disease prediction probability, and the prediction entropy is calculated as a classification uncertainty risk signal. The distance between the deep representation vector of the image to be tested and the nearest neighbor feature vector in the source domain image feature library is calculated as a source domain distribution deviation risk signal. The two types of risk signals are fused to generate a diagnostic reliability risk score. Based on the comparison result of the risk score and the preset threshold, the discrimination result of whether the artificial intelligence diagnosis result of the image to be tested is reliable is output.

[0029] The specific implementation process is as follows: Step 1: Establish source domain reference data First, collect skin disease images that have already been labeled with disease categories as source domain data. Source domain data can come from publicly available skin disease image datasets, images of historical confirmed cases from hospitals, clinical photographs, dermoscopic images, or a combination of images from multiple sources.

[0030] Unified preprocessing of source domain images, including image size adjustment, color channel unification, pixel value normalization, and image quality screening, enables images from different sources and in different formats to be input into the same skin disease image classification model.

[0031] Subsequently, a skin disease image classification model is trained using the preprocessed source domain images. This model can employ convolutional neural networks (such as ResNet, DenseNet, EfficientNet, ConvNeXt, etc.), visual Transformers (such as ViT, Swin Transformer, etc.), or other deep image classification models. After training, the model can output disease classification results and extract deep representation vectors from images prior to the classification layer.

[0032] In one specific embodiment, ConvNeXt-Tiny is used as the backbone network of the classification model, initialized with ImageNet pre-trained weights, and fine-tuned end-to-end on the source domain dataset. Enhanced data augmentation strategies are employed during training, including random-size cropping, horizontal flipping, vertical flipping, RandAugment, and color perturbation. The AdamW optimizer is used with a learning rate of 5×10⁻⁶. -5 The weight decay factor is set to 10. -4 The batch size is 16, and a cosine annealing learning rate scheduling strategy is used, with a maximum training 14 rounds. Early stopping strategy and model selection are based on the macro F1 metric of the source domain validation set, with a patience value set to 4. The source domain dataset is divided into training / validation / test sets according to class proportions: 70% / 10% / 20%.

[0033] Simultaneously, source domain images are input into the trained model, and deep representation vectors are extracted from each image. These representation vectors are then saved along with the corresponding disease category labels to form a source domain image feature library. This feature library is used to represent the distribution of skin disease images that the model has learned during the training phase.

[0034] This step yields a trained skin disease image classification model and a source domain image feature library.

[0035] Step 2: Determine the model probability calibration parameters

[0036] Because the predicted probabilities directly output by deep learning models may be overconfident, it is necessary to calibrate the model's output probabilities.

[0037] Specifically, the source domain validation set images are input into the trained skin disease image classification model to obtain the classification output value logits for each image. Then, a temperature scaling method is used to calibrate the classification output values, making the calibrated prediction probabilities closer to the reliability of the true predictions.

[0038] The specific implementation of temperature scaling is as follows: For a given logits vector, the temperature-scaled prediction probability is:

[0039] Where T > 0 is the temperature parameter. When T = 1, it is the standard softmax function; when T > 1, the probability distribution becomes smoother (entropy increases); when T < 1, the probability distribution becomes sharper.

[0040] Temperature parameters can be determined using the source domain validation set. For example, optimizing the negative log-likelihood (NLL) loss on the source domain validation set can make the model's calibrated probability distribution more consistent with the true labels.

[0041]

[0042] This optimization process uses only the source domain validation set data and does not involve any target domain label information. Temperature scaling changes the distribution of predicted probabilities but does not change the predicted class.

[0043] When subsequently assessing the reliability of the images under test, this temperature parameter is used to perform probability calibration on the model output results.

[0044] Meanwhile, the range, mean, standard deviation, or quantile of the predicted entropy and the source-domain nearest neighbor distance are statistically calibrated on the source-domain validation set for subsequent standardization processing of risk signals.

[0045] This step yields the model probability calibration parameters and the risk signal standardization parameters.

[0046] Step 3: Acquire the image to be tested and extract the classification results and deep representations.

[0047] In practical applications, a skin disease image to be analyzed is acquired. This image can be a clinical photograph of the skin disease uploaded by a patient, or a dermoscopy image or other skin disease-related image collected by a medical institution.

[0048] The test image undergoes the same preprocessing as the source image, including image resizing, color channel unification, and pixel value normalization. Then, the preprocessed test image is input into the trained skin disease image classification model.

[0049] The model performs forward computation on the test image, outputting classification values ​​indicating whether the image belongs to each disease category, and extracts the deep representation vector of the image before the classification layer. The classification output values ​​are used to subsequently calculate the calibrated disease prediction probabilities, while the deep representation vectors are used for distance comparison with the source domain image feature library.

[0050] This step yields the disease classification output value and deep representation vector of the image under test.

[0051] Step 4: Calculate the calibration prediction entropy to obtain the classification uncertainty risk signal.

[0052] Using the temperature parameters obtained in step 2 The classification output values ​​of the image obtained in step 3 are then calibrated for temperature to obtain the calibrated disease prediction probability. The calculation formula is as follows:

[0053] in, For the logit value of class c, This represents the total number of disease categories.

[0054] Subsequently, prediction entropy is calculated based on the calibrated disease prediction probabilities. Prediction entropy measures the model's classification uncertainty for the current image. Prediction entropy is calculated based on the calibrated probability distribution:

[0055] Predicting entropy This is the classification uncertainty risk signal: the higher the entropy value, the more hesitant the model is among multiple categories, and the higher the diagnostic uncertainty. If the calibrated predicted probabilities are mainly concentrated in one disease category, the prediction entropy is low, indicating that the model's classification judgment of the image is relatively clear; if the predicted probabilities are scattered across multiple disease categories, the prediction entropy is high, indicating that the model has difficulty distinguishing which disease the image belongs to, and the diagnostic result has high uncertainty. Through this step, the first type of risk signal, namely the classification uncertainty risk signal, is obtained.

[0056] Step 5: Calculate the source domain nearest neighbor distance to obtain the source domain deviation risk signal.

[0057] The deep representation vector of the image to be tested obtained in step 3 is compared with the source domain image feature library established in step 1.

[0058] Specifically, the source domain image feature library is searched for several source domain samples that are closest to the deep representation of the image to be tested, and the average distance between the representation of the image to be tested and the representation of these neighboring samples is calculated.

[0059] The deep representation vector of the image to be tested is compared with the feature library of the source domain image using a k-nearest neighbor search, where k is 20 and Euclidean distance is used as the distance metric. The average distance between the vector to be tested and the 20 nearest neighbor features of the source domain is calculated.

[0060] in, For source domain feature library, Represents the set of k nearest neighbors. Average distance. This refers to the risk signal of deviation from the source domain distribution: the greater the distance, the more the image under test deviates from the training distribution, and the lower the model's data support. Distance metrics can include Euclidean distance, cosine distance, Mahalanobis distance, or other spatial distance representations.

[0061] If the distance between the image to be tested and the nearest neighbor sample in the source domain is small, it means that the image is close to the sample seen during model training in the feature space, and the model has strong data support for it; if the distance is large, it means that the image may have cross-device differences, shooting environment differences, abnormal image quality, rare disease manifestations, or out-of-distribution samples, and the reliability of the model's diagnostic results is low.

[0062] This step yields the second type of risk signal, namely the source domain distribution deviation risk signal.

[0063] Step 6: Integrate risk signals and output reliability judgment results

[0064] Since the calibration prediction entropy and the source domain nearest neighbor distance have different numerical ranges and dimensions, they cannot be directly added. Therefore, the standardization parameters obtained in step 2 are first used to standardize the two types of risk signals separately. z-score standardization is used to normalize the two types of risk signals separately to eliminate the dimensional differences:

[0065] in, , To verify the mean and standard deviation of the prediction entropy of the validation set, , To verify the mean and standard deviation of the k-nearest neighbor distances, To prevent the minimum value from being divided by zero.

[0066] After standardization, the standardized calibration prediction entropy and the standardized source domain nearest neighbor distance are weighted and fused to generate a diagnostic reliability risk score for the image under test. The two standardized indicators are then linearly fused with equal weights to obtain the diagnostic reliability risk score.

[0067] Risk Score The higher the risk score, the lower the reliability of the diagnostic result. A higher risk score indicates a less reliable AI diagnostic result; a lower score indicates a more reliable AI diagnostic result. Finally, the diagnostic reliability risk score is compared with a preset threshold. If the risk score is below the threshold, the AI ​​diagnostic result for the image is considered highly reliable, and an AI-assisted diagnostic result can be output. If the risk score is above or equal to the threshold, the diagnostic result is considered unreliable, requiring manual review by a doctor or further referral. The output results may include predicted disease category, calibrated prediction probability, calibrated prediction entropy, source domain nearest neighbor distance, diagnostic reliability risk score, and reliability discrimination result.

[0068] This embodiment determines a preset threshold based on the validation set score distribution, according to the clinical requirement of a 30% referral rate. If... If the value is below a threshold, the AI ​​diagnosis for that sample is deemed reliable, and the predicted disease category, calibration probability, and a "reliable" label are output; if... If the value is higher than or equal to the threshold, the diagnostic reliability is deemed insufficient, and a "manual review required" message is output.

[0069] In another optional embodiment, multiple threshold levels can be set to classify risks into low, medium, and high levels: low-risk results are output directly, medium-risk results prompt for additional imaging angles or medical history information, and high-risk results require mandatory manual review. For high-risk diseases such as melanoma, even lower thresholds can be set separately to increase the review rate and ensure clinical safety.

[0070] As shown in Figure 2, the system structure of this invention consists of six main parts: data preparation, model building, source domain reference building, image analysis, risk assessment, and result output. Specifically, the data preparation part is responsible for source domain image acquisition, label unification, and preprocessing; the model building part is responsible for classification model training and temperature parameter determination; the source domain reference building part is responsible for extracting deep representations and constructing a feature library; the image analysis part is responsible for feature extraction from the input image; the risk assessment part performs two types of risk calculation, standardization, and fusion; and the result output part completes threshold discrimination and result output.

[0071] The reliability assessment system for intelligent diagnosis of skin diseases based on images includes: The source domain data construction module is used to collect and label skin disease images, train a classification model after preprocessing, and extract deep representations to construct a source domain image feature library. The parameter determination module is used to determine the temperature parameters for model probability calibration, as well as the standardized statistical parameters of the risk signal; The image preprocessing and feature extraction module is used to perform preprocessing on the skin disease images to be tested, and output classification output values ​​and deep representation vectors through the classification model; The uncertainty calculation module is used to perform temperature calibration on the classification output value and calculate the prediction entropy to obtain the classification uncertainty risk signal. The distribution deviation calculation module is used to calculate the k-nearest neighbor average distance between the deep representation of the image under test and the feature library of the source domain image, and obtain the source domain distribution deviation risk signal. The fusion and discrimination module is used to standardize and fuse two types of risk signals to generate a diagnostic reliability risk score, and output the reliability discrimination result based on the threshold.

[0072] As shown in Figure 3, the core principle of this invention is a dual-branch parallel evaluation: the left branch measures the model classification uncertainty through temperature calibration and prediction entropy, corresponding to the internal risk of "whether the model can distinguish the category"; the right branch measures the degree of deviation of image distribution through the source domain feature library and k nearest neighbor distance, corresponding to the external risk of "whether the image belongs to the distribution familiar to the model"; the risk signals of the two branches are fused into a unified score after standardization, and finally the reliability discrimination result is output.

[0073] The method and system of this invention can be widely applied in the following scenarios: AI-assisted dermatology diagnostic systems in medical institutions, patient self-examination and assisted diagnosis on telemedicine platforms, and dermatology clinical decision support systems. It is particularly suitable for dermatology image diagnosis scenarios involving cross-data sources, cross-devices, cross-shooting environments, or different imaging methods.

[0074] Finally, it should be noted that although the present invention has been described with reference to specific embodiments, those skilled in the art should recognize that the above embodiments are only used to illustrate the present invention and are not intended to limit the present invention. Various equivalent changes or substitutions can be made without departing from the concept of the present invention. Therefore, any changes or modifications to the above embodiments within the essential spirit of the present invention will fall within the scope of the claims of the present invention.

Claims

1. A reliability judgment method for intelligent diagnosis of skin disease images, characterized in that, Includes the following steps: S1. Establish source domain reference data: Collect skin disease images labeled with disease categories as source domain data, train a skin disease image classification model after unified preprocessing; extract deep representation vectors of source domain images, and construct a source domain image feature library together with the corresponding disease category labels; S2. Determine model probability calibration parameters: Use the source domain validation set image to determine the temperature parameters for model probability calibration, and at the same time, statistically analyze the standardized parameters of calibration prediction entropy and source domain nearest neighbor distance. S3. Feature extraction of the image to be tested: Perform preprocessing consistent with the source domain on the skin disease image to be tested, input the skin disease image classification model, output the classification output value and extract the deep representation vector; S4. Calculate the classification uncertainty risk signal: Use the temperature parameter to perform temperature calibration on the classification output value to obtain the calibration prediction probability, and calculate the prediction entropy based on the calibration prediction probability as the classification uncertainty risk signal; S5. Calculate the source domain deviation risk signal: Match the deep representation vector of the image to be tested with the source domain image feature library, calculate the average distance of the k nearest neighbors, and use it as the source domain distribution deviation risk signal; S6. Fusion scoring and reliability judgment: The two types of risk signals are standardized using the standardized statistical parameters, and then weighted and fused to obtain a diagnostic reliability risk score; the risk score is compared with a preset threshold, and the corresponding reliability judgment result is output.

2. The reliability judgment method for intelligent diagnosis of skin disease images according to claim 1, characterized in that, In S1, the source domain data includes one or more of the following: publicly available skin disease image datasets, images of historical confirmed cases from hospitals, clinical photographs, and dermoscopic images. Unified preprocessing includes image resizing, color channel unification, pixel value normalization, and image quality screening.

3. The reliability judgment method for intelligent diagnosis of skin disease images according to claim 1, characterized in that, In S1, the skin disease image classification model is any one of the following: convolutional neural network, visual Transformer, hybrid CNN-Transformer network, multi-scale network, attention network, or model ensemble model.

4. The reliability judgment method for intelligent diagnosis of skin disease images according to claim 1, characterized in that, S2 includes the following steps: S21. Input the source domain validation set images into the trained skin disease image classification model to obtain the classification output value corresponding to each image; S22. The classification output value is calibrated using a temperature scaling method to make the calibrated prediction probability closer to the actual prediction reliability. S23. Temperature parameters are determined through the source domain validation set. The negative log-likelihood loss is optimized on the source domain validation set to make the probability distribution after model calibration more consistent with the true label. S24. On the source domain validation set, statistically analyze the range, mean, standard deviation, or quantile of the calibration prediction entropy and the source domain nearest neighbor distance to obtain the model probability calibration parameters and the risk signal standardization parameters.

5. The reliability judgment method for intelligent diagnosis of skin disease images according to claim 1, characterized in that, In step S4, the calculation of prediction entropy based on the calibration prediction probability, as a classification uncertainty risk signal, specifically includes: If the calibrated predicted probabilities are mainly concentrated in one disease category, the prediction entropy is low, indicating that the model's classification judgment of the image is relatively clear. If the predicted probabilities are spread across multiple disease categories, the prediction entropy is high, indicating that the model has difficulty distinguishing which disease the image belongs to, and the diagnosis result has high uncertainty.

6. The reliability judgment method for intelligent diagnosis of skin disease images according to claim 1, characterized in that, In S5, the distance metric for the average k-nearest neighbor distance includes Euclidean distance, cosine distance, Mahalanobis distance, Manhattan distance, kernel distance, or a learning-based distance metric; the value of k is a fixed value or is adaptively determined based on the number of samples and the number of categories.

7. The reliability judgment method for intelligent diagnosis of skin disease images according to claim 1, characterized in that, In S6, the standardization process includes min-max normalization, z-score normalization, quantile normalization, rank normalization, or robust scaling; alternatives to weighted fusion include multiplicative fusion, maximum value fusion, logistic regression fusion, neural network fusion, decision tree fusion, or hierarchical rule fusion. The preset threshold is dynamically adjusted based on fixed scores, validation set quantiles, expected referral rates, clinical safety requirements, disease risk levels, or medical scenarios, with lower manual review thresholds set for high-risk disease categories.

8. The reliability judgment method for intelligent diagnosis of skin disease images according to claim 1, characterized in that, In step S6, the reliability determination result includes: If the risk score is below a preset threshold, the diagnosis result is deemed reliable, and an AI-assisted diagnosis result is output. If the risk score is higher than or equal to the preset threshold, the diagnosis result is deemed unreliable, and a prompt for manual review or referral is output.

9. A reliability judgment system for intelligent image diagnosis of skin diseases, characterized in that, include: The source domain data construction module is used to collect and label skin disease images, train a classification model after preprocessing, and extract deep representations to construct a source domain image feature library. The parameter determination module is used to determine the temperature parameters for model probability calibration, as well as the standardized statistical parameters of the risk signal; The image preprocessing and feature extraction module is used to perform preprocessing on the skin disease images to be tested, and output classification output values ​​and deep representation vectors through the classification model; The uncertainty calculation module is used to perform temperature calibration on the classification output value and calculate the prediction entropy to obtain the classification uncertainty risk signal. The distribution deviation calculation module is used to calculate the k-nearest neighbor average distance between the deep representation of the image under test and the feature library of the source domain image, and obtain the source domain distribution deviation risk signal. The fusion and discrimination module is used to standardize and fuse two types of risk signals to generate a diagnostic reliability risk score, and output the reliability discrimination result based on the threshold.