In this work, we present a Physics-Informed Neural Network (PINN) framework for the classification of oil palm fresh fruit bunch (FFB) ripeness using RGB images. Unlike conventional Convolutional Neural Networks (CNNs) that learn solely from visual patterns, the proposed PINN integrates a physics-based index—derived from the red-to-green pixel intensity ratio—directly into the network architecture and loss function. This hybrid design embeds wavelength-dependent physical knowledge related to chlorophyll degradation during ripening, enabling the model to learn more robust and generalizable features even with limited and imbalanced training data. The PINN model achieves a peak accuracy of 0.73, outperforming the purely data-driven CNN baseline (0.68) by a margin of 5%. Overall, the PINN demonstrates superior performance in minority-class detection and maintains stable convergence under three different lighting conditions (different light spectra). These results highlight the effectiveness of integrating domain-specific physical insights into deep learning models, offering a promising pathway toward reliable, non-destructive, and automated ripeness assessment for agricultural applications.
Ng et al. (Tue,) studied this question.