Local vegetable production is susceptible to various fungal pathogens, the most common and lethal of which are Fusarium commune and Rhizoctonia solani. Early detection of these pathogens is challenging, and by the time visual symptoms appear, the pathogens may have already spread extensively, causing massive damage to the production. In this study, we explored the use of hyperspectral data for early detection of diseases caused by F. commune or R. solani in bok choy Brassica rapa subsp. chinensis by collecting hyperspectral data from healthy plants and plants inoculated with either fungal pathogen in a controlled experimental set-up. Based on the collected data, we employed various tree-based, distribution-based, geometric, neural networks and ensemble learning algorithms to train detection models. Among the trained models, Multi-Layer Perceptron (MLP) models performed the best with overall accuracy reaching 95.9 ± 0.26%. MLP models could differentiate between healthy and infected plants with 99% precision after 1 day of infection, and distinguish between different fungal pathogens with 99% precision after 2 days. During this period, no visible symptoms of fungal infection could be observed. Further analysis into trained MLP models and general reflectance profiles of plants also revealed a high correlation of the spectral regions 445-460, 560-595, 606-620 and 719-728 nm with fungal infection in bok choy plants. Our findings highlight the potential of hyperspectral imaging as a highly precise early detection tool for fungal diseases in plants. © 2024 Society of Chemical Industry.