Optimizing Solar Microgrid Locations in Morocco Using Geospatial Analysis and Random Forest Machine Learning Techniques

Expanding access to renewable energy in rural regions is critical for sustainable green development and equitable access to electricity. Morocco, one of Africa’s leading countries in renewable energy development, has invested in large-scale electric grids/projects such as the Noor Ouarzazate Solar Complex and national energy plans targeting 52% renewable electricity by 2030 (El Hafdaoui et al., 2025). However, rural Moroccan communities remain disadvantaged and dependent on fossil fuels. This study aims to address this gap by combining geospatial data analysis with machine learning in order to identify the optimal regions for solar microgrid development. Five key monthly datasets were obtained: net downward shortwave solar radiation (FLDAS) and cloud fraction/cover from NASA’s Moderate Resolution Imaging Spectroradiometer (MODIS) data on NASA Giovanni, as well as terrain elevation (SRTM), land cover classification (MODIS), and night-time light intensity (VIIRS) from Google Earth Engine. Each dataset was processed, normalized, and visualized using Python in Google Colab. A weighted composite suitability map was generated using matplotlib, emphasizing solar irradiance and terrain (weighted at 0.35 each), along with cloud cover and urban proximity via night lights (0.15 each), and land cover as a binary suitability mask. 100 labeled data points (50 suitable, 50 unsuitable) were manually selected using QGIS. A Random Forest ML classifier was trained and tested on these layers to predict suitability across the map of Morocco and yielded a classification map consistent with the composite map. This study demonstrates the potential of a data-driven approach for solar microgrid siting to support effective planning and equitable energy access in rural regions and serves as a foundation that can be further refined and adapted for broader applications.

Institutions

Publication Details

Journal
George Mason University
Published
2025-09-18
DOI
https://doi.org/10.13021/jssr2025.5305
Primary Topic
Solar Radiation and Photovoltaics
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Optimizing Solar Microgrid Locations in Morocco Using Geospatial Analysis and Random Forest Machine Learning Techniques

George Mason University
Solar Radiation and Photovoltaics
article

Optimizing Solar Microgrid Locations in Morocco Using Geospatial Analysis and Random Forest Machine Learning Techniques

article en

Abstract

Expanding access to renewable energy in rural regions is critical for sustainable green development and equitable access to electricity. Morocco, one of Africa’s leading countries in renewable energy development, has invested in large-scale electric grids/projects such as the Noor Ouarzazate Solar Complex and national energy plans targeting 52% renewable electricity by 2030 (El Hafdaoui et al., 2025). However, rural Moroccan communities remain disadvantaged and dependent on fossil fuels. This study aims to address this gap by combining geospatial data analysis with machine learning in order to identify the optimal regions for solar microgrid development. Five key monthly datasets were obtained: net downward shortwave solar radiation (FLDAS) and cloud fraction/cover from NASA’s Moderate Resolution Imaging Spectroradiometer (MODIS) data on NASA Giovanni, as well as terrain elevation (SRTM), land cover classification (MODIS), and night-time light intensity (VIIRS) from Google Earth Engine. Each dataset was processed, normalized, and visualized using Python in Google Colab. A weighted composite suitability map was generated using matplotlib, emphasizing solar irradiance and terrain (weighted at 0.35 each), along with cloud cover and urban proximity via night lights (0.15 each), and land cover as a binary suitability mask. 100 labeled data points (50 suitable, 50 unsuitable) were manually selected using QGIS. A Random Forest ML classifier was trained and tested on these layers to predict suitability across the map of Morocco and yielded a classification map consistent with the composite map. This study demonstrates the potential of a data-driven approach for solar microgrid siting to support effective planning and equitable energy access in rural regions and serves as a foundation that can be further refined and adapted for broader applications.

George Mason University
George Mason University (US)
Openalex Percentile: Top 24%
Solar Radiation and Photovoltaics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.