A reconfigurable edge IoT framework for machine learning-based precision agriculture

Published: 1 November 2026| Version 1 | DOI: 10.17632/tp7jzsyjc7.1
Contributor:
Antonio García Moraga

Description

This dataset accompanies the research article “A reconfigurable edge IoT framework for machine learning-based precision agriculture”. It provides processed agricultural monitoring data, Python notebooks, trained machine learning models, and supporting scripts for soil moisture forecasting and trunk-response classification in precision agriculture. The Datasets folder contains five CSV files. dataset_master_hourly.csv provides hourly agricultural and environmental measurements from the reference monitoring site. dataset_learning_19h.csv and dataset_learning_24h.csv contain aggregated features and classification labels for the Random Forest experiments. VG2_hourly.csv and VG4_hourly.csv contain hourly monitoring data from two additional agricultural sites used to train and evaluate site-specific LSTM models. The Notebooks folder contains three Jupyter notebooks covering input feature selection, LSTM-based soil moisture forecasting, and Random Forest classification. The Models folder provides selected trained LSTM and Random Forest models, together with their associated preprocessing parameters and scalers. The Scripts folder contains a Python script for evaluating the selected LSTM models against recorded reference metrics. A requirements.txt file specifies the Python dependencies and versions used to verify the experiments. These materials support the reproducibility of the machine learning workflows presented in the article, including feature selection, model training, prediction, and performance evaluation across agricultural monitoring sites. The repository focuses on the machine learning components.

Files

Steps to reproduce

1. Download the complete dataset repository, preserving the original folder structure: data/, models/, notebooks/, reference_results/, and scripts/. 2. Install Python 3.12 and create a virtual environment. Install the required dependencies using: pip install -r requirements.txt Install JupyterLab if it is not already available. 3. Consult README.md for the complete execution instructions, DATA_DESCRIPTION.md for the dataset variables and experimental partitions, and PROVENANCE.md for model selection, training details, and reference results. 4. Execute 01_LSTM_input_feature_selection.ipynb to reproduce the input feature analysis and selection procedures. 5. Execute 02_LSTM_soil_moisture_forecasting.ipynb to evaluate the LSTM forecasting workflow for the VG2 and VG4 monitoring sites. Use SMOKE mode for a preliminary verification or FULL mode to repeat the complete training experiments. 6. Execute 03_RF_trunk_response_classification.ipynb to reproduce the Random Forest feature selection, classification, and LSTM–RF simulation experiments. The notebook supports evaluation using the provided pretrained classifier. 7. Run the LSTM evaluation script in scripts/ to evaluate the selected pretrained LSTM models and compare their predictions with the recorded reference metrics. The repository includes trained models and associated scalers to facilitate inference without repeating computationally intensive training procedures. Some reference-tree results are provided through pretrained models and recorded experimental metrics rather than regenerated by the LSTM training notebook. The notebooks and scripts require the input file paths to match the downloaded folder structure. Hardware implementation and FPGA synthesis are outside the scope of this repository.

Categories

Computer Science, Engineering, Precision Agriculture, Agricultural Irrigation, IoT Application

Licence