Investigation of AI with OpenCV-Python for Detecting Diabetes
摘要
Plenty of different diagnosing methods have been extensively utilized to identify diabetes accurately; however, an absolutely precise and definitive diagnosis has not yet been attained. Within the context of this research, our primary objective is to leverage the cutting-edge capabilities of Artificial Intelligence (AI) coupled with OpenCV to assist medical professionals, thereby minimizing the rate of misdiagnosis. Specifically, we harness the power of AI to effectively classify diverse images portraying patients afflicted with Non-Proliferative Diabetic Retinopathy (NPDR), with the ultimate goal of determining the severity level at which they are situated. In conjunction with this, Python, with OpenCV, has a crucial role in extracting pertinent features that may be discernible within the given images. Our methodology involves the collection and preprocessing of the Eye PACS Dataset on Kaggle, followed by feature extraction and model training using some machine learning algorithms, including convolutional Neural Network CNN, decision trees, support vector machines SVM, and neural networks. OpenCV is utilized for image processing tasks, enhancing the feature extraction process, certain individual features present within the images are precluded from being considered as contributing factors in the classification process. Some of these features include but not limited to, the measurement of the luminous blobs which are present in the image, the specific area of existence of red lesion. The evaluation of the models includes the analysis of their performance based on the goal of the prediction task, specifically decimal-based accuracy, precision, recall, and F1-score. This research employs a wide-ranging dataset embracing low, medium and high level of image severity. At last, after lots of simulation, it came to a conclusion that the CNN increases its level of classification accuracy up to 98%. These findings show that the proposed application of AI improves the accuracy and the time it takes to diagnose diabetes compared to traditional methods. The proposed system offers a feasible solution for automated and prompt and efficient diabetes screening, more importantly ideal for implementation in areas with scarce resources. This investigation confirms the possibilities of using AI and image processing techniques to bring innovations to medical analysis and opens the door for further research in this area.