This study develops a hybrid machine learning (ML) algorithm integrated with IoT technology to improve the accuracy and efficiency of soil monitoring and tomato crop disease prediction in Anakapalle, a south Indian station. An IoT device collected one-minute and critical soil parameters-humidity, temperature, pH values, nitrogen (N), phosphorus (P), and potassium (K), during the vegetative growth stage, which are essential for assessing soil health and optimizing crop growth. Kendall's correlations were computed to rank these parameters for utilization in hybrid ML techniques. Various ML algorithms including K-nearest neighbors (KNN), support vector machines (SVM), decision tree (DT), random forest (RF), and logistic regression (LR) were evaluated. A novel hybrid algorithm, 'Bayesian optimization with KNN', was introduced to combine multiple ML techniques and enhance predictive performance. The hybrid algorithm demonstrated superior results with 95% accuracy, precision, and recall, and an F1 score of 94%, while individual ML algorithms achieved varying results: KNN (80% accuracy), SVM (82%), DT (77%), RF (80%), and LR (81%) with differing precision, recall, and F1 scores. This hybrid ML approach proved highly effective in predicting tomato crop diseases in natural environments, underscoring the synergistic benefits of IoT and advanced ML techniques in optimizing agricultural practices.
Read full abstract