We proposed a novel approach to evolve LSTM networks utilizing intelligent optimization algorithms and address time-series classification problems in EdgeIoT. Meanwhile, a new optimizer called cultural society and civilization (CSC) algorithm is proposed to reduce the probability of stagnated in the local optima and increase the convergence speed. The suggested method could relieve the problem that the traditional data mining and pattern extraction methods cannot guarantee high accuracy and are hard to deploy on terminal devices. The proposed CSC algorithm and CSC-optimized LSTM model is examined on benchmark problems and demonstrates remarkable superiority over traditional methods and can be applied to support EdgeIoT for learning and processing.