Abstract The ionospheric delay significantly impacts GNSS positioning accuracy. To address this, an Artificial Neural Network (ANN) was developed using the high-quality COSMIC-2 ionospheric profile dataset to predict the Total Electron Content (TEC). ANNs are adept at addressing both linear and nonlinear challenges. For this research, eight distinct ANNs were cultivated. These ANNs were designed with the following inputs Year, Month, Day, Hour, Latitude, and Longitude. Along with solar and geomagnetic parameters such as the F10.7 solar radio flux index, the Sunspot Number (SSN), the Kp index, and the ap index. The goal was to discern the most influential parameters on ionosphere prediction. After pinpointing these key parameters, an enhanced model utilizing a pioneering technique of a secondary ANN was employed with the main ANN to predict TEC values for events in 2023. The study’s findings indicate that solar parameters markedly enhance the model’s accuracy. Notably, the augmented model featuring a prelude secondary network achieved a stellar correlation coefficient of 0.99. Distributionally, 41 % of predictions aligned within the (−1≤ ΔTEC ≤1) TECU spectrum, 28 % nestled within the (1< ΔTEC ≤2) and (−2≤ ΔTEC <−1) TECU ambit, while a substantial 30 % spanned the broader (2< ΔTEC ≤5) and (−5≤ ΔTEC <−2) TECU range. In essence, this research underscores the potential of incorporating solar parameters and advanced neural network techniques to refine ionospheric delay predictions, thus boosting GNSS positioning precision.