Artículos
Automatic segmentation of a meningioma using a computational technique in magnetic resonance imaging
Segmentación automática de un meningioma usando una técnica computacional en imágenes de resonancia magnética
Automatic segmentation of a meningioma using a computational technique in magnetic resonance imaging
Archivos Venezolanos de Farmacología y Terapéutica, vol. 37, no. 4, pp. 343-348, 2018
Sociedad Venezolana de Farmacología Clínica y Terapéutica

Abstract: Through this work we propose a computational technique for the segmentation of a brain tumor, identified as meningioma(MGT), which is present in magnetic resonance images (MRI). This technique consists of 3 stages developed in the three-dimensional domain. They are: pre-processing, segmentation and post-processing. The pre-processing stage uses a morphological erosionfilter (MEF), in gray scale, followed by a gradient magnitude algorithm. On the other hand, during the segmentation stage a clustering algorithm called region growing (RG), is implemented and it is applied to the pre-processed images. The RG requires, for its initialization, a seed voxel whose coordinates are obtained, automatically, through the training and validation of an intelligent operator based on support vector machines (SVM). Due to the high sensitivity of the RG to the location of the seed, the SVM is implemented as a highly selective binary classifier. During the post-processing stage, a morphological dilation filter is applied to preliminary segmentation generated by RG. The percentual relative error (PrE)is considered to comparethe segmentations of the MGT, generated by a neuro-oncologist manually, with the dilated segmentations of the MGT, obtained automatically. The combination of parameters linked to the lowest PrE, allows to establish the optimal parameters of each computational algorithms that make up the proposed computational technique. The obtained results allow to report a PrEof 1.44%, which indicates an excellent correlation between the manual segmentations and those produced by the computational technique developed.
Keywords: Magnetic resonance brain imaging, Cerebral tumor, Meningioma, Computational technique, Segmentation.
Resumen: A través de este trabajo se propone una técnica computacional para la segmentación de un tumor cerebral, identificado como un meningioma (MGT), que está presente en las imágenes de resonancia magnética (MRI). Esta técnica consta de 3 etapas desarrolladas en el dominio tridimensional. Ellas son: preprocesamiento, segmentación y postprocesamiento. La etapa de preprocesamiento utiliza un filtro de erosión morfológica (MEF), en escala de grises, seguido de un algoritmo de magnitud de gradiente. Por otro lado, durante la etapa de segmentación se implementa un algoritmo de agrupamiento, llamado crecimiento de regiones (RG), que se aplica a las imágenes preprocesadas. El RG requiere para su inicialización la ubicación de un vóxel semilla cuyas coordenadas se obtienen, automáticamente, a través del entrenamiento y la validación de un operador inteligente basado en máquinas de vectores de soporte (SVM). Debido a la alta sensibilidad del RG a la ubicación de la semilla, la SVM se implementa como un clasificador binario altamente selectivo. Durante la etapa de post-procesamiento, se aplica un filtro de dilatación morfológica a la segmentación preliminar, generada por RG. El error relativo porcentual (PrE) se considera para comparar las segmentaciones de la MGT generadas por un neurooncólogo, de forma manual, con las segmentaciones dilatadas de la MGT, obtenidas automáticamente. La combinación de parámetros vinculados al PrE más bajo permite establecer los parámetros óptimos de cada uno de los algoritmos computacionales que componen la técnica computacional propuesta. Los resultados obtenidos permiten reportar un PrE de 1.44%, lo cual indica una excelente correlación entre las segmentaciones manuales y las producidas por la técnica computacional desarrollada.
Palabras clave: Imágenes cerebrales por resonancia magnética, Tumor cerebral, Meningioma, Técnica computacional, Segmentación.
INTRODUCTION
The segmentation of anatomical structures of the human brain, present in images acquired by any imaging modality, constitutes the starting point for the diagnosis of a high number of diseases or pathologies that affect the brain. Among these pathologies are brain tumors which originate from several cell lines and are classified according to several criteria1. One of them is according to the place of the body where they are generated. In this sense, they can be classified into two groups: a) Primary tumors. Space-occupying lesions composed of cells (SOLC) that start in the brain and tend to remain there. b) Secondary tumors. SOLC that originate in other sites of the human body and spread and/or infiltrate, such as metastasis, in the brainthe most frequent metastases come from cancers that usually occur in human skin, lungs and breast2,3.
In this context, meningiomas represent approximately 34% of all primary brain tumors. Generally, this type of tumor is diagnosed in adults over 60 years old and its incidence seems to increase with age. Meningiomas are rarely found in children. Their incidence in women almost doubles that in men3 .
The World Health Organization (WHO). uses the degree of malignancy of the tumor as a criterion to classify primary tumors into four grades. According to this classification, tumors labeled with grades I and II are generally benign; while those classified in grades III and IV are considered malignant. Normally, patients with primary grade I brain tumors have a longer survival than those with grade IV tumors1,2,3.For the present study, the tumors reported in the literature as meningiomas are of special interest.
Meningiomas arise in the meninges, three thin layers of tissue that they cover the brain and the spinal cord. These tumors usually grow inward causing pressure over the brain or the spinal cord, but also can grow outward, towards the skull, causing its thickening. The majority of meningiomas they are benign tumors of slow growth. Some of them contain cysts, calcifications or concentrated groupings of blood vessels3.According to WHO4, the meningiomas can be located in the context illustrated in figure 1.

