This repository contains the materials and source code for my presentation at the Ghana R User Community Conference, under the theme:
“Harnessing R for Sustainable Development: Innovations, Collaborations, and Health Impacts”
This presentation introduces how Machine Learning can be used in Environmental Monitoring using R. The focus is on practical applications such as:
- Forecasting rainfall using historical weather patterns (temperature and humidity)
- Using
tidymodelsfor reproducible ML workflows - Leveraging open-source R tools for data science and sustainability
| Folder/File | Description |
|---|---|
scripts/ |
Contains all R scripts used in the live demo and data prep |
data/ |
Example environmental dataset (synthetic) |
Conference Presentation.pdf |
Presentation slides (PowerPoint) |
R Conference schedule.pdf |
Conference program schedule |
README.md |
Project documentation (this file) |
Make sure you have R (≥ 4.1.0) and the following packages installed:
```r install.packages(c("tidymodels", "ggplot2", "lubridate", "dplyr", "readr"))
-
Open the project folder in RStudio.
-
Navigate to the script in
R/predict_rainfall_demo.R(or equivalent). -
Run the script to:
-
Load simulated weather data (monthly temperature, humidity, and rainfall)
-
Train a random forest model using
tidymodels -
Predict rainfall
-
Visualize predictions
-
The demo illustrates how machine learning (Random Forest) can be applied to forecast future rainfall based on previous months' temperature and humidity. This type of analysis is useful for:
-
Climate adaptation
-
Agricultural planning
-
Water resource management
George Kyei Agyen
PhD Researcher in Coastal Engineering
University of Cape Coast, Ghana
-
🔬 Research Focus: Wave dynamics, coastal erosion, sediment transport
-
🤖 Interests: Machine Learning, R programming, environmental data analysis
Reach out via LinkedIn or email me at gkagyen@live.com.