Open-access Microwave Brain Lesion Detection and Localization Using Classification Algorithms

Abstract

Recently, many machine learning techniques have been presented to detect brain lesions or determine brain lesion types using microwave data. However, there are limited studies analyzing the location of the lesions through machine learning approaches, despite the critical importance of lesion localization for treatment. This paper contributes to the literature on microwave brain lesion localization by comparing several machine learning algorithms rather than proposing a single algorithm. In the proposed approach, lesions of varying sizes and locations are randomly embedded into realistic 2D brain models. The brain models are divided into four regions, each representing the possible location of the lesion. Subsequently, training and test datasets are generated by computing the electromagnetic fields scattered from healthy brains and brains with lesions via the Method of Moments. Each sample in the datasets is labeled as healthy, region 1, region 2, region 3, or region 4 according to the presence and location of the lesion. Finally, we developed models using various classifiers and compared their effectiveness. Among these, the models trained with stochastic gradient descent classifier, ridge classifier, and logistic regression demonstrated notable accuracy (91%, 82%, and 77%, respectively) for both detection and localization of lesions.

Index Terms
Brain lesions; classification; localization of brain lesions; microwave scattering.

I. INTRODUCTION

Abnormal tissues, which damage the brain and cause cerebral hemorrhage, occur if the blood circulation in the human brain is unhealthy and the amount of blood is not sufficient. If these abnormal tissues in the brain, namely lesions, are not detected early, they can cause serious damage and lead to paralysis and even death. Many imaging approaches or detection methods have been developed to detect cerebral hemorrhages and abnormal tissues in the brain. Since microwave tomography uses non-ionizing waves and is relatively inexpensive, it has become one of the main methods used in brain imaging for detecting abnormal tissues in the last couple of decades [1]-[6]. However, in this case, one should deal with an inverse scattering problem with a high level of mathematical and computational complexity. To avoid these difficulties, classification algorithms can be used to detect the presence and location of brain lesions or identify the lesion type.

During the last decades, several research activities have been carried out for the detection and localization of brain lesions using microwaves. In [7]-[9], some hybrid approaches composed of two steps were proposed. In the first step, an inversion method is applied to obtain the dielectric profile of the entire brain. Then, the location or lesion type is determined via classification methods. In these approaches, the features used in the classification process are extracted from brain images; thus, the success of the classification depends on the inversion method.

Machine learning approaches in which microwave data are used as features are widely applied for lesion detection or identification of lesion type [10]-[14]. In [10], support vector machine (SVM) and K-nearest neighbors (KNN) algorithms were used to detect brain lesions. SVM was also used in a microwave-based stroke detection system to determine the lesion type [11]. In [12], the lesion type was classified using an explainable wavelet convolutional neural network. Here, the model is explained by applying a game-theoretic approach. Furthermore, there are studies that compare various machine learning algorithms to determine the most successful algorithms for the presence of lesions and/or identification of lesion type. It is reported that primarily neural networks (NNs), along with KNN, Naïve Bayes, SVM (with different kernels) yield more accurate results for lesion detection [13], while SVM, discriminant analysis, and decision trees yield better results for both lesion detection and classification of lesion type [14].

Although lesion localization is critical for the treatment, a limited number of studies analyze the location of the lesions via machine learning approaches. In [15], first, antenna channels are created through microwave signals under the assumption that the lesion-free background is known. Then, whether each channel contains blood blocks is evaluated via SVM based approach. Consequently, both the presence and localization of the lesions are determined. In [16], an approach based on neural networks is introduced for the localization of brain lesions (the presence of lesions was not examined). In that study, to formulate localization as a classification problem, brain models were discretized into cells, and a technique known as soft binning was employed. An explainable NN model was presented in [17] to localize one or more lesions and interpret the learning model through the gradient-weighted class activation map. In addition, approaches using NNs were proposed in [18]-[19] to detect lesions as well as localize them. In [18], the classification problem is formulated in two different ways, namely, the potential position of a lesion is searched either in subregions of brain models or at predetermined specific locations in brain models. The approach in [19] consists of two distinct NN models: the first NN model is used to classify the presence of lesions, while the second model is used to determine the stroke location.

