# NCRP

> A mapping and machine-learning capstone exploring reforestation opportunities in Washington, with a CNN served through Ray on Kubernetes.
>
> The Markdown version of https://imminentlatency.com/projects/ncrp. For an index of the whole site, see https://imminentlatency.com/llms.txt.

From satellite imagery to an interactive map. The Negative Carbon Reforestation Project brought together geospatial data, machine learning, and cloud infrastructure to help people explore potential planting locations in Washington state.

- **Status:** Archived
- **Role:** Cloud & ML Engineer · team of four
- **Stack:** React, OpenLayers, Spring Boot, TensorFlow, Ray, AWS EKS
- **Started:** September 2021
- **Platform:** Web application & model-serving API
- **Source:** https://github.com/Negative-Carbon-Reforestation-Project/openlayers-springboot-react-demo

## Overview

NCRP was my senior capstone at Bellevue College, built with three classmates between September 2021 and June 2022. We wanted to make reforestation data easier to explore: bring satellite imagery, land-cover information, and model predictions into a map where someone could investigate a location without first assembling the data themselves.

### From a map query to a prediction

The team built a React and OpenLayers frontend backed by a Java Spring Boot API. Users could search for a place, drop a marker, and explore geographic layers in 2D or 3D. The backend combined tree-species data queried through OpenSearch with a prediction from the model-serving service, bringing both into the same location-based response.

### My contribution

My focus was the cloud infrastructure and machine-learning side. I designed the AWS EKS infrastructure, deployed backend services on Kubernetes, and worked on the data collection, analysis, and CNN design and training. I also deployed and served the model with Ray on Kubernetes. The wider application, geospatial processing, interface, and model development were a team effort.

### Deep learning on Ray

The [deep-learning-on-ray repository](https://github.com/Negative-Carbon-Reforestation-Project/deep-learning-on-ray) holds the model work behind NCRP: imagery-download utilities, the TensorFlow/Keras training notebook, a saved reforestation model, and Ray Serve deployment code. The serving implementation accepts coordinates, retrieves imagery for the location, and passes it through the model to return a prediction to the application.

This was the connection between experimenting with a model in a notebook and making it available through a web service. The repository also retains smaller Ray examples used while developing that workflow.

### Project status

The capstone concluded in June 2022, and the hosted demo has since been retired. This page preserves the project as an academic exploration of reforestation screening; its predictions were not a guarantee of planting success or measured carbon removal.

The [web application repository](https://github.com/Negative-Carbon-Reforestation-Project/openlayers-springboot-react-demo) and the model repository preserve the two parts of the work: exploring a location and serving the prediction behind it.

## Key features

### Explore a location

Search for a place or drop a map marker to query reforestation predictions and tree-species data through a shared API.

### See the geographic context

Compare imagery and map layers for soil, slope, fire history, and reforestation opportunity, with 2D and 3D views.

### Bring the model into the application

A TensorFlow/Keras CNN, served through Ray on Kubernetes, connects imagery-based predictions to the Spring Boot backend and web map.
