Exploring convolutional neural networks with transfer learning for diagnosing Lyme disease from skin lesion images
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: Today's paper: "Exploring convolutional neural networks with transfer learning for diagnosing Lyme disease from skin lesion images".
Jane: The gist Lyme disease which manifests itself in most cases with erythema migrans (EM) skin lesions can be diagnosed using convolutional neural networks (CNNs) for early diagnosis and referral to…
Tom: First, who's behind it and why it matters.
Title and authors: Tom: We’ve covered the title and authors, so now let's talk about what this whole study actually sets out to do. The paper is titled "Exploring convolutional neural networks with transfer learning for diagnosing Lyme disease from skin lesion images," and it really lays out a systematic approach to testing different AI models for this medical task.
Jane: They’re not just throwing a model at the data; they are benchmarking twenty-three different CNN architectures—like VGG, ResNet, MobileNet—to see which ones perform best when trying to classify EM lesions from images.
Lu: The methodology is quite thorough, and they’re looking at predictive performance, how much computing power those models use, and the statistical significance of their results across all these different designs.
Meng: That benchmarking approach is smart because it forces them to look past just the highest accuracy number and consider if that model is actually practical for a real-world application.
Lalam: They are also looking at complexity, which means things like the total number of parameters and how fast each model takes to run inference on a single image.
The paper's summary: Tom: So, to summarize what they did, the study created a specific dataset of eight hundred sixty-six images labeled as EM and eight hundred six as confused cases from a hospital in France. Then they tested twenty-three different CNN architectures on this set.
Jane: The key part is that to boost performance, they used transfer learning from ImageNet pre-trained models and also pretraining the CNNs with the HAM10000 skin lesion dataset before fine-tuning them with their Lyme disease data.
Lu: That specific transfer learning strategy they used—pretraining only the unfrozen part of an ImageNet model with HAM10000 data before fine-tuning layers with their Lyme disease dataset—that’s what they found performed best across all architectures.
Meng: That sounds like a very specific tuning process. It suggests that just training everything from scratch wasn't the way to go, and this targeted approach actually gave them the best results, achieving an accuracy of eighty-four point four two percent.
Lalam: The paper also mentioned using Gradient-weighted Class Activation Mapping to show exactly which parts of the input image the AI was focusing on when it made its decision about Lyme disease or not.
The paper's improvements: Tom: Moving into the improvements section, they highlight a few key things they did to make their work stronger. One big improvement is using that specific transfer learning technique we just talked about to get that best accuracy of eighty-four point four two percent.
Jane: They also focus heavily on model selection based on a trade-off between predictive performance and computational complexity, giving clear guidelines for choosing a model depending on whether you need something fast or something highly accurate.
Lu: They also provided some guidance for selecting models for different situations; they suggest that for resource-constrained mobile platforms, EfficientNetB0-one hundred eighty-seven is a good choice because it has reasonable accuracy.
Meng: That practical guidance is important because we're always building things that need to run on devices with limited memory and processing power. So knowing which architecture to pick based on its FLOPs and parameters really helps the development process.
Lalam: They also pointed out some limitations, like having underrepresented samples of dark-skinned individuals in their dataset, which is something they acknowledge as a hurdle for general applicability.
Conclusion: Tom: So to wrap up, the study confirms that even lightweight models like EfficientNetB0 can perform reasonably well enough for building pre-scanner mobile applications to help people with an initial self-assessment and then referring them to a dermatologist.
Jane: It’s a strong finding, showing that CNNs are effective tools for this kind of pre-screening, provided you choose the right architecture for your deployment situation.
Lu: The whole point is that they made all their trained models publicly available so other researchers can use them for transfer learning and building their own Lyme disease pre-scanners.
Meng: For practical application, the advice is clear: if you’re on a mobile device with limited resources, EfficientNetB0-one hundred eighty-seven is recommended for a good balance of accuracy and speed.
Lalam: It’s interesting how they addressed the need for interpretability by using Grad-CAM to show clinicians *why* the AI made a certain prediction, which builds trust in the tool.
Tom: That’s our takeaway from this paper on exploring convolutional neural networks with transfer learning for diagnosing Lyme disease from skin lesion images. Thanks for tuning in.
Université Clermont Auvergne · INRAE · CHU Clermont-Ferrand
eess.IV, cs.CV, cs.LG
Submitted: 2021-06-28
Updated: 2022-02-15
Journal ref: Computer Methods and Programs in Biomedicine, Volume 215, 2022, 106624, ISSN 0169-2607
DOI: 10.1016/j.cmpb.2022.106624
Code: https://github.com/neil454/lyme-1600-model
License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
Importance score: 80/100
The gist: The gist Lyme disease which manifests itself in most cases with erythema migrans (EM) skin lesions can be diagnosed using convolutional neural networks (CNNs) for early diagnosis and referral to
Key concepts
- Convolutional Neural Networks (CNNs)
- CNNs are deep learning models designed to process images by applying filters that detect patterns, such as the specific shapes of erythema migrans lesions. They are highly effective at recognizing complex visual features in medical images like those used for Lyme disease diagnosis.
- Transfer Learning
- This technique involves taking a model already trained on a massive dataset (like ImageNet) and adapting it for a new, smaller task (Lyme disease). Instead of starting from scratch, the model uses its existing knowledge to learn relevant features much faster and more accurately with limited data.
- Erythema Migrans (EM)
- EM is the characteristic skin lesion that appears in most cases of Lyme disease. The study focuses on using CNNs to automatically identify these specific visual signs in photographs, which helps in early diagnosis and referral to experts.
- Transfer Learning Strategy
- The best approach used involved pretraining an ImageNet model with HAM10000 data before fine-tuning its unfrozen layers with the Lyme disease dataset. This combination maximized performance on the limited skin lesion data, leading to superior classification results.
Terminology
Summary
The gist Lyme disease which manifests itself in most cases with erythema migrans (EM) skin lesions can be diagnosed using convolutional neural networks (CNNs) for early diagnosis and referral to expert dermatologists
Dataset Creation and Preparation
The study created an EM dataset by collecting images from the internet and Clermont-Ferrand University Hospital Center (CF-CHU) of France, resulting in 866 images assigned to the EM class and 806 assigned to the Confuser class The dataset was subdivided into five-folds using stratified five-fold cross-validation to ensure each fold maintained the original class ratio Data augmentation techniques were applied only to the training set to expand it twenty times, using augmentations such as flip (vertical or horizontal), rotation, brightness, contrast, and saturation
CNN Architectures Benchmarked
Twenty-three CNN architectures were benchmarked against the dataset in terms of predictive performance, computational complexity, and statistical significance The architectures tested included VGG, ResNet, DenseNet, MobileNet, Xception, NASNet, and EfficientNet Specific architectures analyzed were VGG architecture [27], Inception architecture [28], ResNet architecture [31], Dense Convolutional Network (DenseNet) [33], MobileNet Architecture [34] including MobileNetV2 and MobileNetV3, Xception architecture [40], NASNet architecture [41] including NASNetMobile, and EfficientNet architecture
Transfer Learning Strategy
To improve performance on the limited dataset, custom transfer learning from ImageNet pre-trained models was used as well as pretraining the CNNs with the skin lesion dataset HAM10000 The best performing configuration across all architectures involved pretraining only the unfrozen part of an ImageNet pre-trained model with HAM10000 data before fine-tuning U layers with our Lyme disease dataset
This approach was applied to ResNet50, resulting in the best accuracy of 84.42%
Performance and Model Selection
The customized ResNet50 architecture achieved the best classification accuracy of 84.42% ±1.36, with an AUC of 0.9189 ±0.0115 A lightweight model customized from EfficientNetB0 also performed well with an accuracy of 83.13% ±1.2 and an AUC of 0.9094 ±0.0129 The study utilized various predictive performance measures, including accuracy, recall/sensitivity/hit rate/TPR, specificity/selectivity/TNR, precision/PPV, NPV, MCC, Cohen’s kappa coefficient (κ), and Area under the receiver operating characteristic (AUC) metrics The best performing model overall was ResNet50-IMGHAMPP-FT141 with an accuracy of 84.42%
Model Complexity and Explainability
Model complexity was measured by total number of model parameters, FLOPs, average training time per epoch, disk and GPU memory usage, and average inference time per image The study provided guidelines for model selection based on predictive performance and computational complexity Explainability was achieved using Gradient-weighted Class Activation Mapping (Grad-CAM) to visualize the regions of the input image that are significant for predictions The discussion indicated that EfficientNetB0-187 is a good choice with reasonable accuracy for resource-constrained mobile platforms
Conclusion and Guidelines
The study confirmed the effectiveness of even some lightweight CNNs for building Lyme disease pre-scanner mobile applications to assist people with an initial self-assessment and referring them to expert dermatologist for further diagnosis The authors made all the trained models publicly available which can be used by others for transfer learning and building pre-scanners for Lyme disease Resource intensive models like ResNet50 can be effective for building computer applications to assist non-expert practitioners with identifying EM The best performing trained models of each architecture are presented in ModelName-U format, where U represents the no of unfrozen layers during transfer learning fine-tuning
How it works
The study utilized transfer learning as the Lyme dataset is not huge enough to obtain good performance by training large CNNs from scratch They started with a CNN already pretrained on ImageNet dataset and after removing the original ImageNet classification head our EM classification head consisting of Global Average Pooling (GAP) layer, dropout layer, and a fully connected layer with sigmoid activation for binary classification was added as shown in Figure 14 Fine-tuning the whole CNN architecture after training the classifier head with our Lyme dataset performed poorly compared to the partial fine-tuning of several layers at the end of the CNN while keeping rest of the layers frozen
Model Selection Guidelines
The study provided guidelines for model selection based on predictive performance and computational complexity The experimental result described above makes it evident that CNNs have great potential to be used for Lyme disease pre-scanner application For resource-constrained mobile platforms, EfficientNetB0-187 is a good choice with reasonable accuracy If resource constraint is not a problem, then RestNet50-141 can be used for the best accuracy Resource intensive models like ResNet50 can be effective for building computer applications to assist non-expert practitioners with identifying EM
Limitations
A limitation is that dark-skinned samples are underrepresented in our dataset A limited number of samples in the dataset with skin hair artifact over the EM lesion is also a concern Although hair removal algorithms can be used for removing skin hair it will increase the computational complexity of the real-time mobile application
Future Directions
Existing works including this study on AI-based Lyme disease analysis only utilize images but including patients’ metadata can be a great way of strengthening the analysis Another limitation is that dark-skinned samples are underrepresented in our dataset We trained the CNNs with whole images without EM lesion segmentation The effect of the EM lesion segmentation on the predictive performance of CNNs can be an interesting study A better alternate can be augmenting the training dataset with artificial skin hair
Conclusion
In this study, we benchmarked and extensively analyzed twenty-three well-known CNNs based on predictive performance, complexity, significance tests, and explainability using a novel Lyme disease dataset to find out the effectiveness of CNNs for Lyme disease diagnosis from EM images The study found that even the lightweight models like EfficientNetB0 performed well suggesting the application of CNNs for Lyme disease pre-scanner mobile applications which can help people with an initial assessment of the probability of Lyme disease and referring them to expert dermatologist for further diagnosis Resource intensive models like ResNet50 can be effective for building computer applications to assist non-expert practitioners with identifying EM We also made all the trained models publicly available, which can be utilized by others for transfer learning and building prescanners for Lyme disease The study confirms the effectiveness of even some lightweight CNNs for building Lyme disease pre-scanner mobile applications to assist people with an initial self-assessment and referring them to expert dermatologist for further diagnosis
Acknowledgments
This research was funded by the European Regional Development Fund, project D
Improvements for AI systems
-
textbfImprove Mobile Deployment Capability with EfficientNetB0-187 for Remote Diagnosis: The improved system can be
directly deployed in mobile devices without requiring an internet connection for processing the lesion image in a remote server.
This enables initial self-assessment of Lyme disease probability even in areas without good internet facilities, addressing the constraint mentioned in the discussion about resource-constrained platforms. -
textbfOptimize Model Selection via Complexity and Accuracy Trade-off: The system can utilize
Figure 18 shows a bubble chart reporting model accuracy vs FLOPs
to guide selection, favoring models likeEfficientNetB0-187 is a good choice with reasonable accuracy for resource-constrained mobile platforms.
This ensures the deployed application balances diagnostic performance with limited computational resources. -
textbfEnhance Diagnostic Reliability through Transfer Learning Strategy: The system should employ the configuration that
pretraining only the unfrozen 141 layers of an ImageNet pre-trained model with HAM10000 data before fine-tuning
as thisperformed best in terms of most of the metrics (7 out of 11)
for ResNet50, leading to the highest reported accuracy of84.42%.
-
textbfIncrease Model Interpretability for Clinical Trust: Implement Grad-CAM visualization to provide clinicians with visual evidence by showing
the regions of input that are significant to the CNNs for making predictions,
which is crucial as AI tools are used to assist non-expert practitioners inidentifying EM.
-
textbf Strengthen Data Robustness through Synthetic Augmentation: To address limitations like underrepresented samples, the system should utilize augmentation techniques such as
augmenting the training dataset with artificial skin hair
instead of relying solely on existing augmentations, which helps mitigate issues wheredark-skinned samples are underrepresented in our dataset.
Sources
- Inception-v4, Inception-ResNet and the Impact of Residual Connections on Learning
- Densely Connected Convolutional Networks
- MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications
- MobileNetV2: Inverted Residuals and Linear Bottlenecks
- Searching for MobileNetV3
- EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
- TensorFlow: A system for large-scale machine learning
- Adam: A Method for Stochastic Optimization
Related papers
- Revisiting Integration of Image and Metadata for DICOM Series Classification: Cross-Attention and Dictionary Learning
- VesselSDF: Distance Field Priors for Vascular Network Reconstruction
- cSVR: Convolutional Slice-to-Volume Reconstruction
- NAIMA: Semantics Aware RGB Guided Depth Super-Resolution
- AneumoBench: A Source-Linked Benchmark for Synthetic-Geometry Transfer in Aneurysm CFD
- RETO: A Rotary-Enhanced Transformer Operator for High-Fidelity Prediction of Automotive Aerodynamics