Elevating Healthcare AI: Achieving Efficiency and Accuracy in Medical Applications with Surrogate-Based Multiobjective Compression of ResNet50 CNNs | Springer Nature Link (formerly SpringerLink) Skip to main content Advertisement Log in Menu Find a journal Publish with us Track your research Search Cart Home Intelligent Systems Conference paper Elevating Healthcare AI: Achieving Efficiency and Accuracy in Medical Applications with Surrogate-Based Multiobjective Compression of ResNet50 CNNs Conference paper First Online: 31 January 2025 pp 137–151 Cite this conference paper Access provided by University of Notre Dame Hesburgh Library Download book PDF Download book EPUB Intelligent Systems (BRACIS 2024) Elevating Healthcare AI: Achieving Efficiency and Accuracy in Medical Applications with Surrogate-Based Multiobjective Compression of ResNet50 CNNs Download book PDF Download book EPUB Gabriel Bicalho Ferreira9, Pedro Silva9 & Rodrigo Silva9  Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 15415)) Included in the following conference series: Brazilian Conference on Intelligent Systems 233 Accesses 1 Citation Abstract Machine learning, particularly convolutional neural networks (CNNs), has gained prominence in healthcare applications, including medical diagnosis and clinical support. However, the increasing size of CNNs poses challenges in resource-constrained medical devices and real-time applications. This paper explores the effectiveness of pruning and quantization on the ResNet50 model within the MedMNIST dataset, a valuable resource for medical image classification. The study evaluates a surrogate-based multiobjective compression method on three MedMNIST datasets: RetinaMNIST for diabetic retinopathy grading, DermaMNIST for disease categorization, and BloodMNIST for blood cell classification. Results demonstrate that the proposed compression method successfully identifies less computationally intensive models while maintaining or improving accuracy across all three healthcare-related datasets. A reduction of about 50% in inference time and an increase of more than 1% in accuracy were observed. These findings emphasize the practicality of compression techniques in healthcare applications, particularly for resource-constrained environments and real-time decision-making scenarios. This research opens avenues for further validation and exploration in other healthcare-related applications with higher-quality neural network models, ultimately enhancing the deployment of machine learning in the healthcare domain. Access provided by University of Notre Dame Hesburgh Library. Download conference paper PDF Similar content being viewed by others Medical Computer Vision Chapter © 2025 Machine Learning in Healthcare Analytics: A State-of-the-Art Review Article 04 April 2024 Prediction of Frequent Out-Of-Hours’ Medical Use Chapter © 2020 1 Introduction Machine learning is a field of artificial intelligence that aims to create computational systems capable of acquiring knowledge through accumulated experiences and making automated decisions [15]. Among the various applications of machine learning, its relevance in the healthcare field stands out, being employed in medical diagnosis, disease prediction, and clinical decision support [6]. These systems aim to assist and streamline the work of medical professionals. In this context, in 2021, MedMNIST [24] emerged as an extensive collection of biomedical images developed to fine-tune and test classification models in medical applications. The MedMNIST dataset consists of 708,069 2D images distributed across 12 distinct datasets, as well as 9,998 3D images divided into 6 distinct sets. All images are standardized to a resolution of 28\(\,\times \,\)28 pixels and cover various medical contexts, including binary and multiclass classifications. The data is pre-divided into training, validation, and test sets. In addition to creating the dataset, the authors benchmarked different versions of the ResNet model [8] (ResNet-18 and ResNet-50) and three automated machine learning frameworks on each dataset. In the realm of deep learning techniques, Convolutional Neural Networks (CNNs), such as the ResNets, have stood out as extremely effective in several real-world tasks involving processing visual data, such as object detection and image and video processing [17]. Although recent advances in these techniques have led to an increase in the accuracy of CNNs, they have significantly increased their size and inference time [14]. Therefore, the research area of neural network compression techniques is gaining increasing prominence, particularly pruning and quantization, which have been extensively explored in the literature. Broadly speaking, in pruning, less significant neuron connections are removed from the model. In quantization, the precision of the model parameters is reduced. In [14], it has been shown that different types of pruning present varying trade-offs in terms of compression, accuracy, and speedup. On the other hand, quantization demonstrated significant improvement in performance and reduced storage requirements. Compressing machine learning models for medical applications is crucial for several reasons. First, many medical devices, such as portable ultrasound machines and wearable health monitoring devices, operate with limited computational resources. Compressed models enable these devices to perform tasks with reduced memory and computational power, making them more suitable for resource-constrained environments. Additionally, in medical settings, particularly during real-time applications like diagnosis and monitoring, the speed of inference is crucial. Compressed models facilitate faster execution, thereby decreasing the time required for critical decision-making. Also, compressed models typically consume less energy during inference, which is advantageous for battery-powered medical devices or situations where power conservation is important, as it can extend device runtime and reduce the need for frequent recharging or battery replacement. Furthermore, from a patient’s perspective, the wait time for a diagnosis can be highly stressful. Therefore, even a minor reduction in inference time can substantially alleviate patient anxiety. It is also noteworthy that minutes saved in a system performing numerous inferences can translate to substantial reductions in patient wait times overall. When applying pruning and quantization techniques, several decisions must be made, such as determining the extent of connections to prune and selecting the layers for quantization. Previous research [2, 5, 9, 10, 22, 23] has shown that the compression challenge is essentially a multi-objective optimization problem, requiring the identification of optimal trade-offs between the computational efficiency of the model (in terms of time and memory consumption) and its accuracy. Except for the approach presented in [9], which uses reinforcement learning, all other studies employ various types of evolutionary algorithms (EAs) as optimization methods. However, a significant bottleneck in this process is the considerable number of function evaluations required to find satisfactory solutions, especially challenging in the compression problem since the objective function requires evaluating the compressed model over the entire test set. The use of evolutionary algorithms for problems with expensive function evaluations is a well-known concern [4]. A well-established technique to address this issue is the use of surrogate models, also called meta-models [19, 20]. The idea is to build a computationally inexpensive model to substitute an expensive objective and constraint functions and use this cheaper model to guide the optimization process instead to evaluate the expensive functions over the entire test set. The primary goal of this work is to understand the impact of model compression techniques on the performance of Convolutional Neural Networks (CNNs) in health-related applications. Specifically, we employ a surrogate-based multi-objective compression methodology on the ResNet50 model, which has already been extensively testes on the MedMNIST dataset in [24]. This technique is evaluated on three MedMNIST datasets: RetinaMNIST for grading diabetic retinopathy severity, DermaMNIST for categorizing seven different diseases, and BloodMNIST for classifying blood cells into eight categories. The results indicate that the proposed surrogate-based multi-objective compression method effectively identifies less computationally intensive models while maintaining or even enhancing accuracy across all three datasets. This underscores the practicality and significance of employing compression techniques, especially in the healthcare domain. Extending this technique to other healthcare-related applications with higher-quality neural network models holds promising potential for further validation and exploration. Notably, there was an average reduction of 50% in inference time on average and an improvement of over 1% in accuracy. 2 Artificial Neural Network Compression as a Multi-objective Optimization Problem Deep artificial neural networks are robust, complex, and highly effective structures for solving various types of problems. However, their high computational cost can hinder their implementation on different devices [22]. In this section, we provide a brief overview of two compression techniques, pruning and quantization, including the relevant parameters that directly influence the final performance and quality of the compressed model. 2.1 Prunning and Quantization Pruning, within the context of neural networks, can be defined as a compression technique. It involves the selective removal of connections or neurons with low importance scores while preserving the network’s accuracy, as discussed in previous works [14, 21]. These importance scores can be determined based on various criteria, including weight magnitude, sensitivity, or activation level, as outlined in [21]. The pruning process typically consists of three key steps: (1) assessing the importance scores of each connection or neuron, (2) eliminating the connections or neurons with the lowest scores, and (3) fine-tuning the remaining network to restore its accuracy. For achieving higher compression rates, pruning can be applied iteratively, and it can also be combined with other compression techniques, such as quantization, to further reduce the network’s size and complexity. Quantization, as applied to an artificial neural network (ANN), serves as a model compression technique aimed at diminishing the number of bits required to represent each of the ANN’s parameters [7]. Typically, ANN parameters are represented using 32-bit floating-point numbers, thereby inflating both storage requirements and computational intricacies. Lowering the precision of these parameters not only accelerates model performance and curtails storage expenses but also retains adequate information for effective model inference, all while upholding accuracy [22]. 2.2 Compression Design Variables The implementation of these compression techniques requires the specification of certain parameters that may vary based on the chosen approach. When using pruning, one must define whether it will apply to only convolutional layers, only linear layers, or both. Once the type of layer is selected, one must specify which layers to prune and the pruning intensity, which is the proportion of weights and biases that will be pruned in a layer. Additionally, quantization can be applied to the previously pruned structures. Therefore, seven design variables have been defined to optimize the compression process and achieve the most suitable resulting model. Below, the variables and their respective domains are outlined: \(x_1\) (Linear Layer Pruning): \(x_1\) \(\in \) {0 (No pruning in the linear layers), 1 (Prune all linear layers), 2 (Prune a random set of linear layers)} \(x_2\) (Convolutional Layer Pruning): \(x_2\) \(\in \) {0 (No pruning in the convolutional layers), 1 (Prune all convolutional layers), 2 (Prune a random set of convolutional layers)} \(x_3\) (Pruning Intensity for the Linear Layer (%)): \(0\%