An earthquake early-warning system (EEWS) is essential for preserving human life. In terms of disaster management and EQ risk reduction, quickly determining the earthquake’s (EQ’s) magnitude and position is important. To prevent an EQ catastrophe, these parameters can be transmitted over an IoT network. The Evolutionary Gravitational Neocognitron Neural Network (EGNNN), a novel technique for real-time earthquake parameter observation, is introduced in this paper to enhance earthquake early warning (EEW) systems. The proposed framework uses various sophisticated data processing methods to analyze publically accessible earthquake data from sources like the Japan Meteorological Agency. The Morphological Filtering Extended Empirical Wavelet Transformation (MFEEWT) method is first used to pre-process seismic waveform input, significantly lowering noise levels in the data. After that, from the pre-processed waveforms the relevant features are extracted via the Fast Discrete Curvelet Transform with Wrapping (FDCT-WRP) and a Stacked Autoencoder (SAE). The EGNNN, an innovative neural network model created for earthquake parameter prediction, specifically location and magnitude, uses these extracted features as input. The Osprey optimization algorithm (OOA) is employed to enhance the EGNNN model. A crucial component of EEW systems, dependable and quick alert delivery is ensured by the proposed system’s integration with an Internet of Things (IoT) framework. The EGNNN swiftly evaluates earthquake parameters and sends this vital data to a centralized IoT system, enabling pertinent entities to act promptly. Performance evaluation is conducted on the Python platform, comparing the proposed technique with existing methods. The proposed method EGNNN-EPO-IoT achieves a higher warning time of 23.34%, 3.45%, and 7.86%; 12.23%, 32.21%, and 22.09% higher accuracy compared to the other existing techniques such as 3S-AE-CNN-EPO-IoT (3 sec-Autoencoder-Convolutional neural network-Earthquake parameter observation-IoT), XGB-EPO-IoT (Extreme Gradient Boosting-EPO-IoT), and SVM-EPO-IoT (Support Vector Machine-EPO-IoT).