## 4 Materials and Methods  
For a preliminary validation of the proposed architecture, a climate dataset was collected containing the following data observed during the period of 2003-2019 in the municipalities of Teziutlan, Tlatlauquitepec, Hueyapan, Hueytamalco, Yaonahuac, Acateno, Atempan, Teteles de Avila Castillo, Zaragoza, Chignautla, Ayotoxco de Guerrero, Zacapaoxtala, Cuetzalan de Progreso of the northeast region of the Mexican State of Puebla:  
* Monthly average temperatures;
* Days with hail events per month;
* Days with fog occurrence per month;
* Days with storm activity per month;
* Total monthly rainfall.  
Similarly, a crop yield dataset was collected that contains the following data observed during the same period in the same municipalities of the Mexican State of Puebla for both corn crops:  
* Hectares planted with corn;
* Hectares harvested for corn;
* Production volumes (in tons) of the harvested areas of corn.  
Figure 4 shows a map of the previously mentioned municipalities of the Mexican State of Puebla.  
These datasets were manually collected from the website of Mexico's National Water Commission ([[https://smn.conagua.gob.mx/es/informacion-climatologica-por-estado?estado=pue](https://smn.conagua.gob.mx/es/informacion-climatologica-por-estado?estado=pue)]([https://smn.conagua.gob.mx/es/informacion-climatologica-por-estado?estado=pue](https://smn.conagua.gob.mx/es/informacion-climatologica-por-estado?estado=pue)) (accessed on 7 December 2021)) and the website of Mexico's Agri-food Information Service ([[http://infosiap.siap.gob.mx/gobmx/datosAbiertos.php](http://infosiap.siap.gob.mx/gobmx/datosAbiertos.php)]([http://infosiap.siap.gob.mx/gobmx/datosAbiertos.php](http://infosiap.siap.gob.mx/gobmx/datosAbiertos.php)) (accessed on 7 December 2021)), respectively. The latter publishes annualized data on agricultural production at national, state and municipal levels as open data available in the form of spreadsheet files, whereas the former publishes a variety of data collected by the country's weather stations as annualized data by state in plain text format.  
Table 2 summarizes the locations of the weather stations of the northeast region of the Mexican State of Puebla used as sources of climate data in this study.  
\begin{table}
\begin{tabular}{c c c} \hline
**Weather Station Name** & **Municipality** & **Location** \\ \hline \multirow{3}{*}{\"Teziutlan”} & \multirow{3}{*}{Teziutlan} & Latitude: 19°49′49′′ N. Longitude: 097°21′00′′ W. Altitude: 1818.0 MASL \\  & & Latitude: 19°42′51′′ N. Longitude: 097°32′51′′ W. Altitude: 2670.0 MASL \\  & & Latitude: 19°59′14′′ N. Longitude: 097°17′4′′ W. Altitude: 2422.0 MASL \\  & & Latitude: 20°08′24′′ N. Longitude: 097°12′04′′ W. Altitude: 144.0 MASL \\  & & Latitude: 19°47′10′′ N. \\  & & Latitude: 19°47′10′′ N. Longitude: 097°33′10′′ W. Altitude: 2493.0 MASL \\  & & Latitude: 19°40′45′′ N. Longitude: 097°24′22′′ W. Altitude: 2862.0 MASL \\  & & Latitude: 20°05′43′′ N. Longitude: 097°25′43′′ W. Altitude: 237.0 MASL \\  & & Latitude: 19°52′18′′ N. Longitude: 097°35′18′′ W. Altitude: 188.0 MASL \\  & & Latitude: 20°02′20′′ N. Longitude: 097°31′20′′ W. Altitude: 756.0 MASL \\ \hline \end{tabular}
\end{table}
Table 2: Weather stations.  
Figure 4: Selected municipalities of the Mexican State of Puebla.  
As shown in Table 2, for most of the municipalities of our interest (9 out of 13), there is one local weather station providing data for the period of reference (2003-2019), which we used as the climate data source in this study.  
Moreover, Table 3 summarizes the number of instances, features and missing values in each dataset. Notice that these statistics correspond to the unprocessed datasets. Details of handling missing data and reducing features (selecting features) are given in the following subsections.  
The following section describes the variables included in the second dataset.