Additionally, table 1 presents an important information, considering references3,5, that allows us to characterize meningiomas.
Table 1. Main features about meningiomas.
| Causes | Symptoms | Diagnostic techniques | Medical treatment |
| 22-chromosome abnormality. Extra copies of EGFR* and PDGF**. Breast cancer, neurofibromatosis type 2. (Radiation) Consumption of hormones linked to sexual hormonal disorders | Headache Muscle weakness in upper or lower extremities Visual blur and seizures Humor changes | Neurological examination MRI or CT Angiography Arteriography Biopsy | Surgery Radiotherapy Immunotherapy Progesterone, EGFR and PDGF Inhibitors |
On the other hand, cerebral digital neuroimages are accompanied by various imperfections such as noise6,7,8 and artifacts7,8which affect the quality of information associated with the anatomical structures that make up these images. These imperfections become real challenges, when computational strategies are implemented to generate the morphology (normal or abnormal) of the mentioned structures.. By way of example, figure 2, generated based on magnetic resonance images (MRI), illustrates the presence of Rician noise, the stair artifact, the low contrast between brain structures and the meningioma (structure with red cross in its center).

Additionally, when reviewing the state of the art regarding tumor segmentation, the works described below were found.Sanjuán et al..proposed atechnique for brain tumorsclassification, included meningiomas, from MRImodality based on automatic segmentation with refined patient-specific priors. This technique identified the tumors with good agreement with the manual segmentation (area under the ROC curve = 0.97 ± 0.03).
Similarly, Hsieh et al.10, proposed an automatic segmentation of meningioma from 30 non-contrasted brain T1 and T2 -weighted MR images integrating fuzzy clustering and region growing technique. The aims of this study are: a) To locate tumors in the images. b) To detect those situated in the midline position of the brain. The parameters percent match and correlation ratio suggested a high match between ground truth and the present study's system, as well as a fair level of correspondence.
Kauss et al.11, present a system based on adaptive template moderated classification for the automated segmentation of 3D MRI brain data sets of patients with brain tumors (meningiomas and low grade gliomas). In a validation study of 13 patients with brain tumors, the segmentation results of the automated method are compared to manual segmentations carried out by 4 independent trained human observers. It is shown that the automated method segments brain and tumor with accuracy comparable to the manual method.
In our present work, a computational technique (CT) is proposed for the segmentation of a MGT, present in a database formed by three-dimensional brain images of MSCT. This technique involves the stages of pre-processing, segmentation and post-processing Also, percent relative error (PrE)6 is used to compare segmentations of the MGT obtained automatically with those obtained manually.
MATERIALS AND METHODS
Description of the databases
The database (DB) used was provided by the Central Hospital of San Cristóbal-Táchira-Venezuela. It was acquired through the MRI modality and consists of three-dimensional images (3D), corresponding to the anatomical structures present in the head of 1 female patient. Numerical characteristics are presented on table 2.
Table 2. General characteristics of the database considered in the present work.
| DB Label | Voxels number | Voxels dimensions (mm3) | Age(years) |
| DB1 | 256x256x124 | 0.9375 x 0.9375x 1.5 | 55 |
For comparison, a manual segmentation is available, generated by a neuro-oncologist, corresponding to the LGG present in the DB considered. This segmentation represents the ground truth that will serve as a reference to validate the results.
Description of the proposed computational technique, for the automatic segmentation of the MGT.
By means of figure 3, is presented a schematic diagram that synthesizes the methods that make up the proposed technique, in the present investigation, to segment the tumor.

