Generally, the existing Intrusion Detection Systems (IDS) solutions suffer from low detection accuracy for some attack types compared with the overall detection accuracy of attacks. The data imbalance technically affects the ratio of detection accuracy of low frequent attacks class (e.g. zero‐day attack) compared to attacks with more instances. Therefore, IDS‐based machine learning algorithms potentially suffer from high false‐positive rates. To overcome the limitation of existing solutions, a hyper‐clustering model is proposed for dynamic intrusion detection based on the Density‐Based Spatial Clustering of Applications with Noise (DBSCAN) and cosine similarity. The proposed solution develops the standard DBSCAN by adding a new evolving process based on distance measures between the clusters to overcome the imbalance dataset. Moreover, a new classifier is proposed based on cosine similarity to predict the labelling of abnormal behaviour. The experimental results show that the proposed model outperformed the original DBCAN and the related works. The mean silhouette of the proposed DBSCAN achieves a high score of 0.87 compared to other solutions. Furthermore, the proposed DBSCAN reduces the mean square error from 0.66 to 0.13 and achieves 86.82%, 79.10% and 90.03% in general accuracy on KDDTest+, KDDTest‐21 NSL‐KDD and UNSW‐NB15 benchmark datasets, respectively.
Artificial intelligence has many applications in various industries, including agriculture. It can help overcome challenges by providing efficient solutions, especially in the early stages of development. When working with tree leaves to identify the type of disease, diseases often show up through changes in leaf color. Therefore, it is crucial to improve the color brightness before using them in intelligent agricultural systems. Color improvement should achieve a balance where no new colors appear, as this could interfere with accurate identification and diagnosis of the disease. This is considered one of the challenges in this field. This work proposes an effective model for olive disease diagnosis, consisting of five modules: image enhancement, feature extraction, clustering, and deep neural network. In image enhancement, noise reduction, balanced colors, and CLAHE are applied to LAB color space channels to improve image quality and visual stimulus. In feature extraction, raw images of olive leaves are processed through triple convolutional layers, max pooling operations, and flattening in the CNN convolutional phase. The classification process starts by dividing the data into clusters based on density, followed by the use of a deep neural network. The proposed model was tested on over 3200 olive leaf images and compared with two deep learning algorithms (VGG16 and Alexnet). The results of accuracy and loss rate show that the proposed model achieves (98%, 0.193), while VGG16 and Alexnet reach (96%, 0.432) and (95%, 1.74), respectively. The proposed model demonstrates a robust and effective approach for olive disease diagnosis that combines image enhancement techniques and deep learning-based classification to achieve accurate and reliable results.