1. Introduction
The increase in the planet’s temperature, attributed to the production of greenhouse gases, has increased the interest in improving industrialization practices and finding techniques that allow for mitigating CO
2 concentrations in the atmosphere [
1]. Mangroves can store more carbon per hectare, compared to tropical forests; they are also essential to maintain terrestrial and marine fauna [
2,
3,
4]. In addition, these mangrove coastal areas can retain pollutants such as heavy metals in the tributaries, as well as reduce the effects caused by strong waves, floods, and even cyclonic winds, thanks to the presence of abundant aerial biomass that manages to dissipate the energy coming from of the outside [
4,
5,
6,
7,
8,
9,
10,
11]. Despite the importance of mangrove areas, they are affected worldwide due to bad human practices through fishing, logging, and the construction of spaces for tourism, interventions that modify the concentrations of nutrients and the hydroperiod of the ecosystem [
12,
13].
We can find multiple studies that analyze the energy exchange in coastal areas, as well as the hydrological modifications they suffer due to the intervention of the human being [
14,
15,
16,
17]. Such studies allow us to understand the dynamics of these ecosystems, evidencing the significant contribution to the capture and fixation of CO
2 from the atmosphere through trees and sediment transport, monitoring the resources available to the ecosystem to analyze the productivity and efficiency in the transfer and dissipation of energy [
18].
Sensible heat flux (H), latent heat flux (LE), and ground heat flux (G) are the main ways in which the forest processes the radiation it receives from the sun. These energy flows condition the productivity of forests, which is why there are multiple strategies to determine them [
19]. The Eddy Covariance (EC) method is one of those used to determine flows, where variables such as CO
2/H
2O concentrations, wind speed, and direction are recorded, considering the exchange between the forest and the atmosphere due to the turbulent flow of the wind [
20]. This method requires the installation of sophisticated measurement equipment to record meteorological variables, which translates into a considerable initial investment. Therefore, many authors choose to estimate LE and H through simulations [
19]. Other methods used include remote sensing, the Penman–Monteith equation, the Shuttleworth and Wallace method, and artificial neural networks [
21,
22].
One of the main advantages of remote sensing lies in the ability to monitor large areas based on satellite images that are recorded for the treatment and identification of vegetation indices. However, the most direct way to measure evapotranspiration is related to the EC method [
23]. Multiple crops were analyzed by [
24] to determine evapotranspiration using remote sensing, obtaining a coefficient of determination R
2 of 0.74 when the data were compared with measurements obtained by Bowen’s relationship. In the case of [
25], an estimate of the evapotranspiration of a vineyard was made, obtaining an R
2 of 0.63 when comparing remote sensing with the EC methodology.
Artificial neural networks allow complex data processing, finding patterns between input and output variables, and allowing the prediction of behaviors of interest with much more accuracy than the aforementioned models [
19]. This method has been used by multiple authors to estimate LE and H in different ecosystems around the world, but it should be noted that the configuration of these networks is often based on trial and error [
26,
27,
28,
29,
30,
31,
32,
33].
If more specific parameters of the forest are known, such as the water conditions of the tree, respiration, and factors that intervene during the photosynthesis process, it is possible to use methods that can predict the exchange between the forest and the atmosphere, such as soil-plant-atmosphere-continuum (SPAC) [
34], where the flow of water in a non-steady state can be considered, to structure an analogy of electrical systems such as RC or RCL circuits such as those developed by [
35,
36,
37,
38,
39,
40,
41]. The work developed by [
42] considered a steady state flow; later [
43] questioned these assumptions because it is far from the reality of the process, recommending the use of non-steady states in the plants. Continuing the focus on trees, there is the work of [
44] where multiple allometric equations have been presented that attempt to estimate growth rates and carbon fixed in their biomass.
The objective of the study is to verify the effectiveness of artificial neural networks to predict LE, H, CO2 flux (FC), and the potential of water in the air in mangrove ecosystems (Black box model), as well as to propose a methodology to determine the parameters that arise when using an RC circuit to estimate climatic variables within the ecosystem through state space representation (Grey box model). Because there are values for the latent heat and the potential of water in the air, the use of the cohesion-tension model is proposed to estimate the value of the resistances of the system, referring to the species that coexist in the area. The hypothesis for the use of this model (grey box) is that it may be possible to know the hydrological properties of the trees that make up the forest, using the records of latent heat and water potential generated by sensors installed in the area.
4. Discussion
The correlation analysis carried out showed a weak relationship between the variables recorded and the resulting energy flows, where only the sensible heat flux obtained a significant relationship with the values of shortwave radiation, heat flux in the ground, sonic temperature, and the long wave ascending radiation. The analysis showed negative correlation values in long wave ascending radiation, sonic temperature, and heat flux in the ground when related to the relative humidity of the medium (−0.92, −0.90, and −0.81, respectively). Negative correlations tend to be a common behavior within the analysis of flows in ecosystems according to [
57], where the correlation that existed between the temperature at different points of the forest (soil, air) and the net exchange of the ecosystem was analyzed.
Similarly, the authors in [
58] carried out a correlation analysis between the CO
2 content in the soil and some measured variables such as pressure, air temperature, soil temperature, and friction speed. No significant correlation was observed between barometric pressure and the other variables recorded, but a correlation between friction speed and wind speed was observed (R = 0.74,
p < 0.001), comparable to the work performed in [
59], in addition to a correlation between sensible heat flux and net radiation.
Regarding the energy flow estimation, the study presented in [
60] made an approximation of the value of H in an arid zone, using the atmospheric similarity theory for the second moment of air temperature. The model results were compared with the calculations generated by the EC method, whose R
2 coefficient was 0.85. The study [
21] presented a record of LE comparisons at different points using a Bayesian model involving five algorithms: Moderate Resolution Imaging Spectroradiometer (MODIS), Penman–Monteith for remote sensing, Priestley Taylor based on LE, Modified Satellite-based Priestley Taylor (MS-PT), and Penman’s semi-empirical algorithm for LE, obtaining R
2 values greater than 0.7. In [
22], the Shuttleworth and Wallace (SW) model was used to determine the value of LE on a vineyard in the Maule region, Chile. This model consisted of combining two one-dimensional models regarding crop transpiration and soil evaporation. The results of the SW model were compared with the EC method, obtaining an R
2 coefficient of 0.77.
Some works where neural networks are used to determine energy flows are [
28] estimating FC (0.45 < R
2 < 0.72) and LE (0.51 < R
2 < 0.85) for six coniferous forests in Europe, while in [
29] the R
2 coefficient for FC was between 0.59 and 0.79, while for LE it was between 0.83 and 0.88 in a coniferous forest in the United States. The work of [
19] developed on a corn plantation was also analyzed, obtaining values for LE greater than 0.95 and for H greater than 0.80 concerning the coefficient of determination R
2.
The aforementioned models are analyzed, using the R2 coefficient to compare the effectiveness of some models used according to the literature, where it can be seen that neural networks as an estimation/prediction method turn out to be very effective. In this study, the estimates of LE (R2 > 0.91), H (R2 > 0.86), FC (R2 > 0.88) and (R2 > 0.88) represent a prediction that is fairly close to the real data.
The grey box model developed using the state space representation solution shows a low fit to the data calculated using the EC method, 12.45% and 20.52% for May and June, respectively. In contrast, the use of the cohesion-tension theory in other works requires the use of multiple equations, but its usefulness lies in the fact that the authors have the information regarding each of the variables considered (hydraulic conductances, specific conductivity of branches and leaves, potentials, among others) [
38,
42,
61,
62]. Overall, considering the results obtained, the consideration of the non-linear behavior, involving many other variables may help increase the effectiveness of the model.
The use of the grey box model to determine the variables that explained some phenomena was used by [
52] to represent the thermal dynamics that exist in buildings in humid and rainy climates. At least 10 different configurations were proposed for the RC Networks. The output of the model used in the investigation was the internal temperature of the enclosure, generating RMSE values of 0.3573 °C and 0.99 °C for each case presented, implying a good predictive capacity of the model. The use of RC networks for space conditioning systems has proven to be very efficient, adjusting satisfactorily to the real conditions of the phenomenon [
63,
64,
65]. However, the application to the behavior of trees would require further study regarding the structuring and selection of the variables that would explain the phenomenon, based on the results obtained within this investigation.
By mentioning the characteristic species of the study area, it was intended to be able to determine the coefficients related to storage and resistance to the flow of water, using the gray box model, whose results would be compared with existing data in the literature (A. germinans). Because the results generated by the gray box model for R, C, and G did not correspond to physical behavior, it was not possible to obtain the hydrological characteristics of the trees using the LE record of the tower as the input value.
5. Conclusions
This work proposed the use of two methods for the estimation of parameters that describe the behavior of the mangrove forest of the Bay of Panama, carrying out a bibliographic review of the models used, as well as the development of a methodology for the processing of meteorological data that would be used in the investigation.
In the development of a correlation analysis between the registered variables, the significance could be observed only with H and the heat flux in the soil. Within the period analyzed, the sensor that measures photosynthetic active radiation (PAR) was not available, which would have had a direct correlation with FC according to the literature analyzed.
The adequate treatment of the data used was fundamental to obtain accurate results because the applied methods needed to find patterns among the data during the training process, to later predict the behavior during the validation of the model. The data recorded by the tower may have erroneous measurements due to the presence of some external phenomenon that affects its calibration. Likewise, the behavior of the wind and the climatic conditions can influence the presence of noise in the recorded data, so processing is recommended before using them in such a model.
Depending on the model, we have the following conclusions:
Grey Box Model: The analogy of Ohm’s Law was applied to determine some characteristic parameters of the study area, such as hydraulic conductivity per tree (1/R) and water storage (C). The model used, as an input variable, the latent heat (LE) registered by the measurement tower, and by using the MATLAB software, the development of the equations in state space was obtained that would indicate the respective values for the resistances and capacitances existing in the model. Carrying out the respective runs for each month, it was not possible to obtain physical values that represented the behavior of the species, the system required more information to achieve the connection between the flows recorded by the tower and the conditions of the selected species. Nine behaviors were found and the one with the fewest variations was selected, and then validated with the days 11 May and 2 June. The model improved its ability to predict behavior, but the coefficient R2 obtained was still low (0.37 and 0.43).
Black Box Model: A black box model was applied and developed through the application of neural networks using the Deep Learning package of MATLAB software. The use of neural networks for the prediction of energy flows (LE, H, FC) was highly effective, obtaining R2 values greater than 0.86 in the runs carried out in January and September 2018.
As mangrove areas are lost to the development of poorly planned economic activities, the efficiency with which mangrove forests manage to fix and store one of the gases that contribute to the greenhouse effect begins to reduce. The modification of the hydroperiod in these areas could accelerate the process of emission of gases such as methane, considering that the areas are exposed to the open sky [
66]. From another perspective, maintaining and recovering these mangrove areas would represent direct support for the reduction of emissions in these areas, the main contribution of the research being the reinforcement of the process of obtaining data that allows showing the economic and environmental contribution of these areas for the generation and modification of government policies for the protection and rehabilitation of these ecosystems.