Pre-processing Stage
In the block diagram, presented in figure 3, this stage corresponds to the techniques: Erosion and Gradient magnitude filter. Each of them is described below.
- Morphological Erosion Filter (MEF):
Mathematical morphology is based on set theory, due to this, the objects present in an image can be treated as sets of points12. Generally, it is possible to define operations between two sets consisting of elements belonging to the aforementioned objects and a set called structuring element (SE)13. SEs can be visualized as neighborhoods of the element under study, which have morphology (shape) and variable size14.
Mathematical morphology is implemented, in practice, through various morphological filters whose basic operators are erosion and dilation13,14. These operators are non-linear spatial filters that can be applied to binary, grayscale or color images.
In particular, the erosion (⊖) of a two-dimensional image (I), composed of gray levels, using a two-dimensional SE, is defined by Equation 114,15.

Where: min the minimum gray level contained in SE, (s, t) defines the size of the SE and (x, y) represents the position of the pixel under study.
According to equation 1, to apply the filter or morphological erosion operator the image considered with an SE or neighborhood, of arbitrary size, is covered, replacing the gray level of each of the elements of such image by the level of gray minimum, contained in the aforementioned neighborhood. For purposes of the present work, a cubic structuring element was considered and the size of said SE is left as a parameter to control the performance of the MEF.
- Gradient Magnitude Filter (GMF):
The role of this filter is to detect the edges of the structures present in the images (I). The magnitude of the gradient is often used in image analysis, mainly to identify the contours of objects and the separation of homogeneous regions16. Edge detection is the identification of significant discontinuities in the level of gray or color images17. This technique calculates the magnitude of the gradient using the first directional partial derivatives of an image.
- Binary Morphological Dilation Filter (MDF):
In order to compensate the effect produced by the morphological erosion filter, the application of a morphological dilation filter (MDF) is considered, taking into account the binary image obtained by RG. The effect of morphological dilation is to enlarge the regions of the maximum intensity image. In particular, the dilation (⊕) of a two-dimensional binary image (Ib), using a bidimensional structuring element (B), is defined as the result of operating the Ib with the values of the SE under the logical operation OR14. For the purposes of this work, a cubic structuring element was considered and the size of said SE is left as a parameter to control the performance of the dilatation process.
Segmentation Stage
· Computer intelligence operators: Support Vector Machines (SVM).
Support vector machines (SVM) are paradigms that undergo training and detection processes, and are based on both the Vapnik-Chervonenkis learning theory and the minimization principle that considers structural risk18. SVM can be considered as classification and functional approach tools19,20.
A variant of the SVM, called the least squares vector support machine (LSSVM), can be obtained using robust statistics, Fisher discriminant analysis and replacing the system of inequations that govern the SVM, by an equivalent system of linear equations, which can be solved more efficiently21,22. Additionally, unlike other learning-based classification systems such as artificial neural networks (NN), LSSVMs use the criterion of minimization of structural risk, which raises the generalization capacity of the aforementioned machines to optimum levels, making it possible for LSSVM perform adequately in the validation process, surpassing NN in this aspect, which uses empirical risk23.
In this work, the location of the seed voxel, to initialize the segmentation technique called region growth (RG)13, is calculated using LSSVM. There are several functions that can be considered to construct the decision surface that allow the vector support machines to identify the seed. For purposes of the present work, a Gaussian radial base function (RBF) is considered and, therefore, a formulation is obtained that depends on the hyperparameters, identified as: a) Parameter for the error penalty (γ). b) To control the selectivity (σ.) of the LSSVM.
In this sense, the LSSVMs deserve a process of tuning of such hyperparameters. Theoretically, both parameters can assume values belonging to the range of real numbers comprised in 0 and infinity21,22. The aforementioned tuning process is necessary because it is very difficult to know, a priori, the combination of values that will generate optimal results when the LSSVM carry out the training and validation processes.
Additionally, to automatically identify the coordinates of the seed voxel, the following procedure was implemented:
i) A size reduction technique, based on bicubic interpolation, optimal reduction factor, is applied to match the one obtained in.. This allows to generate sub-sampled images of 64x64 pixels from filtered images of 512x512, that is, the mentioned factor is 8.
ii) A neurosurgeon selects, on the sub-sampled image, a reference point (P1) given by the centroid of the layer containing the maximum blood pool occupied by the MGT. For this point, the manual coordinates that unambiguously establish their spatial location in each considered image are identified.
iii) An LSSVM is implemented to recognize and detect point P1. For this, the processes of:
a) Training.Training circle circular neighborhoods of 10 pixels, manually traced by a neurosurgeon, containing both point P1 (markers) and regions not containing P1 (no markers) are selected as a training set. For the markers, the center of their respective neighborhoods coincides with the manual coordinates of P1, previously established.
Such neighborhoods are constructed on the axial view of a sub-sampled image of 64x64 pixels. The main reason why a single image is chosen, for each reference point, is because it is desired to generate a LSSVM with a high degree of selectivity, which detects only those pixels that have a high degree of correlation with the training pattern.
Then each neighborhood is vectorized and, considering its gray levels, the attributes mean, variance, standard deviation and median, are calculated. Thus, both markers and non-markers are described by vectors (Va) of statistical attributes, given by: Va = [mean, variance, standard deviation and median].
Additionally, the LSSVM is trained considering the vectors Va as a training pattern and intoning the values of the parameters that control its performance, γ and σ2. This approach, based on attributes, allows the LSSVM to do its work with greater efficiency, than when using the larger vector-based approach, which only considers the gray level of the elements of an image.
The training set is constructed with a ratio of 1:10, which means that 10 non-markers are included for each marker. The tag +1 is assigned to the class made up of the markers; while the -1 tag is assigned to the class of non-markers, that is, the training work is done based on a binary LSSVM.
During training, a classifier with a decision boundary is generated to detect LSSVM entry patterns as markers or non-markers. Subsequently, due to the presence of false positives and negatives, a process is applied that allows incorporating into the training set the patterns that the LSSVM initially classifies inappropriately.
In this sense, it was considered a toolbox called LS-SVMLAB and the Matlab15 application to implement an LSSVM classifier based on a radial base Gaussian kernel with parameters σ2 and γ.
b) Detection.The trained LSSVMs are used to detect P1, in images not used during training. To do this, a trained LSSVM looks for this reference point, in the axial view, from the first to the last image that makes up each of the 7 databases considered.
The validation process carried out with LSSVM allows to identify, automatically, the coordinates for P1 which are multiplied by a factor of 8 units, in order to be able to locate them, in the images of original size. In this way, the aforementioned coordinates are used to establish the exact location of the seed voxel required by the RG for its initialization.
Finally, as a synthesis, figure 4 illustrates the process followed to locate the seed voxel in the databases considered.

