Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2024 May 28:10:e2048.
doi: 10.7717/peerj-cs.2048. eCollection 2024.

A cosine adaptive particle swarm optimization based long-short term memory method for urban green area prediction

Affiliations

A cosine adaptive particle swarm optimization based long-short term memory method for urban green area prediction

Hao Tian et al. PeerJ Comput Sci. .

Abstract

In the quest for sustainable urban development, precise quantification of urban green space is paramount. This research delineates the implementation of a Cosine Adaptive Particle Swarm Optimization Long Short-Term Memory (CAPSO-LSTM) model, utilizing a comprehensive dataset from Beijing (1998-2021) to train and test the model. The CAPSO-LSTM model, which integrates a cosine adaptive mechanism into particle swarm optimization, advances the optimization of long short-term memory (LSTM) network hyperparameters. Comparative analyses are conducted against conventional LSTM and Partical Swarm Optimization (PSO)-LSTM frameworks, employing mean absolute error (MAE), root mean square error (RMSE), and mean absolute percentage error (MAPE) as evaluative benchmarks. The findings indicate that the CAPSO-LSTM model exhibits a substantial improvement in prediction accuracy over the LSTM model, manifesting as a 66.33% decrease in MAE, a 73.78% decrease in RMSE, and a 57.14% decrease in MAPE. Similarly, when compared to the PSO-LSTM model, the CAPSO-LSTM model demonstrates a 58.36% decrease in MAE, a 65.39% decrease in RMSE, and a 50% decrease in MAPE. These results underscore the efficacy of the CAPSO-LSTM model in enhancing urban green space area prediction, suggesting its significant potential for aiding urban planning and environmental policy formulation.

Keywords: Cosine adaptive; Long series prediction; Long-short term memory; Particle swarm optimization; Urban green area.

PubMed Disclaimer

Conflict of interest statement

The authors declare that they have no competing interests. Ke Yan is employed by Construction Third Engineering Bureau Installation Engineering Co., Ltd.

Figures

Figure 1
Figure 1. Architecture diagram LSTM.
The image depicts an LSTM (long short-term memory) neural network architecture, illustrating the flow and transformation of data within. It shows the internal gating mechanisms—forget, input, and output gates—of an LSTM cell, how they process the input X, and generate an output Y. The LSTM layer connects to a fully connected layer that integrates the features, leading to the final output layer where the result is produced.
Figure 2
Figure 2. Flowchart of CAPSO-LSTM.
The process begins with normalizing the input data, followed by initializing the particle velocity and position. It then calculates the particle fitness and checks if the predefined number of iterations has been reached. If not, it updates the individual and global optima using CAPSO. This loop continues until the iteration condition is met. Once completed, the process outputs the optimal parameters for the LSTM model, which are then used to predict the green area. The flow is sequential and iterative, with a decision point that loops back until the stopping criterion is satisfied.
Figure 3
Figure 3. Train and prediction results of LSTM.
The black line indicates the predicted values generated by an LSTM model, while the green line represents the actual observed values.
Figure 4
Figure 4. Train and prediction result of PSO-LSTM.
The black line indicates the predicted values generated by an PSO-LSTM model, while the orange line represents the actual observed values.
Figure 5
Figure 5. Train and prediction result of CAPSO-LSTM.
The black line indicates the predicted values generated by an CAPSO-LSTM model, while the purple line represents the actual observed values.

Similar articles

References

    1. Aly D, Dimitrijevic B. Public green space quantity and distribution in Cairo, Egypt. Journal of Engineering and Applied Science. 2022;69(1):221. doi: 10.1186/s44147-021-00067-z. - DOI
    1. Aranha C, Villalón CLC, Campelo F, Dorigo M, Ruiz R, Sevaux M, Sörensen K, Stützle T. Metaphor-based metaheuristics, a call for action: the elephant in the room. Swarm Intelligence. 2022;16(1):1–6. doi: 10.1007/s11721-021-00202-9. - DOI
    1. Basu S, Nagendra H. Perceptions of park visitors on access to urban parks and benefits of green spaces. Urban Forestry and Urban Greening. 2021;57(52):126959. doi: 10.1016/j.ufug.2020.126959. - DOI
    1. Bharti, Redhu P, Kumar K. Short-term traffic flow prediction based on optimized deep learning neural network: PSO-BI-LSTM. Physica A: Statistical Mechanics and its Applications. 2023;625(22):129001. doi: 10.1016/j.physa.2023.129001. - DOI
    1. Das DK. Factors and strategies for environmental justice in organized urban green space development. Urban Planning. 2022;7(2):160–173. doi: 10.17645/up.v7i2.5010. - DOI

LinkOut - more resources