Optimal Lighting Control in Greenhouses Using Bayesian Neural Networks for Sunlight Prediction

Shirin Afzali, Yajie Bao, Marc W. van Iersel, Javad Mohammadpour Velni

Abstract

Supplemental lighting is a critical component of Controlled Environment Agriculture (CEA), yet it represents a significant portion of operational expenses. This paper presents a novel lighting control system that integrates Bayesian Neural Networks (BNNs) with a constrained optimization framework. By predicting solar irradiance with high precision and accounting for the non-linear photosynthetic needs of plants, the system optimizes LED usage against variable electricity pricing. Experimental results using historical meteorological data demonstrate that this approach can reduce electricity costs by approximately 44% compared to standard heuristic methods while maintaining optimal plant growth conditions.

Introduction

In the realm of Controlled Environment Agriculture, supplemental lighting is a double-edged sword. While it is essential for maintaining consistent crop yields and quality regardless of external weather conditions, the electricity required to power high-intensity LED arrays can account for up to 30% of a greenhouse's total operating costs.

The primary challenge in managing these costs is the inherent unpredictability of solar radiation. To grow efficiently, plants require a specific "dose" of light over a 24-hour period, traditionally measured as the Daily Light Integral (DLI). Growers face a constant dilemma: providing too much supplemental light early in the day risks wasting energy if the afternoon becomes sunny, while providing too little risks under-stimulating the crop if it remains cloudy. Existing control methods often rely on simple rule-based triggers or Markov models, which frequently fail to capture the complex, non-linear patterns of weather and the biological saturation points of photosynthesis.

Methodology

Bayesian Neural Networks for Sunlight Prediction

The authors propose a two-step solution centered on a Bayesian Neural Network (BNN). Unlike standard neural networks that assign fixed values to weights, a BNN assigns probability distributions. This allows the model to quantify uncertainty, providing a more resilient prediction than "memoryless" traditional models like Markov chains. The BNN is trained using Variational Inference, taking the time of day and current solar irradiance as inputs to forecast future sunlight levels.

From DLI to DPI: A Biological Shift

A significant innovation in this research is the shift from the standard Daily Light Integral (DLI) to the Daily Photochemical Integral (DPI). Because plant photosynthesis does not increase linearly with light—eventually reaching a saturation point—DLI can be a misleading metric. DPI tracks the actual rate of electron transport in photosynthesis, providing a more accurate reflection of the light a plant can actually utilize for growth.

Constrained Optimization

The system integrates these BNN predictions into a cost-optimization framework. The controller recalculates the optimal light intensity for the LEDs every 15 minutes, solving a problem that minimizes electricity costs based on:

  • Predicted sunlight levels and associated uncertainty.
  • Real-time variable electricity pricing.
  • The specific biological requirements of the crop (target DPI).

This allows the system to "pre-load" light when electricity is cheap or "hold off" if it expects a burst of free sunlight later in the day.

Experimental Setup and Datasets

The researchers utilized a robust historical dataset from the National Renewable Energy Laboratory (NREL) database, specifically focusing on Elizabeth City, North Carolina.

  • Training Data: 12 years of solar data (1997–2008).
  • Testing Data: 4 years of solar data (2009–2012).
  • Seasonal Tuning: Recognizing that light patterns change drastically between seasons, the authors trained separate models for each month to ensure high seasonal accuracy.

Key Results

The BNN-based approach demonstrated superior performance in both predictive accuracy and economic efficiency.

Prediction Accuracy

The BNN achieved an $R^2$ of 0.9971 and a Root Mean Square Error (RMSE) of only 1.8% when tested against historical data. This high level of precision allows the optimization framework to make decisions with a high degree of confidence.

Economic Impact

In comparative simulations, the BNN-driven controller significantly outperformed existing standards:

  • Vs. Heuristic Methods: Compared to providing a fixed amount of light, the BNN approach reduced costs by an average of 43.91%.
  • Vs. Markov Models: It saved an additional 2.27% on average compared to Markov-based prediction models, with even higher savings during months characterized by volatile weather.
  • Near-Perfect Performance: The BNN method performed nearly identically to a theoretical "baseline" model with perfect foresight of future weather, suggesting it has reached a near-optimal threshold for real-world application.

Discussion and Future Work

While the results are promising, the study identifies several avenues for further refinement. Currently, the model is optimized for 'Green Towers' lettuce; different crops with different light saturation points would require recalibrating the DPI parameters. Furthermore, while the simulation using historical NREL data is robust, moving to a live greenhouse environment will require the system to handle sensor noise and extreme, unpredicted weather events.

Future iterations of the model could incorporate broader meteorological inputs, such as cloud cover forecasts and humidity levels, to further refine the BNN’s predictive capabilities. Nonetheless, this research provides a powerful framework for reducing the carbon footprint and operational costs of indoor farming through intelligent, uncertainty-aware control.

Summary updated

BibTeX
@inproceedings{afzali2022optimal,
  author = {Shirin Afzali and Yajie Bao and Marc W. van Iersel and Javad Mohammadpour Velni},
  title = {{Optimal Lighting Control in Greenhouses Using Bayesian Neural Networks for Sunlight Prediction}},
  booktitle = {ECC},
  year = {2022},
  doi = {10.23919/ecc55457.2022.9838124},
}
Figure