· Region growing (RG).
The region growing is an unsupervised clustering technique, which performs an iterative process that attempts to characterize each of the classes, according to the similarity between the voxels that integrate each of them and thus perform the segmentation13. The RG method allows you to group the pixels or voxels belonging to the objects that make up an image according to a predefined criterion. The RG requires a "seed" point which can be selected, manually or automatically, to extract all the pixels connected to seed13.
To apply the RG, to the pre-processed images, the following considerations were made: a) The initial neighborhood, which is constructed from the seed, is assigned a cubic shape whose side depends on an arbitrary scalar r. The r parameter requires a tuning process. b) As a pre-defined criterion, modeling is chosen through Equation 2
|I(x) − µ| <.σ (2)
Where: I(x) is the intensity of the seed voxel, μ and σ the arithmetic mean and the standard deviation of the gray levels of the initial neighborhood and m a parameter that requires tuning.
· Tuning process: Obtaining optimal parameters
The adequate performance of the proposed technique requires obtaining optimal parameters for each of the algorithms that comprise it. To do this, using DB1 as a reference, modify the parameters associated with the technique you wish to intone by systematically going through the values belonging to certain ranges, as described below.
o Dilationand erosion filters have the size of the observation window as a parameter. In order to reduce the number of possible combinations, an isotropic approach was considered to establish the range of values, which control the size of the aforementioned window, which is given by the odd combinations, given by the following ordered lists: (1,1,1), (3,3,3), (5,5,5), (7,7,7) and (9,9,9).
o The parameters of the LSSVM, σ2 and γ, are toned assuming that the cost function is convex and developing tests based on the following steps:
Ø To tuning the parameter γ the value of σ2 is arbitrarily set and values are systematically assigned to the parameter γ. The value of σ2 is initially set at 2.5. Now, γ is varied considering the range [0,100] and a step size of 0.25.
Ø An analogous process is applied to intone the parameter σ2, that is, it is assigned to γ the optimal value obtained in the previous step and, a step size of 0.25 is considered to assign to σ the range of values contained in the interval [0.50].
· The optimal parameters of the LSSVM are those values of γ and σ2 that correspond to the relative minimum percentage error, calculated considering the manual coordinates of the reference seed, established by the neurosurgeon and the automatic ones generated by the LSSVM.
o During the RG parameters tuning process, each one of the automatic segmentations of the MGT corresponding to the DB1 described, is compared with the manual segmentations of the MGT generated by a neurosurgeon, considering the PrE. The optimal values for the parameters of the RG (r and m), are matched to that experiment that generates the lowest value for the PrE.
RESULTS
Quantitative results
The optimal sizes for the expansion and erosion filters were (3,3,3) and (5,5,5), respectively. Regarding the trained LSSVM, values of 2.50 and 2.25 were obtained as optimal parameters for γ and σ2, respectively. The way to obtain these parameters is by means of the error that is presented when comparing the manual and automatic coordinates considering the percentage relative error (PrE). For thisminimum value the PrE, the optimal values of RG’s parameters, r and m, were 4 and 3.5, respectively.
The best automatic segmentation of the meningioma yielded a value for its volume of 36.88 cm3; while the volume associated with manual segmentation, of the aforementioned tumor, was 37.42 cm3. This imply that the minimum PrE was 1.44%.
Qualitative results
Figure 5, shows a 2-D view of both the original MGT and the processed versions after applying the proposed technique.

