Weatheria

ウェザリア (Wezaria)

The name is inspired by a fictional sky island from the show One Piece, a place known for its innovative connection to weather. This inspiration aligns with the project's mission to merge advanced machine learning with climate data, delivering precise predictions of Earth surface temperatures and meaningful climate insights.

Weatheria illustration

What Does Weatheria Do?

Weatheria predicts Earth surface temperatures using advanced machine learning techniques. By analyzing historical climate data, it forecasts global warming trends based on spatial (latitude, longitude) and temporal (year, month) features. The insights aim to contribute to a deeper understanding of climate change's impact and help build resilience against its effects.

How It Was Built.

  • Frontend: Built using Nuxt.js with TailwindCSS for styling and extended with DaisyUI components for a modern, responsive design. The frontend is deployed on Vercel.
  • Backend: Hosted on Google Cloud's Virtual Machine (VM) and containerized using Docker for easy scalability and reliable deployment. The backend was developed with FastAPI, responsible for serving predictions from pre-trained machine learning models.
  • Machine Learning: The models were built using Python and the Scikit-learn library. Four algorithms were used: Random Forest, K-Nearest Neighbor (KNN), Support Vector Regression (SVR), and Linear Regression. The Random Forest model achieved the highest accuracy with an R² score of 0.9857.
  • Images and Illustrations: The visuals used in the project are sourced from Storyset, under their license agreement. Special thanks for providing high-quality illustrations to enhance the user interface.

Dataset and Data Handling.

The dataset used in this project is sourced from the Berkeley Earth Surface Temperature repository, a trusted resource for historical climate data. It includes records of average land temperatures collected globally, along with metadata such as date, latitude, longitude, and uncertainty levels. To ensure data quality:

  • Records prior to 1870 were excluded due to data incompleteness.
  • Missing temperature values were removed to maintain dataset integrity.
  • Features such as year, month, latitude, and longitude were carefully extracted for model training.

These steps resulted in a clean and structured dataset, allowing the models to effectively capture spatial and temporal patterns in global temperature changes.

Machine Learning Models and Results.

Four machine learning algorithms were employed to analyze the data: Random Forest, K-Nearest Neighbor (KNN), Support Vector Regression (SVR), and Linear Regression. Each model was evaluated using metrics such as Mean Absolute Error (MAE), Median Absolute Error (MedAE), Mean Squared Error (MSE), Root Mean Squared Error (RMSE), and R² scores. Random Forest emerged as the most accurate model with an R² score of 0.9857.

ModelMAEMedAEMSERMSER² Score
Random Forest M10.77490.50281.32581.15140.9857
Random Forest M20.77410.50051.32841.15260.9857
KNN M11.14710.77362.73031.65240.9705
KNN M25.22743.483452.94417.27630.4287
SVR M12.00811.45737.60862.75840.9179
SVR M25.92414.948458.00187.61590.3741
SVR M36.85015.171584.93339.21590.0835
Linear SVR M16.85045.164984.93639.21610.0835
Linear Regression M17.08426.030779.78468.93220.1391
Linear Regression M27.13006.091180.70028.98330.1292

Key Results.

The project analyzed global climate data to predict temperature trends with remarkable accuracy. Below is a summary of the performance of the models:

ModelConfigurationR² Score
Random ForestFinal Features0.9857
KNNFinal Features0.9706
SVRRBF Kernel0.9179
Linear RegressionFinal Features0.1391

About Me.

Hello! I'm Edwin Peraza, a passionate software developer with a strong focus on leveraging technology to solve impactful problems. This project, a machine learning-powered weather prediction system, was developed during my time at California State University, Fullerton. While it was a class project, I contributed the majority of the work, including the implementation, research, and deployment.

Weatheria

Built by Edwin Peraza to showcase machine learning insights into Earth's surface temperatures.

© 2025 Edwin Peraza. All rights reserved.