Soil Sensor Dataset for Soil Quality Assessment and Classification
Description
This dataset was prepared to support research on soil quality assessment and classification using soil sensor measurements. It originally contains 10,584 observations, including soil temperature, moisture, electrical conductivity (EC), pH, nitrogen (N), phosphorus (P), potassium (K), and related information about the measurements. Before analysis, the data were processed to improve their quality and reliability. This involved checking for duplicate records, identifying faulty sensor readings, removing physically impossible values, and detecting extreme outliers. The repository includes the dataset, variable descriptions, and Python notebooks so that researchers can understand and reproduce the processing and analysis steps. The dataset is used for three classification tasks. The first focuses on Soil Quality Index (SQI) classification using weights derived from Principal Component Analysis (PCA). The second groups soil samples into different pH classes, while the third evaluates soil conditions based on temperature and pH. The main purpose of sharing this dataset is to make the soil measurements and related analysis accessible for further research. It may also be useful for studying soil properties, comparing classification approaches, and developing machine learning models for soil quality assessment. The accompanying documentation explains the dataset structure, preprocessing methods, and classification procedures, along with important methodological limitations that should be considered when interpreting the results.
Files
Steps to reproduce
The repository contains the original soil sensor dataset, a processed dataset, a variable dictionary, and Python notebooks covering data cleaning, Soil Quality Index (SQI) calculation, and soil classification. To reproduce the analysis, begin with Raw_Soil_Dataset.xlsx and run the notebooks in numerical order using Jupyter Notebook or Google Colab. 1. **Data cleaning:** Run 01_Data_Cleaning.ipynb to examine duplicate records, identify zero-valued sensor faults, check physically invalid measurements, and apply the outlier detection procedure. The notebook also provides information about excluded observations. 2. **SQI calculation:** Run 02_SQI_PCA.ipynb to normalize the selected soil properties, perform Principal Component Analysis (PCA), calculate the corresponding weights, and generate SQI values and classes. 3. **Soil classification:** Run 03_PH_and_Temperature_Classification.ipynb to classify soil samples according to their pH values and assign soil condition classes using the combined temperature and pH rules. 4. **Machine learning experiments:** Run 04_Baseline_Model_Experiments.ipynb to explore baseline classification methods using the prepared soil data. The Variable_Dictionary.xlsx file explains the variables, units, and related information. The README.txt file provides further guidance, while requirements.txt lists the Python dependencies. The processed Soil_Dataset.xlsx file is included for reference. Researchers should review the documented preprocessing decisions and SQI scoring assumptions before using the derived classifications for scientific interpretation.
Institutions
- University of Asia PacificDhaka Division, Dhaka