CONCLUSIONS
A computational technique has been displayed; its tuning process allows an accurate segmentation of a meningioma, presents in magnetic resonance images. This statement is supported by the fact that the PrE obtained was very low. The use of intelligent operators, represented by the least squares vector support machines, allowed the automatic identification of the coordinates corresponding to the seed voxel which plays a crucial role in the adequate initialization of the unsupervised grouping algorithm based on region growing.
The meningioma volume is vital when deciding whether a patient is surgically treated or not. Both the size of a meningioma and its location can seriously compromise the health of a patient.
Computational techniques such as that developed in the present investigation are precise and useful to generate the exact location and precise quantification of the volume occupied by a tumor. Additionally, the meningioma segmentation is useful to plan surgery and to remove as much of the tumor as possible, while avoiding the excision of parts of the brain that control vital functions.
In the future, it is planned to carry out an inter-subject validation of the computational technique developed considering a significant number of three-dimensional images, linked to patients with this type of disease.
ACKNOWLEDGEMENTS
The authors are grateful for the financial support given by the Universidad Simón Bolívar-Colombia through the 2016-16 code project.
REFERENCES
1. Stelzer K. Epidemiology and prognosis of brain metastases. Surg Neurol Int. 2013;4(Suppl 4):S192-202.
2. Mcneill KA. Epidemiology of Brain Tumors. Neurol Clin. 2016;34(4):981-998.
3. American Brain Tumor Association (ABTA). About Brain Tumors: A Primer for Patients and Caregivers. 9ª Edition. 2015 ABTA.
4. WHO (2007). Cavenee W, Louis D, Ohgaki H et al. Eds. WHO Classification of Tumours of the Central Nervous System. WHO Regional Office Europe.
5. Burger, Scheithauer, and Vogel, Surgical Pathology of the Nervous System and Its Coverings. 4th edition. Churchill Livingstone, Nueva York, 2002.
6. Vera M. Segmentación de estructuras cardiacas en imágenes de tomografía computarizada multi-corte. Ph.D. dissertation, Universidad de los Andes, Mérida-Venezuela, 2014.
7. Gudbjartsson H. y Patz S.The rician distribution of noisy MRI data, Magn. Reson. Med. 1995:34 (1):910-914.
8. Macovski A. Noise in MRI, Magn. Reson. Med. 1996:36 (1) 494-497.
9.Sanjuán A., Price C., Mancini L., Josse G., Grogan A., Yamamoto A., Geva S., Leff A., Yousry T., Seghier M. Automated identification of brain tumors from single MR images based on segmentation with refined patient-specific priors. Frontiers in Neuroscience. 2013:7(1):241-257
10.Hsieh T., Liu Y., Liao C., Xiao F., Chiang I., Wong J. Automatic segmentation of meningioma from non-contrasted brain MRI integrating fuzzy clustering and region growing. BMC Medical Informatics and Decision Making. 2011:11(1): 11-54.
11.Kaus M., Warfield S., Nabavi A., Chatzidakis E., Black P., Jolesz F. (1999). Segmentation of Meningiomas and Low Grade Gliomas in MRI. In Proceedings of Medical Image Computing and Computer-Assisted Intervention -- MICCAI'99. Kikinis R., Taylor, C. and Colchester A. editors. Springer Berlin Heidelberg. 1-10.
12. Serra J. Image Analysis Using Mathematical Morphology. London, England: Academic Press, 1982.
13. González R., Woods R. Digital Image Processing. USA: Prentice Hall, 2001.
14. Mukhopadhyay S., Chanda B. A multiscale morphological approach to local contrast enhancement. Signal Processing.2000: 80(4): 685–696.
15. Yu Z., Wei G., Zhen C., Jing T., Ling L. Medical images edge detection based on mathematical morphology. In Proceedings of the IEEE Engineering in Medicine and Biology 27th Annual Conference, Shanghai–China, September 2005, pp. 6492–6495.
16. W. Pratt. Digital Image Processing. USA: John Wiley & Sons Inc, 2007.
17. Fischer M., Paredes J., Arce G. Weighted median image sharpeners for the world wide web. IEEE Transactions on Image Processing. 2002:11(7):717-27.
18. V. Vapnik, Statistical Learning Theory. New York: John Wiley & Sons, 1998.
19. E. Osuna, R. Freund, y F. Girosi. Training support vector machines: an application to face detection. In Conference on Computer Vision and Pattern Recognition (CVPR ’97), San Juan, Puerto Rico, 1997, pp. 130–136.
20. A. Smola, “Learning with kernels,” Ph.D Thesis, Technische Universitt Berlin,Germany, 1998.
21. B. Scholkopf y A. Smola, Learning with Kernels: Support Vector Machines, Regularization,Optimization, and Beyond. Cambridge, MA , USA: The MIT Press, 2002.
22. J. Suykens, T. V. Gestel, y J. D. Brabanter, Least Squares Support Vector Machines.UK: World Scientific Publishing Co., 2002.
23. M. Oren, C. Papageorgiou, P. Sinha, E. Osuna, y T. Poggio. Pedestrian detection using wavelet templates.In CVPR ’97: Conference on Computer Vision and Pattern Recognition (CVPR ’97). Washington, DC, USA: IEEE Computer Society, 1997, pp. 193–200.
Author notes
m.avera@unisimonbolivar.edu.co