Because of its communication volume constraints, scientific observations by nanosatellites need to reduce downlink data by onboard data preprocessing. Therefore, we tried to classify time series data of the geomagnetic field obtained by the SWARM satellite to determine the most appropriate method for onboard classification of a phenomenon in the geomagnetic field. The classifications have been executed using rule-based, K-means, and combined CNN methods. The experimental results demonstrated the effectiveness of the machine-learning model with LSTM networks.The 2023 International Conference on Artificial Life and Robotics (ICAROB 2023), February 9-12, 2023, on line, Oita, Japanconference pape