1. Introduction
The urbanization and industrialization of cities have produced increased emissions of heavy metals into the environment. In large urban populations such as Mexico City, London, Beijing, Madrid, and New York City, more than seven million deaths yearly due to cancer and other pollution-related diseases have been detected (WHO, 2014). In recent years there have been many findings worldwide of heavy metal pollution in soil (Aguilar et al, 2013a; Ihl et al, 2015), urban dust (Aguilar et al, 2013a, Cortés et al, 2017; Aguilera et al, 2019; Delgado et al, 2019; Morales et al., 2020) and urban plants (Aguilar et al, 2013a, 2013b). However, heavy metal pollution monitoring systems are not systematically implemented globally; only isolated disclosures have been made.
Pollution monitoring is complex and expensive due to the need to process large quantities of samples and information, and chemical analyses are a further cost. Efforts have therefore been made to find high-speed, inexpensive technologies called “proxies” that promote the study of heavy metal pollution, elements of which are magnetic properties (Cejudo et al, 2015; Sánchez-Duque et al, 2015) and the color of soils and dust (Cortés et al, 2015; Marín et al, 2018). These elements can be inexpensively acquired and are considered to provide reliable proxy indicators.
Many developing countries cannot count on many experts in heavy metal contamination, so the generation of technological tools that can analyze large quantities of information quickly and effectively is required. This work aimed to create software to save, sort, and analyze chemical information and relate it to proxy technologies with magnetic and color parameters in studying three environmental matrices: soils, dust, and tree leaves.
2. Materials and Methods
2.1. SOFTWARE DESIGN
The design and development of the software were based on the Mexican Standard NMX-I-12207-NYCE-2011 (Secretariat of the Economy, 2011), using the “waterfall model” with its methodological focus on ordering the activities of software development from beginning to end, finalizing each activity before beginning a new one. The tools utilized in our study were: Java 1.8 as the programming language, the Integrated Development Environment Eclipse Photon 4.7 (IDE), and the relational database management system H2 1.4.195 Database Engine with the syntax of the consulted language structure (SQL). These tools were selected for their free access, flexibility, robustness, high performance, and to accommodate the large community of users who volunteered their support.
The Model-Vision-Controller (MVC) software construction architecture divides software development into three areas. The model is in charge of requesting the data from the database manager (DBMS) through defined mechanisms and delivering the data to persist over time. The view is in charge of interacting with the user and collecting the input and output data to be processed by the controller (Pop and Altar, 2014; Ishihara and Funabiki, 2017). The controller, that acts as a judge, is in charge of validating the data, requests, controls and deliberating whether or not they are sent to the model to be stored or to consult details. With this architecture, business rules can be separated from interfaces, language functions, and development environment, thus creating a more precise, more modular construction and structure that embraces change and is not closed by strong dependencies among interfaces, language, and business rules.
The algorithmic structures and interfaces were perfected to utilize a minimum quantity of information sources to meet the following minimum requirements: processor of 1.0 GHz or higher; 256 MB of RAM (Random-Access Memory) dedicated to optimizing performance; a VGA (Video Graphics Array) screen with a recommended resolution of 1024x768 and 32 MB of graphic memory with a dedicated hard disc of 100 MB or higher; JVM 1.8 (Java Virtual Machine) software installed in the equipment; operating system Windows 7 or higher; Linux with JVM 1.8 support; and Mac OS with JVM 1.8 support.
2.2. SAMPLE SITES AND ENVIRONMENTAL MATRICES
The processing of the information in the software is based on the relational database model that relates the sample sites with the country, city, and state, and to the environmental soil, dust, and urban plant matrices, with each of these sites being associated with data blocks of color, magnetics, and chemical properties. In this way, each sample site is associated with an environmental matrix, forming pairs of registers where one sample site is related to a matrix of soils, dust, and plants; thus, each environmental matrix is, in turn, associated with each data block of properties of color, magnetics, and chemical properties (Figure 1).
The soil matrix contains information on the type of soil sample (superficial or control), sampling time (daily, weekly, biweekly, monthly, or annual), site, date, photograph, and observations. For soil sampling, a 2.5-inch diameter polyvinyl chloride (PVC) cylinder is used; the sample is dried for two weeks in the shade and then pulverized and sieved with a 2-mm mesh to carry out the analysis of the elements’ concentrations, for which X-ray fluorescence can be used (Bautista et al, 2011; Ihl et al, 2015).
The dust data matrix shows the type of swept surface (paving stone, cement, cobblestone, paving, soil, or dirt road), sample weight, temporality sampling, site, date, photograph, and observations. Dust sampling is done by delimiting one square meter on the surface to be swept; then, the sample is swept and stored in a plastic bag. The samples are labeled and weighed; They are dried in the shade for two weeks, ground, and sieved with 10, 30, or 60 mesh to analyze the concentrations of the elements (Aguilar et al, 2011; Aguilera et al, 2018).
The plant data matrix shows the common and scientific name of the plant, life form (tree, shrub, grass, palm), the height of leaves, type of leaves (young, mature or old), state of the plant (healthy, pruned, damaged, diseased), sedimentation period of the dust on the plant leaf (days, months or years), tree stump size (small, medium or large), damage to sidewalks, the timing of sampling, site, date, photography, and observations (Aguilar et al, 2013a). The plant data is recorded by measuring tree stump width and height, and height and diameter on all trees; the tree species that presented or not dust particles deposited on the leaf surfaces are recorded; a qualitative estimate of the state of health and maturity of the trees is made, and damage to the infrastructure is sought (Benavides et al, 2002; Flores and Álvarez-Sánchez, 2011).
2.3. CHEMICAL PROPERTIES AND INDICES OF CONTAMINATION
The chemical properties registered by the software are the major elements of oxide types such as MgO, Al2O3, SiO2, P2O5, K2O, CaO, TiO2, MnO, Fe2O3; major elements such as Al, Ca, Fe, Mg, P, Na, K, Mn, Ti; and heavy metals and other potentially toxic elements such as Rb, Si, Y, Ag, As, Ba, Be, Cd, Co, Cr, Cu, Mo, Ni, Pb, Se, V, Zn, Li, B, and Hg.
The indexes calculated from the concentrations of these elements are contamination factor, level of contamination, contaminate load, and geoaccumulation index (Cejudo-Ruíz et al; 2015), (Delgado, et al; 2015), (Ihl et al; 2015), (Sánchez-Duque et al; 2015).
The “Contamination Factor” index compares a background value with presumably contaminated samples. The background value can be an average value of world soils or a local value such as that of a subsurface horizon, the content of the element in the rock, or decile 1 of a population (Aguilera et al, 2021).
Where CF is the contamination factor; C m is the concentration of the potentially toxic element in the sample, and C mr is the concentration of reference for the potentially toxic element.
Where Cdeg is the level of contamination and CF represents the contamination factor of each element potentially analyzed.
Where ICC is the index of contaminate load; n represents the number of potentially toxic elements, and CF is the contamination factor.
Where Igeo is the geoaccumulation index; C n is the concentration of the chemical element in the soil; B n is the geochemical base of reference of the elements, and 1.5 is the constant that represents the fluctuations of the substance in the environment and the anthropogenic influence.
The “geoaccumulation index” index compares an element’s background value with the presumably contaminated samples. Still, it uses base 2 logarithms and a constant of 1.5 to account for variations in the background level (Aguilera et al, 2021).
2.4. MAGNETIC PROPERTIES AS A PROXY
The values of magnetic susceptibility at frequencies of 976 Hz, 3904 Hz, 15616 Hz (available with the Kappabridge MFK1-FA equipment), and at 465 Hz and 4650 Hz (Bartington MS2B operating frequencies) are designated as Kf1, Kf2, Kf3, Klf, Khf, respectively; NRM (Mass Normalized Natural Remanent Magnetization) in mAm2 kg-1; ARM (Anhysteretic Remanent Magnetization) obtained in an alternate field (AC) of 120 mT with a field of direct current (CD) of 100 μT, in units of Am-1; IRM (Isothermal Remanent Magnetization) obtained at ambient temperature and with magnetic field pulses of 1000 mT, 100 mT, 200 mT, 300 mT in units of A/m designated as IRM1000, IRM100, IRM200, IRM300 respectively; specific magnetic susceptibility at frequencies of 976 Hz, 3904 Hz, 15616 Hz, 465 Hz, 4650 Hz in μm3 kg-1 designated as χf1, χf2, χf3, χlf, χhf respectively; percentage of frequency-dependent susceptibility at frequencies Xdf1,2%, Xdf1,3%, Xdf2,3%, Xdlf,hf%; anhysteretic magnetic susceptibility Χarm; and S-100, S-200, S-300 ratios determined by the isothermal remanent magnetization obtained at ambient temperature and with inverse magnetic field of 100, 200, 300 mT respectively, divided by the residual isothermal magnetization obtained at 1000 mT; unitless parameters.
Curves of magnetic susceptibility versus temperature permit to identify the points of inflection in the curves during the process of heating, where the value of the function is equal to zero (Nanlohy et al, 2022).
Where θ is the temperature, and k is the volumetric magnetic susceptibility and the opening data.
Where θ is the temperature, and f’(k) is the value of the first derivative calculated in Equation 5.
3. Results
3.1. CAPTURE AND PROCESSING OF ENVIRONMENTAL MATRICES DATA
In the site’s graphic interface, it is seen the number of samples and information about geolocalization (countries, cities, and towns), along with soil usage, types of road pavement (or lack of it), and geology (Figure 2).
The environmental matrices module corresponds to the soil, dust, and plant samples. Each matrix shows different data; for example, in the case of urban dust, the quantity of dust per surface unit is registered, as are the types of surfaces on or near where the samples were collected, for example, those collected near cement sidewalks, paved streets, streets surfaced with cement, unpaved roads or those with paving stones or tiles (Bautista et al, 2011). It is essential to capture the quantity of dust from different surface areas because the contaminated load can be calculated, along with the amount of an element per square meter (Figure 3).
In the case of soils, the bulk density is registered, along with the coarse fragments and the soil usage in the area (gardening, parks, wooded areas, etc.). The bulk density and the percentage of coarse fragments are used to calculate the quantity of heavy metals per surface unit, which is relevant data in calculating the type of amendments per surface unit (Bautista et al, 2016; Bautista et al, 2017).
The environmental matrices (soils, dust, and plants) and the properties in the data blocks (oxides and heavy metals) are registered by season, allowing for monthly, seasonal, or yearly studies. The benefits of structuring the data in a relational model are a) to avoid data duplication, b) to improve referential integrity, and c) to improve data compression.
3.2. DATA BLOCKS AND GRAPHICS
The module referred to as “Data Blocks” works with the groups of data of the chemical and magnetic properties measured, such as the oxides MgO, Al2O3, SiO2, P2O5, K2O, CaO, TiO2, MnO, Fe2O3; the major elements such as Al, Ca, Fe, Mg, P, Na, K, Mn, Ti; the heavy metals, such as Rb, Si, Y; Ag, As, Ba, Be, Cd, Co, Cr, Cu, Mo, Ni, Pb, Se, V, Zn, Li, B, Hg; and the magnetic properties (Figure 4).
In this module, the index of contamination is automatically calculated, as is the index of the contaminate load, the contamination factor, the index of geoaccumulation, and the level of contamination. The option of converting the concentration units to quantity or contaminate load was included. In the case of magnetic properties, the conversion was done from the primary parameters to the calculated properties.
The “Graphics” module is divided into two submodules, “Geochemical” and “Magnetic properties”. The geochemical submodule analyses of variance can be done with the Kruskal-Wallis’s technique, given that the data for heavy metals does not produce a Gaussian Curve (Figure 5). This type of graphics permits the identification of a median, minimum, or maximum value, inferior or superior limit, first or third quartile, the interquartile range, atypical values, notches (that represent a level of reliability of an average of 95% when this is not overlaid), and values too remote from the average in the same graphic for each element.
The graphics generated in the “Magnetic Properties” module are magnetic susceptibility, normalized magnetic susceptibility, volumetric magnetic susceptibility, terrain curves versus residual isothermal magnetization, temperature curves versus volumetric magnetic susceptibility, and S ratios (Table 1).
Magnetic properties | Interpretation |
---|---|
Magnetic susceptibility | Global estimation of the concentration of ferrimagnetic, antiferromagnetic, paramagnetic, and diamagnetic minerals. The magnetic susceptibility measurement is non-destructive, and the value depends on the form and size of the magnetic grain, the concentration and interaction with other minerals, and temperature. |
Magnetic susceptibility dependent on the frequency | This is used to identify the presence of ferrimagnetic materials - superparamagnetic (SP), ultra-fine (<0.02 μm for magnetite, and <15 μm for hematite). |
Saturation isothermal remanent magnetization | This magnetization is left after subjecting a material to an external magnetic field of intensity, usually more than 1 Tesla, generally at ambient temperature. This gives an estimation of the presence of ferrimagnetic and antiferromagnetic grains. |
S-x ratio | This permit estimating the presence of minerals of high coercitivity (antiferromagnetic such as hematite) against materials of low coercitivity (ferrimagnetic such as magnetite). |
NRM, Natural Remanent Magnetization, before any treatment or field laboratory tests were applied and measured in A/m. | This aids in estimating the nature of the magnetization acquired in conditions such as the initial value of magnetization before the application of artificial magnetic fields in the laboratory. |
ARM, Magnetization acquired in the presence of alternate fields (AC) and a permanent magnetic field (DC). | This helps to determine the anhysteretic magnetic susceptibility. It also offers guidelines for the concentration of magnetic carriers and the nature of the interaction between the grains. |
IRM1000, Isothermal Remanent magnetization obtained at ambient temperature and with a magnetic field pulse of 1000 mT. | Magnetization is acquired by a sample after subjecting it to an external magnetic field of 1000 mT at ambient temperature. This helps to discriminate between the magnetic carriers and different coercitivities. |
IRM-100, Isothermal remanent magnetization obtained at ambient temperature with an inverse magnetic field pulse of 100 mT. | Aids in estimating the saturation level of the residual isothermal magnetization after subjecting a material to an inverse external field of 100 mT. |
IRM-200, Isothermal Remanent magnetization obtained at ambient | Aids in estimating the saturation level of the residual isothermal magnetization after subjecting a material to an external field of 200 mT. |
(Maher et al., 1986; Thompson and Oldfield, 1986; Bautista et al., 2014).
Other functions of the “Heavy Metals” software are: 1) generate graphics of threshold lines, linear regression, and straight-line equation; b) estimation of the values r and r2; c) identification of anomalous values; d) filtration of data by country, state, and city; e) tabular and graphic exportation; and f) function for estimating the values directly in the graphics.
For estimating magnetic coercivity and grain size in the “Heavy metals” software, it is necessary to trace the curve of magnetic susceptibility, dependent on the frequency versus the specific magnetic susceptibility of the frequency, by pairing the groups of parameters Xdf1, 2% versus Xf1; Xdf1, 3% versus Xf1; Xdf2, 3% versus Xf2; Xdflf, hf versus Xlf, and it is also possible to trace the magnetic susceptibility dependent on the frequency versus the volumetric magnetic susceptibility by pairing the groups of parameters Xdf1, 2% versus Kf1; Xdf1, 3% versus Kf1; Xdf2, 3% versus Kf2; Xdflf, hf% versus Klf. “The purpose of this graphic is to permit the detection of the presence of ferrimagnetic in ultra-fine grains of sizes (superparamagnetic) smaller than 0.02 µm” (Sánchez-Duque et al, 2015).
On the other hand, graphing in the “Heavy metals” software the isothermal remanent magnetization versus susceptibility at different frequencies allows to produce of a curve by pairing the groups of parameters Xf1 versus IRM1000; Xf2 versus IRM1000; Xf3 versus IRM1000; Xf3 versus IRM1000; Xlf versus IRM1000; Xhf versus IRM1000 (Figure 6).
Also, estimating the concentration of ferrimagnetic materials allows producing a curve of volumetric magnetic susceptibility versus isothermal remanent magnetization by pairing the groups of parameters Kf1 versus MRI1000; Kf2 versus MRI1000; Kf3 versus IRM1000; Klf versus IRM1000; Khf versus IRM1000. The curves of applied magnetic field versus isothermal remanent magnetization yield the curve of the applied magnetic field with groups of the series of data and correlate the magnetization value with the applied magnetic field for a set of defined groups (Figure 7). Temperature curves versus volumetric magnetic susceptibility yield the curve of gradual increase in temperature versus susceptibility, beginning with the ambient temperature and reaching up to 700 °C at a rate of 10 °C min-1, followed by cooling at the same rate. “The purpose of this graphic is to estimate the thermomagnetic stability and the type of the dominant magnetic mineral through the determination of Curie Temperature (Tc)” (Sánchez-Duque et al, 2015), as well as making it possible to identify the points of inflection in the curves with the calculation of the first and second derivatives defined in the Equations 5 and 6.
3.3. THE GEOGRAPHICAL LOCATION OF THE STUDY SITES
The “Map” module offers the visualization of the geographic localization of each sample site using Google Maps® and Google Earth®. The spatial ubication of sites can be exported as a *.kml file which can be processed in the geographic information system to undertake a spatial analysis (Figure 8). The graphical interface of the “Map” module permits to review of the environment of each sample site, giving information about the type of road pavement (or its lack), the proximity of governmental infrastructures (schools, government service offices, parks, etc.), and also the type of factories, businesses, etc.
S ratios of the heavy metals software allow constructing a curve of values grouped in the lines of roadways and areas that have been additionally engineered, such as natural green areas, agriculture areas, residential areas, areas of mixed-use, industrial sites, protected areas, and commercial areas, to differentiate antiferromagnetic minerals from ferrimagnetic minerals with the S-100, S-200, and S-300 ratios.
The “Heavy Metals” software and some (example) input files are available from the corresponding author on reasonable request.
4. Discussion and conclusions
The “Heavy Metals” software is unique in its category. There are software programs that are used to evaluate the agricultural capacity of soils (De la Rosa et al, 2004; Dubrovina and Bautista, 2014), and there are models of evaluation for environmental functions (Lehmann et al, 2008; Lehmann and Stahr, 2010; Bautista et al, 2017), and software has even been developed to evaluate the models (De la Rosa et al, 2004; Gallegos et al, 2014, 2016; Bautista et al, 2016; Bedolla et al, 2018). However, the software presented here to evaluate heavy metals in urban zones is the only one. There are no antecedents of evaluation models of the relation of heavy metals and urban dust and plants, much less any software to run them.
The “Heavy Metals” software could be improved in the areas of the index for screening heavy metals in soils (Bautista et al, 2017) and with the inclusion of evaluations throughout the soil profiles, which would necessitate the measurement of the coarse fragments and the bulk density (Bautista et al, 2016).
As to the architecture of the “Heavy Metals” software, it is worth mentioning that: it functions on any platform, be it Windows, Apple, Unix, or others; it is bilingual (Spanish and English), and it is user-friendly. The inclusion of magnetism as a proxy technique has made it very functional. Therefore, it would be helpful for those in charge of the environmental politics of a country with few such resources to aid in creating relevant and appropriate decisions and expenditures to correct environmental pollution issues. No computer program of this type exists in the software market worldwide, whether scientific or commercial.