AI-Enhanced Hybrid PoW/PoS Consensus for Secure and Energy-Efficient Blockchain Microgrids
Received: 19 May 2025 | Revised: 11 June 2025 and 16 June 2025 | Accepted: 18 June 2025 | Online: 2 August 2025
Corresponding author: Sadly Syamsuddin
Abstract
This study proposes the integration of a hybrid Proof of Work/Proof of Stake (PoW/PoS) consensus mechanism with a Long Short-Term Memory (LSTM) model for anomaly detection in blockchain-based microgrids. The hybrid PoW/PoS model is designed to address common issues in blockchain systems, such as 51% attacks, double-spending, and high energy consumption, by optimizing energy usage and enhancing security. Simulation results show that the system can process transactions with an average throughput of 37.25 transactions per second (TPS), an average latency of 26.84 milliseconds per transaction (ms/tx), and extremely efficient energy consumption per transaction (0.01 kWh/tx). The LSTM model applied for anomaly detection achieves an 89.10% detection rate, a 0.00% false positive rate, and a 0.12 s recovery time, indicating the system's reliability in facing attacks. The hybrid PoW/PoS system demonstrates advantages in both energy efficiency and resilience to attacks compared to individual PoW and PoS systems. This research contributes to the development of safer, more efficient, and scalable blockchain-based microgrids by integrating Artificial Intelligence (AI) to strengthen the system against anomalies and threats.
Keywords:
renewable energy, microgrid, blockchain, hybrid PoW/PoS, Artificial Intelligence (AI), Long Short-Term Memory (LSTM)Downloads
References
C. D. Iweh, S. Gyamfi, E. Tanyi, and E. Effah-Donyina, "Distributed Generation and Renewable Energy Integration into the Grid: Prerequisites, Push Factors, Practical Options, Issues and Merits," Energies, vol. 14, no. 17, Sep. 2021, Art. no. 5375. DOI: https://doi.org/10.3390/en14175375
M. B. Nappu, A. Arief, and W. A. Ajami, "Energy Efficiency in Modern Power Systems Utilizing Advanced Incremental Particle Swarm Optimization–Based OPF," Energies, vol. 16, no. 4, Feb. 2023, Art. no. 1706. DOI: https://doi.org/10.3390/en16041706
"Net Zero by 2050: A Roadmap for the Global Energy Sector," International Energy Agency, May 2021. [Online]. Available: https://www.iea.org/reports/net-zero-by-2050.
"Microgrid Market Size, Share & Growth Analysis Report," Grand View Research, GVR-1-68038-527-4, 2023. [Online]. Available: https://www.grandviewresearch.com/industry-analysis/microgrid-market.
"The Paris Agreement." United Nations Framework Convention on Climate Change. https://unfccc.int/process-and-meetings/the-paris-agreement.
J. Schnidrig, A. Chuat, C. Terrier, F. Maréchal, and M. Margni, "Power to the People: On the Role of Districts in Decentralized Energy Systems," Energies, vol. 17, no. 7, Apr. 2024, Art. no. 1718. DOI: https://doi.org/10.3390/en17071718
C. Mullaney, A. Aijaz, N. Sealey, and B. Holden, "Peer-to-Peer Energy Trading meets IOTA: Toward a Scalable, Low-Cost, and Efficient Trading System," in 2022 IEEE/ACM 15th International Conference on Utility and Cloud Computing, Vancouver, WA, USA, 2022, pp. 399–406. DOI: https://doi.org/10.1109/UCC56403.2022.00069
S. N. Islam, "A Review of Peer-to-Peer Energy Trading Markets: Enabling Models and Technologies," Energies, vol. 17, no. 7, Apr. 2024, Art. no. 1702. DOI: https://doi.org/10.3390/en17071702
A. Zekiye, O. Bouachir, Ö. Özkasap, and M. Aloqaily, "Blockchain-enabled Energy Trading and Battery-based Sharing in Microgrids," in ICC 2024 - IEEE International Conference on Communications, Denver, CO, USA, 2024, pp. 4674–4679. DOI: https://doi.org/10.1109/ICC51166.2024.10622684
H. K. Abdali, M. A. Hussain, Z. A. Abduljabbar, and V. O. Nyangaresi, "Implementing Blockchain for Enhancing Security and Authentication in Iraqi E-Government Services," Engineering, Technology & Applied Science Research, vol. 14, no. 6, pp. 18222–18233, Dec. 2024. DOI: https://doi.org/10.48084/etasr.8828
M. Saad et al., "Exploring the Attack Surface of Blockchain: A Systematic Overview." arXiv, Apr. 06, 2019. DOI: https://doi.org/10.1002/9781119519621.ch3
A. K. Jain, N. Gupta, and B. B. Gupta, "A survey on scalable consensus algorithms for blockchain technology," Cyber Security and Applications, vol. 3, Dec. 2025, Art. no. 100065. DOI: https://doi.org/10.1016/j.csa.2024.100065
G. Karame and S. Capkun, "Blockchain Security and Privacy," IEEE Security & Privacy, vol. 16, no. 4, pp. 11–12, Jul. 2018. DOI: https://doi.org/10.1109/MSP.2018.3111241
"Cambridge Blockchain Network Sustainability Index." The Cambridge Centre for Alternative Finance. https://ccaf.io/cbnsi/cbeci.
S. A. Sarkodie, M. A. Amani, M. Y. Ahmed, and P. A. Owusu, "Assessment of Bitcoin carbon footprint," Sustainable Horizons, vol. 7, Sep. 2023, Art. no. 100060. DOI: https://doi.org/10.1016/j.horiz.2023.100060
C. Stoll, L. KlaaBen, and U. Gallersdörfer, "The Carbon Footprint of Bitcoin." Social Science Research Network, Rochester, NY, Feb. 16, 2019. DOI: https://doi.org/10.2139/ssrn.3335781
G.-T. Nguyen and K. Kim, "A Survey about Consensus Algorithms Used in Blockchain," Journal of Information Processing Systems, vol. 14, no. 1, pp. 101–128, Feb. 2018.
S. Fahim, S. K. Rahman, and S. Mahmood, "Blockchain: A Comparative Study of Consensus Algorithms PoW, PoS, PoA, PoV," International Journal of Mathematical Sciences and Computing, vol. 9, no. 3, pp. 46–57, Aug. 2023. DOI: https://doi.org/10.5815/ijmsc.2023.03.04
F. Saleh, "Blockchain without Waste: Proof-of-Stake," The Review of Financial Studies, vol. 34, no. 3, pp. 1156–1190, Mar. 2021. DOI: https://doi.org/10.1093/rfs/hhaa075
G. van Leeuwen, T. AlSkaif, M. Gibescu, and W. van Sark, "An integrated blockchain-based energy management platform with bilateral trading for microgrid communities," Applied Energy, vol. 263, Apr. 2020, Art. no. 114613. DOI: https://doi.org/10.1016/j.apenergy.2020.114613
Downloads
How to Cite
License
Copyright (c) 2025 Sadly Syamsuddin, Salama Manjang, Muhammad Bachtiar Nappu, Ady Wahyudi Paundu

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain the copyright and grant the journal the right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) after its publication in ETASR with an acknowledgement of its initial publication in this journal.
