Saffron (Crocus sativus L.) is the most expensive spice in the world, known for its unique aroma and coloring in the food industry. Hence, its high price is frequently adulterated. In the current study, a variety of soft computing methods, including classifiers (i.e., RBF, MLP, KNN, SVM, SOM, and LVQ), were employed to classify four samples of fake saffron (dyed citrus blossom, safflower, dyed fibers, and mixed stigma with stamens) and three samples of genuine saffron (dried by different methods). RGB and spectral images (near-infrared and red bands) were captured from prepared samples for analysis. The amount of crocin, safranal, and picrocrocin were measured chemically to compare the images’ analysis results. The comparison results of the classifiers indicated that KNN could classify RGB and NIR images of samples in the training phase with 100% accuracy. However, KNN’s accuracy for different samples in the test phase was between 71.31% and 88.10%. The RBF neural network achieved the highest accuracy in training, test, and total phases. The accuracy of 99.52% and 94.74% was obtained using the features extracted from RGB and spectral images, respectively. So, soft computing models are helpful tools for detecting and classifying fake and genuine saffron based on RGB and spectral images.
Fungal decay is one of the most common diseases that affect postharvest operations and sales of citrus. Sometimes, fungal disease develops and spreads inside the fruit and in the advanced stages of the disease, it appears apparent, so the use of efficient and reliable methods for early detection of the disease is very important. In this study, early detection of citrus black rot disease caused by Alternaria genus fungus was examined using spectroscopy. Jaffa oranges were inoculated with Alternaria alternata. The samples were inspected by spectroscopy (200–1100 nm) in the 1st, 2nd, and 3rd weeks after inoculation. The classification of healthy and infected samples and selection of most important wavelengths were conducted by soft independent modeling of class analogy (SIMCA). The most important wavelengths in the detection of healthy and infected samples of the 1st week were 507, 933, 937, and 950 nm with a classification accuracy of 60%. The most important wavelengths of the 2nd week were 522 and 787 nm with a classification accuracy of 60%. Also, wavelengths of 546, 660, 691, and 839 were found to be effective in the 3rd week with a classification accuracy of 100%.