PurposeIn cultivation, early harvest offers farmers an opportunity to increase production while decreasing the chances of lower crop production rates, ensuring that the economy remains balanced. The significant reason is to predict the disease in plants and distinguish the type of syndrome with the help of segmentation and random forest optimization classification. In this investigation, the accurate prior phase of crop imagery has been collected from different datasets like cropscience, yesmodes and nelsonwisc . In the current study, the real-time earlier state of crop images has been gathered from numerous data sources similar to crop_science, yes_modes, nelson_wisc dataset.Design/methodology/approachIn this research work, random forest machine learning-based persuasive plants healthcare computing is provided. If proper ecological care is not applied to early harvesting, it can cause diseases in plants, decrease the cropping rate and less production. Until now different methods have been developed for crop analysis at an earlier stage, but it is necessary to implement methods to advanced techniques. So, the detection of plant diseases with the help of threshold segmentation and random forest classification has been involved in this investigation. This implemented design is verified on Python 3.7.8 software for simulation analysis.FindingsIn this work, different methods are developed for crops at an earlier stage, but more methods are needed to implement methods with prior stage crop harvesting. Because of this, a disease-finding system has been implemented. The methodologies like “Threshold segmentation” and RFO classifier lends 97.8% identification precision with 99.3% real optimistic rate, and 59.823 peak signal-to-noise (PSNR), 0.99894 structure similarity index (SSIM), 0.00812 machine squared error (MSE) values are attained.Originality/valueThe implemented machine learning design is outperformance methodology, and they are proving good application detection rate.