Hydrogen plays an important role in decarbonising energy systems due to its potential to be produced from renewable energy sources and the fact that when consumed, it does not lead to greenhouse gas or pollutant emissions. Integrating renewable energy systems with advanced machine learning algorithms offers a transformative approach to overcome the challenges in hydrogen production and improve its sustainability and environmental viability. In this study, green hydrogen production by PEM electrolyzers integrated into photovoltaic panels, wind turbine and hybrid renewable energy systems are predicted by machine learning algorithms such as KNN, XGBoost, Lasso, ANN, LSTM, and RF based on 10 years of meteorological data for various locations in Türkiye. Green hydrogen production amounts are determined for Aydın, Bozcaada, Istanbul, Niğde, and Samsun locations, and the performance of the models is evaluated according to R2, MAE, MSE, and RMSE criteria. The findings reveal that LSTM in Aydın, ANN in Bozcaada, Istanbul, and Niğde, Lasso in Samsun, KNN in Aydın and Bozcaada, Lasso in Samsun, and the RF algorithm in all locations are used for green hydrogen production. It is determined that 557 fuel cell vehicles can be fuelled and 399,911 kg CO₂ emissions can be prevented annually with hydrogen produced using wind energy in Bozcaada. This study highlights the practical implications of integrating machine learning techniques into hydrogen production. Furthermore , the study supports the realisation of the United Nations Sustainable Development Goals (3, 7, 11, and 13) by promoting the transition to green hydrogen and provides valuable insights into the production, storage, and sectoral applications of hydrogen. These findings emphasise the viability of utilising hydrogen technology as a crucial catalyst for a sustainable energy future. • Renewable-powered PEM systems offer a sustainable solution for hydrogen production. • Machine learning boosts precision in green hydrogen production forecasts. • Wind energy reduces 399,911 kg of CO₂ emissions in Bozcaada annually. • 557 fuel cell vehicles can be fuelled by Bozcaada's hydrogen production. [ABSTRACT FROM AUTHOR]