Postharvest losses of apples during storage and transportation pose a significant challenge to food security and economic benefits. This research proposed a framework for apple spoilage detection and prediction that combines multi-gas sensing, deep learning, and a cloud–edge device. Relevant environmental parameters were continuously collected from the storage environment and transmitted to a cloud platform for unified management and model training. Enhanced models LSTM-KAN, BiLSTM-KAN, and TCN-KAN were constructed by integrating the Kolmogorov–Arnold network (KAN) module into the neural network architecture. These models demonstrated higher prediction accuracy and robustness in apple spoilage prediction tasks and significantly improved training convergence speed. Based on multi-sensor array data capturing key physicochemical parameters, the trained models predicted the composite spoilage index (CSI), which quantitatively reflected the degree of apple spoilage, with the TCN-KAN model showing the best performance (({R}_{p}^{2}) = 0.968). Furthermore, a cloud–edge device collaboration framework was constructed to support centralized model updates, remote synchronization, and real-time inference. To ensure efficient deployment on resource-constrained devices, a structured pruning technique was developed to reduce model size and improve inference speed while minimizing the loss of prediction accuracy. The pruned TCN-KAN model achieved a 42.68% speed improvement. The proposed method provides an accurate, scalable, and cost-effective approach for real-time monitoring and prediction of spoilage in stored apples, highlighting the potential of deep learning and edge intelligence in smart agriculture applications.