As mentioned above, several studies have addressed both detection and localization of brain lesion using microwave data through a single machine learning algorithm. Apart from a recent study [20], the comparative analysis of different machine learning models for the dual task of detecting and localizing brain lesions remains largely underexplored. In [20], simulated S-parameter data obtained from a two-antenna system placed over a realistic head model in CST Microwave Studio were used as inputs for six machine learning algorithms. Among the six algorithms, decision trees, KNN, and random forest demonstrated superior accuracy. The results indicate that machine learning classifiers perform efficiently and effectively even on a 3D head model comprising different tissue layers such as brain, bone, skin, and fat, with a realistic antenna system. However, the study is limited as the lesions are confined to three predefined locations within homogeneous brain tissue, and the distribution of healthy tissues in the head model remains constant across all samples. In this context, the purpose of our study is to investigate and compare various machine learning techniques for detecting and localizing of lesions that are arbitrarily embedded within realistic brain tissues with variable distributions. To this aim, the brain is illuminated through a set of transmitting antennas, and the time-harmonic electromagnetic field is measured by receiving antennas located in the vicinity of the brain. We use various 2-D realistic numerical brain models to generate the scattered field by solving the direct scattering problem via the Method of Moments (MoM). The training and test datasets are obtained from specific sets of the brain with and without lesions of different sizes and locations. We have compared various machine learning algorithms and observed that the stochastic gradient descent (SGD) classifier, ridge classifier, and logistic regression classifier yield more accurate results for lesion detection and localization.

II. METHODOLOGY

A. Description of the microwave scattering environment

In the 2-D brain lesion detection and localization problem considered here, the brain (see Fig. 1 (a) and Fig. 1 (b) for relative dielectric permittivity and conductivity profiles of a healthy brain sample) is illuminated by 10 equally spaced line sources at 1 GHz, which are positioned on a circle of radius 10 cm. For each illumination, the electric field scattered from the brain is measured at 40 discrete points on a circle whose radius is 11 cm. We use 2D numerical head models with realistic electromagnetic properties. Lesions are modeled as disks with radii varying between 10 mm and 15 mm and their size and location are randomly determined. Also, their relative dielectric permittivity and conductivity are chosen as 80 and 1.3 S/m, respectively. The head models are assumed to be surrounded by a matching medium with a relative dielectric permittivity of 40 and a conductivity of 0.3 S/m. These values were selected based on observations of sufficient wave penetration.

Fig. 1
(a) Relative dielectric permittivity and (b) conductivity profiles of a healthy brain sample.

B. Synthetic microwave data generation

Bi-dimensional brain models used in simulations are slices of a 3D numerical head model [21]. More clearly, 29 slices of the 3D brain model were selected, and 11 of them were enlarged by resizing. Subsequently, all 2D models were rotated, and a total of 58 2D brain models were used for classification. Finally, 25 healthy and 100 unhealthy brain samples were produced from each of the 58 brain models and a total of 7250 samples, 1450 healthy and 5800 with lesions, were created. Unhealthy brain samples were created by randomly embedding lesions into the brain models.

The microwave field scattered from a specific brain sample, represented as us, was generated by solving the related direct scattering problem via MoM. A random noise level of 1% was introduced into the scattered field us. More precisely, a random term ηuse2irπ was added to each value of us, where η = 0.01 represents the noise level, and r is a uniformly distributed random variable in the range [0.1). The corresponding signal-to-noise ratio was calculated as SNR=-20log10η=40 dB. For each simulation, 400 complex-valued microwave data points (corresponding to 10 illuminations and 40 measurement points) were generated. It should be noted that the field scattered from the 25 healthy brains produced from a specific brain model varies due to the added random noise.

C. Machine learning strategy

The microwave data contain information about the dielectric permittivity and conductivity distribution of all brain tissues, including potential lesions. This enables the detection and localization of lesions using machine learning methods.

Considering the real and imaginary parts of the electric fields as different features, a dataset composed of 7250 samples and 800 real-valued features was constructed for the machine learning procedure. Each sample in the dataset was labeled as ‘healthy’, ‘region 1’, ‘region 2’, ’region 3’, or ‘region 4’ according to the presence and position of the lesion. These regions are defined as follows:

The point (0,0) in the coordinate plane is accepted as the center of the brain, and if there is a lesion, its location is labeled according to the position of the lesion center in the 2D plane. When the center of a lesion is located at x > 0 and y > 0, then the lesion location is assumed to be in the first region (see Fig. 2 (a)); when it is located at x < 0 and y > 0, then the lesion location is assumed to be in the second region (see Fig. 2 (b)); when it is located at x < 0 and y < 0, then the lesion location is assumed to be in the third region (see Fig. 2 (c)); and when it is located at x > 0 and y < 0, then the lesion location is assumed to be in the fourth region (see Fig. 2 (d)).

Fig. 2
Conductivity profile of a brain with a lesion in the (a) first region, (b) second region, (c) third region and (d) fourth region.

After simulations in which lesions were randomly located, the numbers of lesions generated in each region are 1456, 1438, 1506, and 1400, respectively. Considering the number of lesions in each region and 1450 healthy brain samples, the dataset is balanced.

Seventy-five percent of the generated data were used for training the machine learning models, while 25% were reserved for testing. The test dataset contains only the microwave data derived from seven brain models and their rotated forms, whereas the training dataset contains the microwave data obtained from the remaining brain models. This separation ensures an unbiased evaluation of the machine learning model's performance on unseen brain samples and their corresponding microwave data. Additionally, during the training phase, a 10-fold cross-validation technique was applied to the training set (75% of the entire dataset) to mitigate the risk of overfitting.

To classify the brain as healthy or with lesions and to determine the lesion location if there exists a lesion in the brain, we employed various machine learning classifiers available in the Scikit-learn library (version 1.0.2) of Python (version 3.9.10), i.e., the SGD classifier, ridge classifier, logistic regression, multilayer perceptron (MLP) classifier, bagging classifier, Bernoulli Naive Bayes, decision tree classifier, random forest classifier, and quadratic discriminant analysis [22, 23].

III. RESULTS AND DISCUSSION

In Table I, the highest, lowest, and average accuracy values obtained as a result of the training stage, and the accuracy of the test stage are given for each model. Among these algorithms, the SGD classifier, ridge classifier, and logistic regression classifier have the highest accuracy values. Therefore, detailed results for the models trained with these three algorithms on the test dataset are provided below.

TABLE I
ACCURACY RATES OF MODELS

A. SGD classifier

