The ionosphere plays a critical role in the functioning of the atmosphere and the planet. Fluctuations and some anomalies in the ionosphere occur as a result of solar flares caused by coronal mass ejections, seismic motions, and geomagnetic activity. The Total electron content (TEC) of the ionosphere is the most important metric for studying its morphology. The purpose of this article is to examine the relationships that exist between earthquakes and TEC data. In order to accomplish this, we present a classification method for the ionosphere's TEC data that is based on earthquakes. Deep autoencoder techniques are used for the feature extraction from TEC data. The features that were obtained were fed into dense neural networks, which are used to perform classification. In order to assess the suggested classification model, the results of the classification model are compared to the results of the LDA (Linear Discriminant Analysis) classifier model.The research results show that the suggested model enhances the accuracy of differentiating earthquakes by around 0.94, making it a useful tool for identifying ionospheric disturbances in terms of earthquakes.