Abstract
Accurate classification of date palm (Phoenix dactylifera L.) fruit variety, ripeness stage, and geometric characteristics is essential for postharvest sorting and quality control, yet conventional manual assessment remains labour-intensive and subjective. This study aimed to apply artificial intelligence, specifically convolutional neural networks combined with image analysis, to develop an automated method for classifying date palm fruits and evaluating their maturity stage and geometric characteristics. A convolutional neural network model, designated DateNET2, was developed and trained on digital images of four date palm cultivars, i.e., Deglet Nour, Ghars, Tenicin, and Tantboucht, each captured at four developmental stages (Beleh, Khelal, Mnagar, and Tamer). The cultivars exhibited marked morphological variation, ranging from elongated fruit shape in Deglet Nour to near-spherical fruit shape in Tantboucht. Classification performance was assessed separately for colour-based, geometry-based, and combined colour-geometry criteria, with accuracy and processing time recorded for each cultivar and maturity stage. The DateNET2 model achieved a mean classification accuracy of 93.20%. Cultivar-specific accuracy ranged from 96.00% for Tenicin (highest) to 91.20% for Tantboucht (lowest). For variety classification alone, error rates ranged from 0.80% (Tenicin, lowest) to 2.40% (Ghars, highest); for maturity-stage classification alone, error rates ranged from 1.60% (Tenicin, lowest) to 4.00% (Ghars, highest). Mean classification time was 20.12 ms/image for colour-based criteria, 24.31 ms/image for geometry-based criteria, and 28.66 ms/image for combined colour-geometry criteria. DateNET2 provides a rapid and reliable tool for the automated classification of date palm fruit variety and ripeness stage, with an overall accuracy of 93.20%, supporting its practical applicability for date palm fruit producers and postharvest processing operations.
1. Introduction
The date palm (Phoenix dactylifera L.) belongs to the Arecaceae family and is a monocotyledonous plant. It is cultivated in various parts of the world, including North Africa, the Arabian Peninsula, the Middle East, North America, Australia, Asia and Europe [1]. Initially, due to its rich chemical composition and high content of health-promoting compounds, it was used as a medicinal plant, possessing antioxidant, alkaloids, essential minerals such as potassium, calcium, magnesium, phosphorus, iron and zinc [2,3,4,5,6,7,8,9,10,11,12].
Accurate identification, sorting and classification, as well as the precise and rapid assessment of the ripeness and quality of date palm fruit, are of great importance for the continuity of production, the sourcing of raw material and its safe processing. A decline in the quality and nutritional value of date palm fruit may pose a risk to both humans and animals as a result of the formation of harmful compounds. In practice, manual labour is used for the classification, quality assessment and sorting of date palm fruit. Consequently, this is a cumbersome, labour-intensive and time-consuming process, based on morphological criteria such as colour, size, surface texture, and damage or infestation by diseases and pests in individual fruits [13,14,15], chemical analyses [16], molecular markers [17], random amplified polymorphic DNA (RAP) [18] and simple sequence repeats (SSR) [19,20], protein electrophoresis [21], liquid chromatography [22,23], and spectral analysis [24,25].
The limitations, time-consuming nature, labour-intensive nature and high cost of the methods mentioned above provided the impetus to begin work on developing new techniques based on computer image analysis, 3D modelling, and machine learning algorithms and artificial intelligence, with the aim of automating and streamlining the process of assessing the ripeness, quality, classification and sorting of date palm fruit [26,27,28,29,30,31].
At present, various methods based on artificial intelligence (AI), deep neural networks (DNNs) and convolutional neural networks (CNNs) are developing at an extremely rapid pace. CNNs belong to a specific category of deep learning models, as they enable the detection of spatial and textural patterns within the image being analysed. The CNN architecture is based on convolutional layers and pooling layers, which enable it to extract relevant information from complex images and learn to predict a given target variable, which in turn allows for the automatic extraction of image features.
These advantages make CNNs an excellent tool for solving complex tasks involving multiple levels and multiple criteria. CNNs are currently used for person recognition and facial detection [32,33], as well as for human speech recognition and sign language translation [34,35], text translation [36], the generation and detection of sound waves [37] and, finally, image analysis and object identification [38,39].
CNN and computer vision are increasingly being used in agricultural production, for example for the vital task of monitoring field crops [40], and above all for the identification and classification of weeds [41,42,43], diseases [44,45,46] and pest infestations in crops [47,48,49]. AI models are currently extremely useful for monitoring climate change in relation to agricultural production [50], assessing the ripeness of fruit [51], and classifying agricultural produce [52].
Currently, technologies based on AI (SVM, k-NN, decision trees, CNN), near-infrared (NIR) spectroscopy and hyperspectral image analysis are among the key tools used to assess the quality of fruit, vegetables, seeds and grains, enabling the automatic, rapid and, crucially, non-invasive determination of their degree of ripeness, damage, disease infestation and contamination by other crop species or weeds. Wang et al. [53] proposed the YOLO-Pepper model, designed for detecting pepper diseases and pests, overcoming three key challenges: small-object recognition, multi-scale feature extraction, and real-time processing requirements. Keling et al. [54] developed an approach for sorting and classifying pepper seeds, whilst Kong et al. [55] devised a method for automatically measuring the thickness of rice grains. Li et al. [56], for their part, presented a solution based on deep neural networks that enables the number of seeds in a soya pod to be estimated. In contrast, the study by Rybacki et al. [57] utilised machine learning algorithms, image analysis techniques and CNNs for qualitative classification, maturity assessment and the identification of damage to rapeseed seeds.
A large group of researchers is also conducting intensive research into the automation of date palm fruit classification, which can be divided into three groups: variety classification [58,59], assessment of their ripeness level [60] and quality classification [61]. However, most studies focus on the latter group, in which the primary assessment criteria are: fruit moisture content, sugar content, firmness, surface damage of mechanical origin or caused by pests [62], and disease infestation [63]. Hessane et al. [64], on the other hand, proposed and statistically evaluated the Guided Weighted Soft Voting (CG-WSV) ensemble heuristic and deep learning models for diagnosing nutrient deficiencies in date palm plantations. In their research, AlRaeesi and El-Khazali [65] used the YOLOv5 and YOLOv8 models to detect date palm inflorescences and apply a preparation containing pollen. Ouhda et al. [66], on the other hand, used the YOLOv5 and YOLOv8 deep neural network models, along with K-means clustering and colour analysis, to automate the date palm fruit harvesting process, with the aim of reducing losses.
A thorough and extensive literature review led the authors to develop a convolutional neural network (CNN) architecture, the application of which would enable precise varietal classification of date palm fruit and assessment of their degree of ripeness, thereby allowing automatic determination of their developmental stages. Such precise identification of the developmental stages of individual date palm fruits will enable more effective protection against diseases and pests and allow for the automation of fruit harvesting, which will undoubtedly have a positive impact on growers’ profitability.
This study’s main objective was the development of a CNN architecture and to design an algorithm, in the form of programme code, for classifying date palm fruit varieties. In addition, the model developed will enable automatic qualitative classification based on the fruit’s degree of ripeness, which determines its specific stage of development. The main criteria for classifying date palm fruit will be their colour, texture and geometric characteristics. The distinctive feature and innovation of the proposed model is its ability to identify the shape as well as small and ambiguous texture patches of date palm fruits.
2. Materials and Methods
2.1. Dataset Preparation
The empirical material used to develop the CNN model and the code automating the classification process comprised photos of four varieties of date palm fruit in the Tamer development stage from the south-eastern region of Algeria (Figure 1).
Figure 1.
Imaged date palm fruits at the Tamer (fully ripe) developmental stage of the cultivars: (a) Deglet Nour, (b) Ghars, (c) Tenicin, (d) Tantboucht.
The following date varieties were examined: Deglet Nour, Ghars, Tenicin and Tantboucht at four stages of development: Beleh, Khelal, Mnagar and Tamer; their detailed characteristics are set out in Table 1. Fruit colour and shape varied considerably among the analysed varieties, ranging from the light-coloured, elongated Deglet Nour to the dark Tenicin and the nearly spherical Tantboucht. Deglet Nour also had the largest fruits overall, with the highest average length (47.20 ± 0.11 mm) and weight (9.92 ± 0.44 g), whilst Tantboucht produced the shortest fruits (25.80 ± 0.08 mm) and Tenicin the lightest (7.45 ± 0.79 g).
Table 1.
Morphological characteristics of date palm fruit varieties.
Stage assignment in this study was based on standard morphological criteria widely used in the date palm literature, primarily colour and texture, consistent with recognised ripening classifications. Beleh—intermediate stage, colour transitioning from green to yellow/red/brown depending on variety, with initial softening; Khelal—full fruit size, firm/crisp texture, distinct variety-dependent colour, high moisture and astringency; Mnagar—fruit softening, colour darkening toward brown/black, corresponding to the precipitation of tannins and reduced astringency; Tamer—fully mature stage, concentrated sugar content, denser and less crisp texture.
When analysing the geometric shape of date palm fruits and classifying their varieties using machine learning and CNN methods, fruit surface smoothness is a particularly important parameter. At the Tamer development stage, the smoothest fruit surface was observed in Tantboucht, whilst Ghars exhibited the least smooth surface. A total of 125 photographs of individual dates were taken for each variety imaged, with each photograph labelled; for the four varieties, this resulted in a total of 500 numbered images occupying 163 MB of storage space. Photographs of date palm fruit were captured using a digital camera with a resolution of 4288 × 3216 (14 million) pixels and a 1/2.3-inch sensor. The camera was equipped with a lens featuring a 36x optical zoom and a minimum focal length of 24 mm, which corresponded to its widest aperture of 1:2,9. Each photograph of date palm fruit was labelled with a variety symbol and a sequential number, i.e., Deglet Nour: DN001–DN125, Ghars: GH001–GH125, Tenicin: TE001–TE125, Tantboucht: TA001–TA125. The sequential number increased in line with the fruit’s stage of ripeness, ranging from 001 for the Beleh developmental stage to 125 for the Tamer stage.
2.2. Dataset Preprocessing
During the first stage of the analysis, the pathlib library in the Python programming language generated a list of the names of the date palm fruit images, which constituted the input data library for the classification model under development (Figure 2). Preliminary image processing, carried out in accordance with code 1 available at https://github.com/piotrrybacki/date-palm-CNN2.git (accessed on 20 November 2026), also determined their size, after which they were loaded into NumPy arrays as 8-bit fixed-point numbers, taking values in the range <0–255>. In addition, the tf.io and tf.image modules from the TensorFlow 2.0 library were used for the preliminary processing of date palm fruit images. It was assumed that the tf.io module allows data to be read from, written to and retrieved from the file system, whilst the tf.image module is used to resize images and decode raw content.
Figure 2.
Visualisation of the analysed images of date palm fruits.
Given the relatively small dataset, cross-validation (F-fold) was used to divide the images within each variety. The basis of this type of approach is that a test set is randomly sampled (approx. 15–20% of the images), and, rather than dividing the remaining images rigidly into a training set and a validation set, a k-fold split is used, as shown in Figure 3 [67]. In this study, 25 images were randomly selected for each variety as a test set, and the remaining 100 images were cross-validated using two approaches, namely: k = 5 (folds of 20) and k = 10 (folds of 10). In total, across all varieties, this resulted in 100 images in the test set and 400 images in the training and validation sets. Cross-validation in the first approach generated 20 training sets (400 images) and 5 validation sets (100 images) for each variety. In the second approach, cross-validation of the images generated 90 training sets (900 images) and 10 validation sets (100 images) for each variety. Using the same number of validation samples allows for a fair comparison of different data preparation methods.
Figure 3.
Diagram of k-fold cross-validation of the date palm fruit image database.
2.3. Image Preprocessing
A digital photograph is a two-dimensional set of data, stored in the form of a discrete, finite matrix of numbers. Put simply, a digital photograph can be described as a function f(x, y), where (x, y) are spatial coordinates and f(x, y) denotes the colour, contrast, or brightness value at that point. The simplest form is a binary image, in which each pixel takes on only one of two values, usually 0 (black) or 1 (white). It contains no intermediate states or shades of grey, which are found in monochrome images [68]. A monochrome image is a single-channel image in which each pixel is assigned a single numerical value representing the intensity (brightness) at that point, without any information about colour. In most cases, numerical values fall within the range 0–255, where: 0 is black, and 255 is white [69].
The image-based classification of date palm fruit varieties and ripeness stages carried out in this study requires two-stage discretisation, namely: sampling and quantisation. Sampling determines which pixels are measured, whilst quantisation determines the precision with which the measured values are recorded. In this study, spatial discretisation to a square grid was applied to the analysis of the date palm images, using code 2 (https://github.com/piotrrybacki/date-palm-CNN2.git, accessed on 20 November 2026).
The accuracy of the colour quantisation of the imaged date palm fruits in this study was determined by estimating [70]:
- (a)
- the width of a single interval into which the entire range of possible signal values is divided during quantisation, i.e., the quantisation step, Equation (1):
- (b)
- the single-pixel quantisation error, which is the difference between the original (actual) value and the quantised value, Equation (2):
f(x, y)—the original (continuous) sample value
fq(x, y)—the value after quantisation (rounded to the nearest level)
- (c)
- the maximum quantisation error when rounding to the nearest level, Equation (3):
- (d)
- signal-to-quantisation-noise ratio (SQNR), Equation (4)
- (e)
- peak signal-to-noise ratio (PSNR), Equation (5):
The higher the PSNR, the less noticeable the difference from the original. It is generally accepted that >40 dB indicates good visual quality of the discretisation process [71,72]. The mean values of all statistics for the discretisation process of 8-bit images of date palm fruit are shown in Table 2. The stages of the discretisation process for the imaged date palm fruit photographs are shown in Figure 4, in accordance with code 3 available at https://github.com/piotrrybacki/date-palm-CNN2.git (accessed on 20 November 2026).
Table 2.
Average parameter values obtained in the discretisation process for eight-bit images of date palm fruits.
Figure 4.
Preprocessing pipeline of date palm fruit images used for classification with a CNN network: (a) original RGB image, (b) grayscale conversion, (c) segmented fruit with detected contour, and (d) cropped and scaled image prepared as input data for the DATENET2 model.
2.4. Setting the Criteria for the Classification of Date Palm Fruits
The criteria used to classify date palm fruit, using the DATENET2 convolutional neural network model, are based on their colour, texture, length and diameter, and geometric shape. In classifying date palm fruit qualitatively on the basis of colour, the CIELAB methodology (also referred to as CIE L*a*b*) [73,74]. Applying this approach to the classification of date palm fruit by ripeness will allow for a progression from green through yellow and red to brown as the fruit ripens. The CIELAB methodology provides a mathematical description of colours by determining the ΔE parameter in accordance with Equation 6, using three components: L—brightness (luminance), a—colour from green to magenta, b—colour from blue to yellow.
where:
Lij, aij, bij—the colour components of the original image
L*ij, a*ij, b*ij—the colour components of an image produced as a result of quantisation
The DATENET2 model developed adopts a criterion whereby, when the absolute colour differences (ΔE) of date palm fruits fall within the range <0.0, 1.0>, they are indistinguishable; in other words, the colour variation in the dates is imperceptible and characteristic of the same variety. A difference within the range <1.0, 2.0> indicates a minor deviation, <2.0, 3.5> a moderate deviation, and <3.5, 5.0> a noticeable deviation, whilst ΔE values exceeding 5.0 denote a major colour deviation, clearly indicating either different date palm fruit varieties or different degrees of ripeness.
Texture is one of the fundamental visual characteristics and classification criteria for images of date palm fruit. It is particularly important as it enables one to distinguish between species or varieties of date palm fruit that are similar in colour and shape, and to distinguish ripe fruit from unripe fruit, and healthy fruit from damaged or diseased fruit.
The geometric shape of date palm fruits in the model is determined by their length, diameter, circumference and the so-called shape index (SI), which is the ratio of length to diameter. The SI will determine the ovality of date palm fruit, as a value close to 1.0 for the fruit under analysis indicates that it is spherical in shape. Table 3 sets out the criteria for the geometric classification of date palm fruit.
Table 3.
Geometric classification criteria for date palm fruits.
Images, in practice, are characterised by a substantial excess of information, making the extraction of key features of the imaged objects essential. These features are simultaneously the criteria for quantifying objects or assessing their quality.
2.5. Software
The following were used to develop algorithms for classifying date palm fruit: the Python 3.9 programming language and its libraries for scientific computing, namely Keras, TensorFlow 2.0, SciPy, NumPy, Scikit-shapes and SciPy. Keras is a high-level open-source tool (a library, or so-called framework) for building, training and testing neural networks and deep learning models in Python. TensorFlow 2.0 is the second generation of Google’s machine learning library, which greatly simplifies the process of writing code. It forms the basis on which tf.keras operates in practice [75]. SciPy, on the other hand, is a Python library that extends NumPy with advanced, optimised scientific algorithms, which are extremely useful for analysing multidimensional images. It forms the basis for many more specialised tools, such as scikit-image and scikit-learn. Scikit-shapes is an open-source library for shape analysis. It is used to analyse two-dimensional (2D) images and three-dimensional (3D) models. The final library used is SciPy, which provides optimised numerical algorithms based on NumPy [76]. In the context of classifying date palm fruits based on texture, SciPy enables the processing of fruit images (scipy.ndimage) as well as the statistical analysis of the results (scipy.stats) [77].
2.6. Architecture of the Multilayer DATENET2 Network
The proposed multilayer DATENET2 network architecture for the automatic classification of date palm fruit by variety and stage of ripeness consists of five classes, namely: MaxPooling2D and Dropout. The ReLU function was used for activation in the model, and the Keras interface was used to implement the model. The MaxPooling2D class allows the dimensions of feature maps generated by convolutional layers to be reduced [78]. It divides the feature map into small, non-overlapping sections (e.g., 3 × 3), from which it selects the maximum values. The Dropout class is a regularisation technique designed to prevent a model from overfitting [79]. During the training phase, the Dropout layer randomly assigns a value of zero to a certain percentage of the neurons in a given layer in each cycle. This approach means that the DATENET2 model cannot rely on specific neurons and must instead learn more general, distributed representations. The Conv2D class moves a small filter, known as a kernel (e.g., 2 × 2), across the entire input image of a date palm fruit and, at each position, performs a convolution operation, which involves multiplying and summing the pixel values with the filter weights.
This is one of the most important stages, as it enables this layer to detect patterns, which in the DATENET2 model are: colour, texture, edges and shape. Figure 5 shows, schematically, that a pooling layer has been placed after each convolution layer. The purpose of this layer is to perform subsampling, i.e., to reduce the size of the feature map. Code 4, which programmes this model, can be found at https://github.com/piotrrybacki/date-palm-CNN2.git (accessed on 20 November 2026). The DATENET2 model is an ensemble of 16 independently trained binary classifiers, each corresponding to one combination of variety and ripeness stage, and each having the architecture shown in Figure 5. Each classifier has a single scalar output with a sigmoid function, so it returns a value in the range [0, 1], interpreted as a score of the image’s membership in its class. For classifier k, the label is 1 for images of combination k and 0 for the remaining 15 combinations. Thus, the 16 classes give rise to 16 binary tasks. The image is fed to the input of all 16 classifiers. The prediction is the combination with the highest sigmoid output value. The variety and ripeness stage are read from the index of the winning class. A similar classification approach was used by Liu and Wang [80], where the decision is made by selecting the class with the highest value. The difference is that those authors used the softmax function.
Figure 5.
Diagram of the DATENET2 model in the quality classification of date palm fruits.
A 200 × 200 feature map is generated automatically following the transformation of the input data tensors, that is, multidimensional arrays of numbers, as described in the programme code. The end result is 7 × 7 feature maps. The depth of the feature maps in the DATENET2 model’s network increases from 32 to 128 as a result of input tensor transformation. The DATENET2 model uses binary classification, meaning that the network’s output consists of Dense layers, a layer with a dimension of 512 and the ReLU activation function, as well as a layer with a dimension of 1 and the sigmoid activation function. A characteristic feature of the Dense layer is that each of its neurons is connected to all the neurons in the previous layer. The sigmoid function serves as the final output function and does not interact directly with the input layer, where the 16 variety–ripeness combinations are represented. Its role is to reduce the analysed image’s feature array to a single numerical output value. The overall classification among the 16 combinations is achieved by comparing the class-specific responses generated for each combination and selecting the one with the highest score (via argmax), rather than by the sigmoid output itself defining the multiclass structure [81].
The algorithm developed in the DATENET2 model automatically sorts photographs of date palm fruit on the basis of the criteria of colour, texture and geometric parameters, i.e., diameter and length, as well as the image filename, and then copies them to the appropriate directory, from which they are retrieved for training, validation or testing. Evaluating the accuracy of date palm fruit classification makes it possible to plot loss curves and accuracy values for analysis and prediction, in accordance with code 5 (https://github.com/piotrrybacki/date-palm-CNN.git, accessed on 20 November 2026).
The architecture of the DATENET2 model, together with its associated algorithms, enables the display of prediction results in the form of probabilities of assigning images of date palm fruit to specific classes, varieties or stages of ripeness. The tf.argmax function makes it possible to identify the image of a date palm fruit with the highest probability of class membership, and assign the appropriate label. The assigned label contains information on: the variety of dates, their stage of ripeness and their specified geometric parameters, i.e., the surface area of the fruit depicted, its circumference, diameter and length. In order to verify the DATENET2 model, both the input data and the predicted labels were visualised for a group of eight examples, in accordance with code 6 (https://github.com/piotrrybacki/date-palm-CNN.git, accessed on 20 November 2026).
The DATENET2 model was evaluated in terms of its ability to classify the varieties and ripeness stages of date palm fruit on the basis of the value of the global detection and classification error (GE), calculated for the test dataset using Equation (7):
where n—number of cases, z—target value (reference pattern), and y—network response.
In addition, during the training, validation and testing phases, error values, which serve as a criterion for assessing the accuracy of the entire DATENET2 model, were analysed using:
– standard deviation:
– mean error:
– mean absolute error:
– normalised standard deviation:
The accuracy of the DATENET2 model was also assessed using a quality metric for date palm fruit quantification in the form of the standard deviation ratio (SDR), calculated as the ratio of the standard deviation of quantification errors to the standard deviation of the output variable, and the Pearson linear correlation coefficient (R).
In practice, the performance of the DATENET2 model is also very important. Measures quantifying the speed of operation and the accuracy of date palm fruit classification were used to evaluate it. The number of images classified per second and the average time taken to classify a single fruit image served as the primary measures of operating speed. To evaluate the DATENET2 model, the following metrics were used: classification accuracy (PPV) and true positive classification results (TPR), as well as the result correction coefficient (f-scoreX) and its accuracy (ACC), Equations (12)–(15):
where ∝ = 0.5 gives equal weight to TPR and PPV.
where n = number of classes, Ii = number of images in class i.
A true positive result (TPX) is the number of date palm fruit images assigned to pattern X, which in this analysis is the variety, stage of ripeness, or both the variety and the developmental stage of the date palm fruit. The TPX value indicates how many images have been correctly recognised and assigned to class X. PPVX,, on the other hand, is the number of true positive date palm fruits divided by the total number of fruits predicted for class X. TPRX is defined as the percentage of date images that actually belong to class X and which the model correctly recognised as X. The f-scoreX is a harmonic mean that combines the PPVX and TPRX metrics into a single value. The ACC from Equation (15) is the overall proportion of correct classifications out of all instances, regardless of class.
In this study, confusion matrices for the DATENET2 model, as shown in Figure 6, were used to illustrate the accuracy of date palm fruit classification. The analysis was carried out for each variety tested at every stage of fruit development examined.
Figure 6.
DATENET2 model confusion matrix for date palm fruit variety and ripeness classification.
3. Results
As a result of the research and analyses carried out, a proprietary CNN architecture was proposed, on the basis of which algorithms were developed to enable the automatic classification of date palm fruit. Their classification was based on colour, texture, length and diameter, as well as geometric shape. Table 4 presents a summary of the average changes in the map sizes of the DATENET2 model developed, broken down by layer number for 44 cycles, generated using code 6 (https://github.com/piotrrybacki/date-palm-CNN2.git, accessed on 20 November 2026). The model output yielded 6,795,457 parameters and, importantly, each of the hidden layers of the DATENET2 model reduces the size of the maps.
Table 4.
Average change in map size across layers of the DATENET2 model.
The algorithm developed for the proposed CNN architecture automatically sorted images of date palm fruit into the training, validation and test directories, in accordance with the principles of cross-validation, using two approaches. In the first, it generated 20 training sets and five validation sets, i.e., 400 and 100 research objects respectively for each variety; in the second, 90 training sets and 10 validation sets, i.e., 900 and 100 objects for each date palm variety. The accuracy of classifying date palm fruit into individual varieties and developmental stages was determined by the number of test samples. Repeated testing of the model showed that the clear limit for increasing accuracy and decreasing training loss was reached at 44 cycles (44 epochs) of computational repetitions (Figure 7 and Figure 8). Training was terminated using an early stopping mechanism that monitored the loss and accuracy on the validation set. Training stopped at epoch 44, at which the monitored metric reached its best value. The fluctuations in the validation curves may result from the relatively small size of the validation set. Therefore, the decision was based on the criterion of the best overall value rather than on a single epoch.
Figure 7.
Visualisation of the loss function and accuracy curves for training and validation of the model, based on date palm fruit colour, over 44 computational repetition epochs of the developed DATENET2.
Figure 8.
Visualisation of the loss function and accuracy curves for training and validation of the model, based on the colour and geometric parameters of date palm fruits, for 44 computational repetition cycles (epochs) of the developed DATENET2 model.
In addition, Figure 9 shows the generated histograms, illustrating the distribution, number and intensity of pixels in the image per unit area of the date palm fruits analysed. The peaks clustered on the left indicate that the elements of the image, in this case the fruit, are dark, meaning they are ripe and at the Tamer stage. The peaks on the right-hand side indicate that the elements of the image are light in colour, i.e., that the palm fruits are at earlier stages of development.
Figure 9.
Histogram of pixel counts and values of the analysed date palm fruit images from the developed DATENET2 model.
The algorithm developed according to code 7 (https://github.com/piotrrybacki/date-palm-CNN2.git, accessed on 20 November 2026), for the DATENET2 model, enabled the display of images of date palm fruits, resulting from predictions of the variety and stage of ripeness. In addition, each resulting image is accompanied by a label consisting of a variety code and containing a range of information on the geometric parameters of the date palm fruit, calculated on the basis of the image’s shape, colour and the number of pixels within a given unit area. The label includes information on the diameter, length, circumference, and surface area of the dates. In addition, an eccentricity index (EC) has been introduced, defined as the ratio of the radii lengths measured from the centre of gravity of the analysed cross-section. For example, an EC value close to 1.00 indicates that the date palm fruit is roughly spherical in shape.
The two-stage classification, based on fruit colour and geometric shape as criteria, assumed that correct assignment was determined by the higher probability value associated with a correct prediction. In Figure 10, the images DN_M and TE_B were incorrectly assigned.
Figure 10.
Example output data of imaged date palm fruits along with their predicted labels.
A detailed breakdown of the geometric dimensions generated by the neural network architecture constructed and the DATENET2 model developed is presented in Table 5. Empirical measurements of the diameters and lengths of date palm fruits were compared with geometric dimensions generated on the basis of colour and its shades. This comparison made it possible to identify deviations from the actual average diameter and length of the dates.
Table 5.
Geometric parameters of date palm fruits based on labels generated by the DATENET2 model.
A minus sign before a number indicates a smaller diameter or length, whilst a plus sign indicates a larger diameter or length than the average value for the given palm fruit varieties. A comparative analysis revealed that 88.08% of the measured values fell within the adopted and specified criteria.
An important point to note regarding the accuracy of classifying images of date palm fruit is that incorrect image assignment occurred at low values of the ΔE index. This may be due to the poorer quality of some of the photographs and the incorrect discretisation of the fruit images depicted in them. It is also noticeable that the Tenicin and Tantboucht varieties were characterised by high ΔE values, particularly at the Mnagar and Tamer ripeness stages.
Figure 11 shows the confusion matrix illustrating the performance and accuracy of the DATENET2 model’s classification on the test dataset, based on fruit colour and geometric dimensions. The data collected clearly show that, for example, in the Deglet Nour variety, 116 images of fruit were classified correctly, whilst nine were classified incorrectly. In four cases the error was due to an incorrect assessment of the fruit’s ripeness in that variety, whilst in five cases the variety itself was incorrectly identified. The DATENET2 model provided the most accurate classification of the ripeness stage of Tenicin fruit, where two errors occurred out of the five made. The full 16-class confusion matrix and the per-class metrics (precision, recall, F1-score and support for each of the 16 classes) have been made available at the following link: piotrrybacki/date-palm-CNN2, (accessed on 20 November 2026).
Figure 11.
Confusion matrix of the classification model for date palm fruit varieties and ripeness stages based on colour and geometric size features, for the varieties: Deglet Nour (DN), Ghars (GH), Tenicin (TE), Tantboucht (TA), at the ripeness stages: Beleh (B), Khelal (K), Mnagar (M), Tamer (T).
Overall, the ACC of the DATENET2 model developed was 93.20%. As shown in Table 6, the highest classification accuracy was recorded for the Tenicin variety (96.00%), whilst the lowest, at 91.20%, was recorded for the Tantboucht variety. When classifying varieties alone, the DATENET2 model made its largest error (2.4%) for the Ghars variety, and its smallest (0.80%) for the Tenicin variety. As regards the maturity stages alone, the largest error (4.00%) was observed for the Ghars variety, and the smallest (1.60%) for Tenicin.
Table 6.
Classification accuracy of the DATENET2 model for date palm fruit quality by variety and ripeness stage.
A GPU (Graphics Processing Unit) was used in the process of classifying images of date palm fruit, and the time taken depended on the number of criteria used. As shown in Table 7, the shortest classification time was recorded for images of dates identified on the basis of colour, namely: 20.12 ms/image. Identifying the photograph based on the geometric parameters of the fruit depicted took slightly longer, at 24.31 ms per image.
Table 7.
Qualitative classification performance of the developed DATENET2 model for date palm fruit.
However, combining the criteria relating to colour and the geometric parameters of the dates considerably lengthened the image assignment time, to 28.66 ms per image. Nevertheless, accumulating the classification criteria led to a significant increase in accuracy, reaching 93.20% for the proposed DATENET2 model. The value of the f-scoreX result correction coefficient also increased as the number of criteria taken into account rose, reaching 95.24% for the colour and geometric parameters of date palm fruit.
4. Discussion
The qualitative classification of date palm fruit is an extremely important part of the process of processing, storing and further handling them in the agri-food industry. It plays a key role in the production of high-quality goods; however, it is labour-intensive and characterised by low accuracy and efficiency, relying mainly on manual labour. Consequently, many researchers are seeking methods to automate this process, which will improve its accuracy and efficiency. This is where artificial neural networks come in, offering new possibilities and proving to be a useful tool in multi-criteria decision-making.
The CNN architecture proposed in this study and the DATENET2 model developed, equipped with algorithms, meet the expectations of producers of date palm fruit. Multi-criteria classification, taking into account colour and geometric indices, enables the DATENET2 model to achieve an ACC of 93.20%, with a classification time of 28.66 ms per image. It should be noted that cross-validation carries a risk of data leakage, which occurs when highly similar images of date palm fruit are present within one subset or across the training and validation subsets. Under such conditions, the network may be validated on images nearly identical to those used for training, which may favour memorisation over generalisation and lead to overestimated performance metrics. However, as indicated by Abedin et al. [67], this approach is considerably preferable to using an insufficient amount of input data.
It can be said that, given the use of a single tool and a single model, the accuracy is relatively high. In their paper [59], Rybacki et al. achieved a similar accuracy of 93.41%, but only when classifying varieties of date palm fruit, without taking into account stages of ripeness. Safran et al. [29], in turn, proposed the DPXception model and compared it, in terms of its accuracy in predicting date palm fruit varieties, with the following models: Xception, ResNet50, ResNet50V2, InceptionV3, DenseNet201, EfficientNetB4 and EfficientNetV2-S. The authors’ analysis shows that the proposed model achieved an accuracy of 92.90%. This result is similar to that obtained in this study. In their study, Khriji et al. 2020 [58] used colour, shape, dimensions and texture as criteria for the automatic qualitative classification of date palm fruit. The authors achieved a relatively high accuracy of 99.20%, but they used three different techniques, namely: Artificial Neural Network (ANN), Support Vector Machine (SVM) and K-Nearest Neighbours (K-NN).
In their study, Khan et al. [60] presented a model for classifying date palm fruits in terms of variety, ripeness, diseases and yield level. They applied machine learning (ML) and Explainable AI (XAI) techniques, as well as neural network architectures: VGG16, VGG19, ResNet50 and MobileNetV2. As the authors reported, the architecture that performed best was designated VGG16, achieving an accuracy of 97% and 94% for date variety and ripeness classification, respectively. Similar research was presented by Ouhda et al. [66], in which an intelligent decision-making system was proposed for collecting data on the ripeness of date palm fruit, enabling the detection, localisation and assessment of the stage of ripeness.
Iqbal [61], for his part, proposed an integrated AI framework based on Reveal-Aware Hybrid Vision-Language and Transformer models for the prediction, segmentation and severity assessment of date palm diseases. According to the author, the model developed achieved 98.00% diagnostic accuracy and 95.80% precision in the classification of date palm diseases. El Hanafy et al. [63] also worked on developing models for predicting date palm pathogens; in their study, they attempted to integrate the ResNet50 and MobileNetV2 neural network architectures in order to improve interpretability and the classification of date palm diseases. According to the authors, the integration and collaboration of the systems enabled a prediction accuracy of 91.00% to be achieved.
An important area of application for artificial neural network models is the prediction of fertilisation intensity and its impact on yield and the quality of the harvested crop. Hessane et al. [64] proposed a method for diagnosing nutrient deficiencies in date palms, on the basis of which the fertiliser application rate is determined. The authors employed a class-based Guided Weighted Soft Voting (CG-WSV) ensemble approach, achieving a high F1 score of 0.9971 ± 0.0027.
The examples given above of work on models for the prediction, classification and qualitative assessment of date palms and their fruit clearly confirm the need for conducting research and analysis. This study fits in well with this trend, and the results obtained, depending on the classification criteria, demonstrate its high effectiveness and accuracy.
5. Conclusions
The average ACC of the DATENET2 model developed was 93.20%. The highest classification accuracy was recorded for the Tenicin variety (96.00%), whilst the lowest, at 91.20%, was recorded for the Tantboucht variety. When classifying varieties alone, the DATENET2 model made its largest error (2.4%) for the Ghars variety, and its smallest (0.80%) for the Tenicin variety. As regards the maturity stages alone, the largest error (4.00%) was observed for the Ghars variety, and the smallest (1.60%) for Tenicin. The shortest classification time was recorded for images of dates identified on the basis of colour (20.12 ms/image); it was slightly longer, at 24.31 ms/image, when based on geometric parameters, whilst combining colour-related and geometric criteria increased the classification time to 28.66 ms/image.
The DATENET2 model developed, which has an average accuracy of 93.20%, meets the expectations of date palm fruit producers. This accuracy can be increased during the stages of image acquisition, database creation and discretisation. Appropriate digital processing makes it possible to increase the number of classification criteria and to analyse the colours and edges of the objects under investigation in greater detail.
Author Contributions
Conceptualisation, P.R., S.D. and J.N.; methodology, P.R. and S.D.; software, P.R. and D.J.; validation, P.R. and D.J.; formal analysis, J.N.; investigation, P.R. and S.D.; resources, S.D., S.C. and I.B.; data curation, P.R., S.D., S.C. and I.B.; writing—original draft preparation, P.R., I.K., K.D. and J.N.; writing—review and editing, I.K., K.D. and J.N.; visualisation, P.R., S.D., S.C. and I.B.; supervision, P.R.; project administration, P.R. and J.N. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
The data presented in this study are openly available at https://github.com/piotrrybacki/date-palm-CNN2.git (accessed on 20 November 2026).
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Sajid, A.; Ali, A.; Albadawy, A.; Ahmad, Z.; Fatima, K.; Ashraf, S.; Khan, M.; Younus, M. Exploring the bioactivities and phytochemistry of Phoenix dactylifera L. (Aseel and Zahidi dates). J. Med. Plants Stud. 2024, 12, 34–39. [Google Scholar] [CrossRef] [Scilit]
- Hussain, M.I.; Semreen, M.H.; Shanableh, A.; Khattak, M.N.K.; Saadoun, I.; Ahmady, I.M.; Mousa, M.; Darwish, N.; Radeef, W.; Soliman, S.S.M. Phenolic Composition and Antimicrobial Activity of Different Emirati Date (Phoenix dactylifera L.) Pits: A Comparative Study. Plants 2019, 8, 497. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Labyad, N.; Dorob, B.; Gafric, F.; Elamaari, S.; Almusratia, N. Phytochemical Screening of Methanolic Extract of Five Libyan Date Varieties (Phoenix Dactylifera L.) and Evaluation of Their Antimicrobial Activity. Int. J. Progress. Sci. Technol. 2020, 22, 168–175. [Google Scholar]
- Hilary, S.; Kizhakkayil, J.; Souka, U.; Al-Meqbaali, F.; Ibrahim, W.; Platat, C. In-Vitro Investigation of Polyphenol-Rich Date (Phoenix dactylifera L.) Seed Extract Bioactivity. Front. Nutr. 2021, 8, 667514. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- AlYammahi, J.; Hai, A.; Krishnamoorthy, R.; Arumugham, T.; Hasan, S.W.; Banat, F. Ultrasound-assisted extraction of highly nutritious date sugar from date palm (Phoenix dactylifera) fruit powder: Parametric optimization and kinetic modeling. Ultrason. Sonochem. 2022, 88, 106107. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Arumugham, T.; AlYammahi, J.; Rambabu, K.; Hassan, S.W.; Banat, F. Supercritical CO2 pretreatment of date fruit biomass for enhanced recovery of fruit sugars. Sustain. Energy Technol. Assess. 2022, 52, 102231. [Google Scholar] [CrossRef] [Scilit]
- Halabi, A.A.; Elwakil, B.H.; Hagar, M.; Olama, Z.A. Date Fruit (Phoenix dactylifera L.) Cultivar Extracts: Nanoparticle Synthesis, Antimicrobial and Antioxidant Activities. Molecules 2022, 27, 5165. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Khatib, M.; Al-Tamimi, A.; Cecchi, L.; Adessi, A.; Innocenti, M.; Balli, D.; Mulinacci, N. Phenolic compounds and polysaccharides in the date fruit (Phoenix dactylifera L.): Comparative study on five widely consumed Arabian varieties. Food Chem. 2022, 395, 133591. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Oluyele, O.; Oladunmoye, M.K.; Ogundare, A.O. Antioxidant potential of essential oil from Phoenix dactylifera (L.) seed. GSC Biol. Pharm. Sci. 2022, 19, 014–022. [Google Scholar] [CrossRef] [Scilit]
- Thacker, H.; Ram, V. Medicinal Properties of Phoenix dactylifera L: A Review. Int. J. Res. Appl. Sci. Eng. Technol. 2024, 12, 3098–3102. [Google Scholar] [CrossRef] [Scilit]
- Salisu, S.M.; Musa, N.; Danraka, R.N.; Highab, S.M.; Khan, F.; Shehu, A.; Musa, M.K.; Yau, J. Assessment of Anti-Inflammatory and Pain-RelievingProperties of Phoenix dactylifera L. SAP (Arecaceae) in Mice and Rats. Dutse J. Pure Appl. Sci. 2025, 11, 124–135. [Google Scholar] [CrossRef] [Scilit]
- Hasan, Z.Y.M.; Hameed, M.F.; Aljazairi, R. Phytochemical and Pharmacological Effect of Phoenix dactylifera L. (Ajwa date) Seedson Imiquimod-Induced Psoriasis Like Inflammation in Mice. Iraqi J. Pharm. Sci. 2025, 34, 230–245. [Google Scholar] [CrossRef] [Scilit]
- Kadri, K.; Hedfi, Y.; Othmani, A.; Kerkni, A.; Elhoumaizi, M.A.; Elsafy, M. Evaluating morphological diversity in male date palm genotypes from Tunisia: Insights from vegetative and reproductive descriptors for selection criteria. Genet. Resour. Crop Evol. 2025, 72, 6933–6949. [Google Scholar] [CrossRef] [Scilit]
- Naseer, M.; Fatima, S.; Hameed, M.; Basharat, S.; Parveen, Z.; Ahmad, M.S.A.; Ahmad, F.; Asghar, A.; Rani, W.; Shafqat, J.; et al. Clustering of date palm (Phoenix dactylifera L.) cultivars using morphological and yield attributes as selection criteria. Int. J. Appl. Exp. Biol. 2026, 5, 209–220. [Google Scholar] [CrossRef] [Scilit]
- Othmani, A.; Kadri, K.; Marzougui, S.; Sellemi, A.; Werbrouck, S.P.O. Double-Seeded Fruits in Date Palm (Phoenix dactylifera L.): Morphological Variation and Germination. Seeds 2026, 5, 37. [Google Scholar] [CrossRef] [Scilit]
- Arba, M.; Berjaoui, I.; Sabri, A. Study on the evolution of the fruit morphological and physico-chemical parameters of ‘Majhoul’ date palm during fruit growth. Acta Agric. Slov. 2023, 119, 1–8. [Google Scholar] [CrossRef] [Scilit]
- Yahya, N.A.; Awad, M.A.; Ibrahim, S.D.; Nagaty, M.A. Exploring Egyptian date palm cultivars using morphological traits and molecular markers. Asian J. Agric. Biol. 2025, 2024270. [Google Scholar] [CrossRef] [Scilit]
- Elmeer, K.; Alghanem, M.; Al-Latifi, L.; Alhemairi, H. Efficiency of RAPD and ISSR Markers for the Detection of Polymorphisms and Genetic Relationships in Date Palm. Biotechnology 2017, 16, 19–26. [Google Scholar] [CrossRef] [Scilit][Green Version]
- Faisal, H.A.; Hzaa, A.Y.L.; Abdullah, A.S.A. Fingerprint and genetic variation of eight date palm cultivars (Phoenix dactylifera L.) Usage SSR markers and morphological characters. Kufa J. Agric. Sci. 2025, 17, 114–131. [Google Scholar] [CrossRef] [Scilit]
- Al-Jabri, A.; Alhinai, M.; AL-Mamari, A.G.; Mattat, I.; Al-Malki, A.; Hamwieh, A.; Baum, M. Development and screening of large-scale simple sequence repeat (SSR) markers for genetic diversity analysis in date palm (Phoenix dactylifra L.). Genet. Resour. Crop Evol. 2026, 73, 195. [Google Scholar] [CrossRef] [Scilit]
- Abba, O.; Iheukwumere, I.H.; Iheukwumere, C.M.; Ike, V.E.; Ezendianefo, J.N.; Okongwu, D.J. Evaluating the Quality and Composition of Date Palm and Banana Fruit Vinegar: Physicochemical and Nutritional Aspects. IPS J. Phytochem. Med. Plant Res. 2026, 2, 69–80. [Google Scholar] [CrossRef] [Scilit]
- Heriyanto; Effendi, J.; Yuniati, Y.; Shioi, Y. Comparison of major carotenoid composition in palm fruits (Arecaceae): An analysis of oil palm fruits and the colored exocarp fruits of four palm species. J. Food Sci. 2025, 90, e70026. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Salim, D.K. Chemical properties and active compounds of date pressing residues using high performance chromatography (HPLC) analysis. AL-Muthanna J. Agric. Sci. 2026, 13, 1. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Taha, K.M.; Hamad, A.I. Spectral signature identification of land cover in fadak farm/karbala governorate and evaluation of its suitability for date palm cultivation. Iraqi J. Agric. Sci. 2025, 56, 1981–1996. [Google Scholar] [CrossRef] [Scilit]
- Gibril, M.B.A.; Shafri, H.Z.M.; Al-Ruzouq, R.; Shanableh, A.; Nahas, F.; Al Mansoori, S. Large-Scale Date Palm Tree Segmentation from Multiscale UAV-Based and Aerial Images Using Deep Vision Transformers. Drones 2023, 7, 93. [Google Scholar] [CrossRef] [Scilit]
- Ahmed, J.M.; Melhi, M.; Somaie, A.A. Multimodal RGB–Thermal Deep Learning for Red Palm Weevil Damage Classification in Date Palms with a Tree-Level Evaluation of Six Backbone Architectures. Comput. Discov. Intell. Syst. 2026, 4, 1–19. [Google Scholar] [CrossRef] [Scilit]
- Gogoi, P.; Valan, J.A. Enhancing date fruit classification using machine learning, CTGAN, and SHAP-based explainability. J. Food Meas. Charact. 2025, 19, 6851–6872. [Google Scholar] [CrossRef] [Scilit]
- Rybacki, P.; Sawinska, Z.; Kačániová, M.; Kowalczewski, P.Ł.; Osuch, A.; Durczak, K. Convolutional neural network model for the qualitative evaluation of geometric shape of carrot root. Agric. Food Sci. 2024, 33, 40–54. [Google Scholar] [CrossRef] [Scilit]
- Safran, M.; Alrajhi, W.; Alfarhood, S. DPXception: A lightweight CNN for image-based date palm species classification. Front. Plant Sci. 2024, 14, 1281724. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Alsirhani, A.; Siddiqi, M.H.; Mostafa, A.M.; Ezz, M.; Mahmoud, A.A. A novel classification model of date fruit dataset using deep transfer learning. Electronics 2023, 12, 665. [Google Scholar] [CrossRef] [Scilit]
- Savand-Roumi, E.; Keramat-Jahromi, M. Optimizing Gas Sensor Array to Classify Three Edible Ripening Stages of Date Fruit Using Machine Learning and Feature Selection (case Study: Cv. Shahani.). Span. J. Agric. Res. 2025, 23, 21120. [Google Scholar] [CrossRef] [Scilit]
- Singh, P.; Kansal, M.; Singh, R.; Kumar, S.; Sen, C. A Hybrid Approach based on Haar Cascade, Softmax, and CNN for Human Face Recognition. J. Sci. Ind. Res. 2024, 83, 414–423. [Google Scholar] [CrossRef] [Scilit]
- Yo, M.; Chong, S.; Chong, L. Sparse CNN: Leveraging deep learning and sparse representation for masked face recognition. Int. J. Inf. Technol. 2025, 17, 4643–4658. [Google Scholar] [CrossRef] [Scilit]
- Bhanbhro, J.; Memon, A.A.; Lal, B.; Talpur, S.; Memon, M. Speech Emotion Recognition: Comparative Analysis of CNN-LSTM and Attention-Enhanced CNN-LSTM Models. Signals 2025, 6, 22. [Google Scholar] [CrossRef] [Scilit]
- Al Ahmadi, S.; Muhammad, F.; Al Dawsari, H. Enhancing Arabic Sign Language Interpretation: Leveraging Convolutional Neural Networks and Transfer Learning. Mathematics 2024, 12, 823. [Google Scholar] [CrossRef] [Scilit]
- Raja’a, M.M.; Suhad, M.K. Automatic Translation From Iraqi Sign Language to Arabic Text or Speech Using CNN. Iraqi J. Comput. Commun. Control Syst. Eng. 2023, 23, 2. [Google Scholar] [CrossRef] [Scilit]
- Mishra, J.; Sharma, R.K. Optimized FPGA Architecture for CNN-Driven Voice Disorder Detection. Circuits Syst. Signal Process. 2025, 44, 4455–4467. [Google Scholar] [CrossRef] [Scilit]
- de Oliveira, S.S.C.; Ribeiro, L.K.M.; Cruz, S.J.S.; Zuchi, J.; Ponciano, V.d.F.G.; Maia, A.J.; Valichesky, R.R.; Grande, G.G. Analysis of seedling images to evaluate the physiological potential of soybean seeds. Obs. Econ. Latinoam. 2024, 22, e3633. [Google Scholar] [CrossRef] [Scilit]
- Duc, N.T.; Ramlal, A.; Rajendran, A.; Raju, D.; Lal, S.K.; Kumar, S.; Sahoo, R.N.; Chinnusamy, V. Image-based phenotyping of seed architectural traits and prediction of seed weight using machine learning models in soybean. Front. Plant Sci. 2023, 14, 1206357. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Nawaz, S.M.; Maharajan, K.; Jose, N.N.; Praveen, R.V.S. GreenGuard CNN-Enhanced Paddy Leaf Detection for Crop Health Monitoring. Int. J. Comput. Exp. Sci. Eng. 2025, 11. [Google Scholar] [CrossRef] [Scilit]
- Garibaldi-Márquez, F.; Flores, G.; Valentín-Coronado, L.M. Leveraging deep semantic segmentation for assisted weed detection. J. Agric. Eng. 2025, 56, 1741. [Google Scholar] [CrossRef] [Scilit]
- Gómez, A.; Moreno, H.; Andújar, D. Intelligent Inter- and Intra-Row Early Weed Detection in Commercial Maize Crops. Plants 2025, 14, 881. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Djwakar, M.; Gupta, I.; Bijalwan, A. Hybrid deep learning model for density and growth rate estimation on weed image dataset. Sci. Rep. 2025, 15, 11330. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Anggraini, N.; Kusuma, B.; Subarkah, P.; Utomo, F.; Hermanto, N. Classification of Rice Plant Disease Image Using Convolutional Neural Network (CNN) Algorithm based on Amazon Web Service (AWS). Build. Inform. Technol. Sci. 2024, 6, 1293–1300. [Google Scholar] [CrossRef] [Scilit]
- Gangadevi, E.; Soufiane, B.O.; Balusamy, B.; Khan, F.; Getahun, M. A novel hybrid fruit fly and simulated annealing optimized faster R-CNN for detection and classification of tomato plant leaf diseases. Sci. Rep. 2025, 15, 16571. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ray, S.K.; Hossain, A.; Islam, N.; Hasan, M.R. Enhanced plant health monitoring with dual head CNN for leaf classification and disease identification. J. Agric. Food Res. 2025, 21, 101930. [Google Scholar] [CrossRef] [Scilit]
- Hadianti, S.; Aziz, F.; Nur Sulistyowati, D.; Riana, D.; Saputra, R.; Kurniawantoro. Identification of Potato Plant Pests Using the Convolutional Neural Network VGG16 Method. MEDINFTech 2024, 2, 39–44. [Google Scholar] [CrossRef] [Scilit]
- Meshram, A.; Meshram, K.; Vanalkar, A.; Badar, A.; Mehta, G.; Kaushik, V. Deep Learning for Cotton Pest Detection: Comparative Analysis of CNN Architectures. Indian J. Entomol. 2025, 88, 154–157. [Google Scholar] [CrossRef] [Scilit]
- Soekarno, G.W.; Suhendar, A. Implementation of the Convolutional Neural Network (CNN) Algorithm for Pest Detection in Green Mustard Plants. G-Tech J. Teknol. Terap. 2025, 9, 202–210. [Google Scholar] [CrossRef] [Scilit]
- Chinchorkar, S. Utilizing satellite data and machine learning to monitor agricultural vulnerabilities to climate change. Int. J. Geogr. Geol. Environ. 2025, 7, 01–09. [Google Scholar] [CrossRef] [Scilit]
- Rendón-Vargas, A.; Luna-Álvarez, A.; Mújica-Vargas, D.; Castro-Bello, M.; Marianito-Cuahuitic, I. Application of Convolutional Neural Networks for the Classification and Evaluation of Fruit Ripeness. In Communications in Computer and Information Science; Springer: Cham, Switzerland, 2024; volume 2249. [Google Scholar] [CrossRef] [Scilit]
- Rybacki, P.; Przygodziński, P.; Osuch, A.; Osuch, E.; Kowalik, I. Artificial Neural Network Model for Predicting Carrot Root Yield Loss in Relation to Mechanical Heading. Agriculture 2024, 14, 1755. [Google Scholar] [CrossRef] [Scilit]
- Wang, X.; Liu, J.; Chen, Q. An advanced deep learning method for pepper diseases and pests detection. Plant Methods 2025, 21, 70. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Keling, T.; Linjuan, L.; Liming, Y.; Jianhua, W.; Qun, S. Selection for high quality pepper seeds by machine vision and classifiers-ScienceDirect. J. Integr. Agric. 2018, 17, 1999–2006. [Google Scholar] [CrossRef] [Scilit]
- Kong, Y.; Fang, S.; Wu, X.; Gong, Y.; Zhu, R.; Liu, J.; Peng, Y. Novel and Automatic Rice Thickness Extraction Based on Photogrammetry Using Rice Edge Features. Sensors 2019, 19, 5561. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Li, Y.; Jia, J.; Zhang, L.; Khattak, A.; Mateen, S.; Shi, G.; Wanlin, W. Soybean seed counting based on pod image using two column convolution neural network. IEEE Access 2019, 7, 64177–64185. [Google Scholar] [CrossRef] [Scilit]
- Rybacki, P.; Niemann, J.; Bahcevandziev, K.; Durczak, K. Convolutional Neural Network Model for Variety Classification and Seed Quality Assessment of Winter Rapeseed. Sensors 2023, 23, 2486. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Khriji, L.; Ammari, A.C.; Awadalla, M. Artificial Intelligent Techniques for Palm Date Varieties Classification. Int. J. Adv. Comput. Sci. Appl. 2020, 11, 489–495. [Google Scholar] [CrossRef] [Scilit]
- Rybacki, P.; Niemann, J.; Derouiche, S.; Chetehouna, S.; Boulaares, I.; Seghir, N.M.; Diatta, J.; Osuch, A. Convolutional Neural Network (CNN) Model for the Classification of Varieties of Date Palm Fruits (Phoenix dactylifera L.). Sensors 2024, 24, 558. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Khan, S.Z.; Dhou, S.; Al-Ali, A.R. Machine Learning Based Palm Farming: Harvesting and Disease Identification. IEEE Access 2024, 12, 157854–157871. [Google Scholar] [CrossRef] [Scilit]
- Iqbal, A. Comprehensive AI framework for automated classification, detection, segmentation, and severity estimation of date palm diseases using vision-language models and generative AI. Front. Plant Sci. 2025, 16, 1710188. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Nia, B.; Elbar, D.; Mehenni, M.; Roumani, M.; Rekis, A.; Deghiche-Diab, N.; Faci, M.; Aksa, A.; Mesnoua, M. Assessment of date palm susceptibility and fruit damage caused by the date palm mite in Algeria. Entomol. Hell. 2026, 35, 96–100. [Google Scholar] [CrossRef] [Scilit]
- El Hanafy, A.; Hessane, A.; Farhaoui, Y. Enhancing Deep Learning Models with Attention Mechanisms for Interpretable Detection of Date Palm Diseases and Pests. Technologies 2025, 13, 596. [Google Scholar] [CrossRef] [Scilit]
- Hessane, A.; Abdellaoui Alaoui, E.; El Hanafy, A.; El Youssefi, A.; Farhaoui, Y. Class-wise guided weighted soft voting for deep learning-based date palm nutrient deficiency classification. Discov. Artif. Intell. 2026, 6, 180. [Google Scholar] [CrossRef] [Scilit]
- AlRaeesi, I.; El-Khazali, R. AI-enabled drones for date palm pollination. Sci. Rep. 2026, 16, 10158. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ouhda, M.; Yousra, Z.; Aksasse, B. Smart Harvesting Decision System for Date Fruit Based on Fruit Detection and Maturity Analysis Using YOLO and K-Means Segmentation. J. Comput. Sci. 2023, 19, 1242–1252. [Google Scholar] [CrossRef] [Scilit]
- Abedin, T.; Xu, H.; Uddin, S. The impact of K selection in K-fold cross-validation on bias and variance in supervised learning models. Sci. Rep. 2026, 16, 6084. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ramawan, D.P.; Fadjeri, A. Analysis of Digital Image Quality Between Conventional Design Outputs and Generative Artificial Intelligence Images Using Digital Image Processing Methods. J. Eng. Electr. Inform. 2026, 6, 14–19. [Google Scholar] [CrossRef] [Scilit]
- Bagavathy, R.; Rajesh, R.; Ajith Kumar, D. Analysis of Data Hiding Using Digital Image Signal Processing. Int. J. Sci. Res. Eng. Manag. 2025, 9, 1–4. [Google Scholar] [CrossRef] [Scilit]
- Sugimoto, K.; Shikamura, T.; Miura, K.; Yamazawa, Y.; Aoki, R.; Wang, F.; Ito, T.; Shimobaba, T. Binarization for Single-Pixel Imaging Using Error Diffusion with the Maximum and Minimum Values. Adv. Devices Instrum. 2026, 7, 0109. [Google Scholar] [CrossRef] [Scilit]
- Gowda, P.B.H.; Mahadevappa, B.; Palaiahnakote, S.; Saleem, M.H.; Hanumanthu, N.M. A New Domain-Independent Approach for Classification of Bacteria, Fungus, and Virus-Infected Fruit and Leaf Images. Artif. Intell. Appl. 2026. online first. [Google Scholar] [CrossRef] [Scilit]
- Singh, A.; Rajni. CNN-Guided Dual-Chaotic Encryption and Wavelet Domain Embedding for Robust and Adaptive Image Watermarking. Int. J. Electr. Electron. Res. 2026, 14, 176–185. [Google Scholar] [CrossRef] [Scilit]
- Seymour, J. Color inconstancy in CIELAB: A red herring? Color Res. Appl. 2022, 47, 900–919. [Google Scholar] [CrossRef] [Scilit]
- Beck, M.; Hill, M.E. The Right Red: Comparing Red Pigment Hues with CIELAB. Adv. Archaeol. Pract. 2025, 13, 256–272. [Google Scholar] [CrossRef] [Scilit]
- Adebesin, G.M.; Sangeeta, S. Studying the Evolution of TensorFlow Questions on Stack Overflow. J. Softw. Evol. Process 2026, 38, e70140. [Google Scholar] [CrossRef] [Scilit]
- Dinh, D.H.; Tran, Q.N.M.; Dong, Q.H.; Ondrusch, N. Predictive Modeling for Software Project Management—A Case Study of TensorFlow. JUCS-J. Univers. Comput. Sci. 2026, 32, 985–1015. [Google Scholar] [CrossRef] [Scilit]
- Sydykova, M.; Mambetova, Z.; Ubaidyldaeva, Z. Fundamentals of Working with TensorFlow: Syntax and Basic Operations. Bull. Sci. Pract. 2026, 12, 104–110. [Google Scholar] [CrossRef] [Scilit]
- Klimenka, D.; Kazlova, A. Investigation of the Impact of Hyperparameters on the Accuracy of Neural Network Predictions Using the Fashion-MNIST Dataset. Digit. Transform. 2026, 32, 44–52. [Google Scholar] [CrossRef] [Scilit]
- Harris, O.; Andrews, M. Effects and results of dropout layer in reducing overfitting with convolutional Neural Networks (CNN). World J. Adv. Eng. Technol. Sci. 2024, 13, 836–853. [Google Scholar] [CrossRef] [Scilit]
- Liu, J.; Wang, X. Multisource information fusion method for vegetable disease detection. BMC Plant Biol. 2024, 24, 738. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Sharma, S.; Sharma, D.; Mundra, A.; Tiwari, P.K.; Goyal, M.K. Hybrid scale driven cascade CNN model for dense crowd counting and density estimation. J. Integr. Sci. Technol. 2026, 14, 1570. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.