SGD is commonly employed for fitting linear classifiers such as logistic regression and basic SVM. This is particularly effective for large-scale and sparse machine learning problems. The learning rate parameter and the parameter η0 were selected as 'adaptive' and 0.001, respectively. This implies that η0 remains constant at 0.001 as long as the training loss decreases. If the loss does not decrease during an iteration, the value of η0 is reduced by a factor of 5. The remaining parameters of the SGD classifier align with the default values provided in the Scikit-learn library. For details regarding the default parameters of the SGD classifier and other classifiers, we refer readers to the official Scikit-learn documentation [22], available under their respective sections (e.g., SGD: https://scikit-learn.org/stable/modules/sgd.html). Accordingly, the confusion matrix, which shows the classification results for the SGD classifier algorithm, is given in Table II.

TABLE II
CONFUSION MATRIX OF THE SGD MODEL

The model constructed by the SGD classifier correctly classifies 305 healthy brains, 318 lesions in region 1, 332 lesions in region 2, 341 lesions in region 3, and 300 lesions in region 4. In total,1596 out of 1750 samples are correctly classified, resulting in an overall accuracy of approximately 91%.

B. Ridge classifier

The ridge classifier is a classification variant of the ridge regression model [24,25]. The problem is treated as multi-output regression for multiclass classification. Default parameters were utilized for the ridge classifier as specified in the Scikit-learn library. The confusion matrix for the ridge classifier is given in Table III. The model accurately classifies 256 healthy brains, 277 lesions in region 1.336 lesions in region 2, 283 lesions in region 3, and 286 lesions in region 4. The overall accuracy of the model is approximately 82%.

TABLE III
CONFUSION MATRIX OF THE RIDGE MODEL

C. Logistic regression

Logistic regression is a statistical method used to analyze a dataset with one or more independent variables. The default parameters of the logistic regression in the Scikit-learn library were chosen. The classification results are shown in Table IV. Totally 1346 out of 1750 samples are accurately classified (the accuracy percentage is approximately 77%).

TABLE IV
CONFUSION MATRIX OF THE LOGISTIC REGRESSION MODEL

D. Other metrics for performance assessment

Numerous metrics are available for evaluating and comparing classification models. The most used metric is accuracy; however, it alone is not a sufficient metric due to its inability to account for class imbalances. Therefore, we computed recall, precision, and F1-score. Precision and recall are defined as

(1) P r e c i s i o n = T P T P + F P

and

(2) R e c a l l = T P T P + F N

where TP, FP, and FN denote the number of true positives, false positives, false negatives, respectively. The other metric, F1-score, is the harmonic mean of precision and recall, and its values change between the interval [0,1]. It is defined as

(3) F 1 s c o r e = 2 x R e c a l l x P r e c i s i o n R e c a l l + P r e c i s i o n .

These metrics were computed by using the classification results of the test dataset. The computed values for the SGD classifier, ridge classifier, and logistic regression are presented in Table V, Table VI, and Table VII, respectively. From Table V, it is observed that, for each class, the precision and recall values are 87% or higher and the F1-score is 89% or higher. Consequently, the model trained by the SGD classifier yields more satisfactory results compared to the other trained models.

TABLE V
SUCCESS METRICS FOR THE SGD CLASSIFIER
TABLE VI
SUCCESS METRICS FOR THE RIDGE CLASSIFIER
TABLE VII
SUCCESS METRICS FOR THE LOGISTIC REGRESSION

Apart from classification performance, the complexity of the classifiers is another significant aspect to consider when comparing their computational performance. For default parameters, the complexities of the SGD classifier, ridge classifier, and logistic regression are O(kmn), Omn2+n3 and O(kmn2), respectively, where k is the number of iterations, m is the number of samples, and n is the number of features. Based on the results observed in this study, the SGD classifier not only outperforms the others in terms of classification results but also generally exhibits better computational efficiency, particularly for large datasets. However, it requires more parameter tuning compared to the other classifiers.

IV. CONCLUSION

For the problem of microwave brain lesion detection and localization, we present a machine learning schema and compare various machine learning algorithms. In this schema, first, each 2D brain model is divided into four regions to formulate localization as a classification problem. Subsequently, multiple models are developed through various classifiers, and they are compared through several metrics, i.e., accuracy, precision, recall, and F1-score.

We observed that the models trained by the SGD classifier, ridge classifier, and logistic regression yielded the most successful results when evaluated with the test dataset. The accuracy values of these models are approximately 91%, 82%, and 77%, respectively. Similarly, the computed values of the other metrics were higher for these models, especially for the model trained with the SGD classifier. When the SGD algorithm was employed, the precision and recall values for healthy brains and the lesions in each region were computed as 87% or higher, while the F1-score was computed as 89% or higher. Moreover, the SGD classifier is particularly advantageous in terms of computational complexity, offering lower computational cost for large datasets.

In this approach, lesions located on boundaries between regions may reduce the overall success rate. To overcome this issue, the number of brain regions can be increased, and appropriate metrics that account for the distance between regions can be employed. Another limitation of this study is the use of a single 3D head model to extract 2D brain models. Including different 3D head models will enhance the generalizability of the findings and provide a more comprehensive understanding of lesion detection across various anatomical structures.

Finally, it can be noted that the machine learning techniques examined here for the 2-D problem can be readily applied to the 3-D problem.

REFERENCES

  • [1] S. Semenov, “Microwave tomography: review of the progress towards clinical applications,” Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, vol. 367, no. 1900, pp. 3021-3042, 2009, doi: 10.1098/rsta.2009.0092.
    » https://doi.org/10.1098/rsta.2009.0092.
  • [2] R. Chandra, H. Zhou, I. Balasingham, and R. M. Narayanan, “On the opportunities and challenges in microwave medical sensing and imaging,” IEEE Transactions on Biomedical Engineering, vol. 62, no. 7, pp. 1667-1682, 2015, doi: 10.1109/TBME.2015.2432137.
    » https://doi.org/10.1109/TBME.2015.2432137.
  • [3] S. Y. Semenov and D. R. Corfield, “Microwave tomography for brain imaging: feasibility assessment for stroke detection,” International Journal of Antennas and Propagation, vol. 2008, pp. 1-8, 2008, doi: 10.1155/2008/254830.
    » https://doi.org/10.1155/2008/254830.
  • [4] R. Scapaticci, L. Di Donato, I. Catapano, and L. Crocco, “A feasibility study on microwave imaging for brain stroke monitoring,” Progress in Electromagnetics Research B, vol. 40, pp. 305-324, 2012, doi: 10.2528/pierb12022006.
    » https://doi.org/10.2528/pierb12022006.
  • [5] I. Bisio, “A numerical study concerning brain stroke detection by microwave imaging systems,” Multimedia Tools and Applications, vol. 77, no. 8, pp. 9341-9363, 2017, doi: 10.1007/s11042-017-4867-7.
    » https://doi.org/10.1007/s11042-017-4867-7.
  • [6] J. Liu, L. Chen, H. Xiong, and Y. Han, “Review of microwave imaging algorithms for stroke detection,” Medical & Biological Engineering & Computing, vol. 61, pp. 2497-2510, 2023, doi: 10.1007/s11517-023-02848-5.
    » https://doi.org/10.1007/s11517-023-02848-5.
  • [7] L. Guo and A. Abbosh, “Stroke localization and classification using microwave tomography with k-means clustering and support vector machine,” Bioelectromagnetics, vol. 39, no. 4, pp. 312-324, 2018, doi: 10.1002/bem.22118.
    » https://doi.org/10.1002/bem.22118.
  • [8] M. Roohi, J. Mazloum, M.A. Pourmina, and B. Ghalamkari, “Machine learning approaches for automated stroke detection, segmentation, and classification in microwave brain imaging systems,” Progress in Electromagnetics Research C, vol. 116, pp. 193-205, 2021, doi: 10.2528/PIERC21080404.
    » https://doi.org/10.2528/PIERC21080404.
  • [9] M. Ojaroudi, S. Bila, and M. Salimi, “A novel machine learning approach of hemorrhage stroke detection in differential microwave head imaging system,” 2020 European Conference on Antennas and Propagation, Copenhagen, Denmark, 2020.
  • [10] C. Sundström, “Machine learning algorithms for stroke diagnostics,” M. Sc. Thesis, Dept. of Signals and Systems, Chalmers University of Technology, Gothenburg, Sweden, 2014. [Online]. Available: https://publications.lib.chalmers.se/records/fulltext/200455/200455.pdf
    » https://publications.lib.chalmers.se/records/fulltext/200455/200455.pdf
  • [11] J. Xu, J. Chen, W. Yu, et al., “Noninvasive and portable stroke type discrimination and progress monitoring based on a multichannel microwave transmitting-receiving system,” Scientific Reports, vol. 10, article no. 21647, 2020, doi: 10.1038/s41598-020-78647-x.
    » https://doi.org/10.1038/s41598-020-78647-x.
  • [12] S. Hasan, A. Zamani, A. Brankovic, K. Bialkowski, and A. Abbosh, “Stroke classification with microwave signals using explainable wavelet convolutional neural network,” IEEE Journal of Biomedical Health Informatics, PMID. 37874697, 2023, doi: 10.1109/JBHI.2023.3327296.
    » https://doi.org/10.1109/JBHI.2023.3327296.
  • [13] M. Hashir et al., “A TinyML based portable, low-cost microwave head imaging system for brain stroke detection,” 2023 IEEE International Symposium on Circuits and Systems (ISCAS), Monterey, CA, USA, pp. 1-4, 2023, doi: 10.1109/ISCAS46773.2023.10181746.
    » https://doi.org/10.1109/ISCAS46773.2023.10181746.
  • [14] T. Pokorny and J. Tesarik, “Microwave stroke detection and classification using different methods from MATLAB's classification learner toolbox,” 2019 European Microwave Conference in Central Europe (EuMCE), Prague, Czech Republic, pp. 500-503, 2019.
  • [15] Y. Wu, M. Zhu, D. Li, Y. Zhang, and Y. Wang, “Brain stroke localization by using microwave-based signal classification,” 2016 International Conference on Electromagnetics in Advanced Applications (ICEAA), Cairns, Australia, pp. 828-831, 2016, doi: 10.1109/ICEAA.2016.7731527.
    » https://doi.org/10.1109/ICEAA.2016.7731527.
  • [16] A. Al-Saffar, A. Bialkowski, M. Baktashmotlagh, A. Trakic, L. Guo and A. Abbosh, “Closing the gap of simulation to reality in electromagnetic imaging of brain strokes via deep neural networks,” IEEE Transactions on Computational Imaging, vol. 7, pp. 13-21, 2021, doi: 10.1109/TCI.2020.3041092.
    » https://doi.org/10.1109/TCI.2020.3041092.
  • [17] W. -c. Lai, L. Guo, K. Bialkowski, and A. Bialkowski, “An explainable deep learning method for microwave head stroke localization,” IEEE Journal of Electromagnetics, RF and Microwaves in Medicine and Biology, vol. 7, no. 4, pp. 336-343, 2023, doi: 10.1109/JERM.2023.3287681.
    » https://doi.org/10.1109/JERM.2023.3287681.
  • [18] E. Nirvin, “Predicting position and volume of hemorrhagic strokes,” M. Sc. Thesis, Dept. of Physics, Chalmers University of Technology, Gothenburg, Sweden, 2022. [Online]. Available: https://odr.chalmers.se/server/api/core/bitstreams/96535107-ed25-4083-95b1-08dbb9022458/content
    » https://odr.chalmers.se/server/api/core/bitstreams/96535107-ed25-4083-95b1-08dbb9022458/content
  • [19] L. Alon and S. Dehkharghani, “A stroke detection and discrimination framework using broadband microwave scattering on stochastic models with deep learning,” Scientific Reports, vol. 11, article no. 24222, 2021, doi:10.1038/s41598-021-03043-y.
    » https://doi.org/10.1038/s41598-021-03043-y.
  • [20] A. Singh et al., “Microwave antenna-assisted machine learning: a paradigm shift in non-invasive brain hemorrhage detection,” IEEE Access, vol. 12, pp. 37179-37191, 2024, doi: 10.1109/ACCESS.2024.3371886.
    » https://doi.org/10.1109/ACCESS.2024.3371886.
  • [21] T. Yelkenci and G. Magerl, “Die berechnung der von mobiltelefonen im menschlichen kopf hervorgerufenen spezifischen absorptionsraten,” Elektrotechnik Informationstechnik, vol. 117, pp. 744-749, 2000, doi: 10.1007/BF03157747.
    » https://doi.org/10.1007/BF03157747.
  • [22] “Scikit-learn machine learning in Python,” 2022. [Online] Available: https://scikit-learn.org/stable/user_guide.html [Accessed: Dec. 30, 2024]
    » https://scikit-learn.org/stable/user_guide.html
  • [23] F. Pedregosa et al., “Scikit-learn: Machine Learning in Python,” The Journal of Machine Learning Research, vol. 12, pp. 2825-2830, 2011, doi: 10.5555/1953048.2078195.
    » https://doi.org/10.5555/1953048.2078195.
  • [24] A. E. Hoerl and R. W. Kennard, “Ridge regression: biased estimation for nonorthogonal problems,” Technometrics, vol. 12(1), pp. 55-67, 1970, doi: 10.1080/00401706.1970.10488634.
    » https://doi.org/10.1080/00401706.1970.10488634.
  • [25] T. Hastie, R. Tibshirani and J. Friedman, "Linear methods for regression" in The Elements of Statistical Learning: Data Mining Inference and Prediction, 2nd ed., (Springer Series in Statistic), New York: Springer, pp. 61-68, 2009.

Publication Dates

  • Publication in this collection
    09 June 2025
  • Date of issue
    2025

History

  • Received
    02 Nov 2024
  • Reviewed
    01 Nov 2024
  • Accepted
    06 Apr 2025
location_on
Sociedade Brasileira de Microondas e Optoeletrônica e Sociedade Brasileira de Eletromagnetismo Praça Mauá, n°1, 09580-900 São Caetano do Sul - S. Paulo/Brasil, Tel./Fax: (55 11) 4238 8988 - São Caetano do Sul - SP - Brazil
E-mail: editor_jmoe@sbmo.org.br
rss_feed Acompanhe os números deste periódico no seu leitor de RSS
Ir para o topo