Introduction to Geospatial Machine Learning with SRAI
This tutorial offers a thorough introduction to the srai library for Geospatial Artificial Intelligence. Participants will learn how to use this library for geospatial tasks like downloading and processing OpenStreetMap data, extracting features from GTFS data, dividing an area into smaller regions, and representing regions in a vector space using various spatial features. Additionally, participants will learn to pre-train embedding models and train predictive models for downstream tasks.
In this tutorial, we intend to provide a comprehensive introduction to the Spatial Representations for Artificial Intelligence (srai) library. Participants will learn how to utilize this library for various geospatial applications, such as downloading and processing OpenStreetMap data, extracting features from GTFS data, splitting a given area into smaller regions, and embedding regions into a vector space based on different spatial features. Moreover, users will learn how to pre-train a model of their choice and build predictive models for use in downstream tasks.
By the end of the tutorial, attendees will be able to:
- Install and set up the SRAI library.
- Use SRAI to download and process geospatial data.
- Apply various regionalization and embedding techniques to geospatial data.
- Utilize pre-trained embedding models for clustering and similarity search.
- Build predictive models on top of SRAI embeddings
- Pre-train available models from scratch.
- Understand the potential applications and future enhancements of the SRAI library.
Initialize Python virtual environment (optional but recommended):
python -m venv venv
source venv/bin/activate
And then install the dependencies:
pip install -r requirements.txt
After that, the notebooks can be run. You can start with the introductory one.
It is possible also to run the jupyter notebooks as a slideshow:
> jupyter notebook
Edit/Exit RISE Slideshow (or alt+r)
in the opened notebook
Use decktape. An exemplary command:
./node_modules/.bin/decktape rise -s 1920x1080 http://localhost:8888/notebooks/02_srai.ipynb?token=<copy-token> ./export/02_srai.pdf
Visit export folder for the rendered slides.