Glaucoma, a major ocular disease, often culminates in irreversible blindness if undiagnosed. Characterized by optic nerve fiber degeneration, it instigates structural changes to the optic nerve, thus precipitating vision loss. Despite being symptomless, early detection is imperative to prevent further visual impairment. The disease's inception is attributed to increased intraocular pressure, a condition influenced by blood pressure. Notably, the eye and heart share parallel characteristics, making glaucoma an early indicator of potential cardiac conditions. Increased blood pressure frequently accompanies Diabetes mellitus -a common complication exacerbating cardiac health and fostering the development of cardiovascular diseases. Leveraging computational technologies allows for the early-stage identification of glaucoma. The utilization of deep learning approaches and pruning techniques has yielded significant outcomes in detecting glaucoma-related abnormalities accurately. Pruning, a strategy implemented to eliminate redundant parameters while preserving optimal performance, is particularly beneficial. This study introduces a Genetically Optimized Neural Network (GONN) incorporating wavelet transformation for the detection of glaucoma, thereby assisting in diabetes and heart disease risk identification. Experimental results demonstrate that the GONN method outperforms conventional methods such as Artificial Neural Networks (ANN), Naï ve Bayes, multilayer perceptron, ensemble methods, K-Nearest Neighbor (KNN), and decision trees. Notably, the GONN technique achieves an impressive accuracy of 95%, an F1 score of 92%, and an Area Under the Curve (AUC) of 98.92%. This study's findings underscore the potential of the GONN technique in accurately identifying glaucoma, thereby aiding in early diabetes and heart disease risk prediction. The results demonstrate that the GONN approach is a viable tool for clinical practice, with potential implications for improved patient outcomes and healthcare efficiency.