Hybrid CNN-LSTM Model with Custom Activation and Loss Functions for Predicting Fan Actuator States in Smart Greenhouses
Smart greenhouses rely on precise environmental control to optimize crop yields and resource efficiency. In this study, we propose a novel hybrid Convolutional Neural Network (CNN) and Long Short-Term Memory (LSTM) architecture to predict fan actuator states based on environmental data. The hybrid m...
Saved in:
| Main Authors: | , , , |
|---|---|
| Format: | Article |
| Language: | English |
| Published: |
MDPI AG
2025-04-01
|
| Series: | AgriEngineering |
| Subjects: | |
| Online Access: | https://www.mdpi.com/2624-7402/7/4/118 |
| Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
| Summary: | Smart greenhouses rely on precise environmental control to optimize crop yields and resource efficiency. In this study, we propose a novel hybrid Convolutional Neural Network (CNN) and Long Short-Term Memory (LSTM) architecture to predict fan actuator states based on environmental data. The hybrid model integrates CNNs for spatial feature extraction and LSTMs for temporal dependency modeling, enhanced by a custom activation function and loss function tailored for the problem’s characteristics. The model was trained and evaluated on a comprehensive dataset containing 37,923 samples with 13 environmental features, collected from a smart greenhouse. Experimental results demonstrate the superior performance of the hybrid CNN-LSTM model, achieving an accuracy of 0.9992, precision of 0.9989, recall of 0.9996, and an F1 score of 0.9992, significantly outperforming traditional machine learning methods such as Random Forest and Gradient Boosting, as well as standalone CNN and LSTM architectures. The high recall underscores the model’s reliability in identifying positive actuator states, critical for greenhouse management. This study highlights the importance of hybrid architectures in handling complex spatiotemporal data, offering potential applications beyond greenhouses, such as healthcare monitoring and predictive maintenance. Despite the model’s strengths, limitations include computational complexity and limited interpretability, necessitating future work on optimization and explainability. These findings establish a foundation for integrating deep learning into smart agricultural systems, advancing the automation and efficiency of environmental control mechanisms. |
|---|---|
| ISSN: | 2624-7402 |