A LLM-Driven GeoAI Pipeline for Sustainable Development Indicators: Conversational Insights
SDL Internship Program Presentation
Liu Zhao
liu.zhao@utas.edu.au
Mentor: Dr. Devika Jain
Dr. Yongze Song
Outline
Sustainable Development Goal (SDG) indicators are used to measure global progress in economic, social, and environmental domains. However, due to the vast amount of data, diverse sources, and complex analysis required, efficiently extracting and utilizing these indicators remains a challenge.
In recent years, the advancement of Large Language Models (LLMs) and Geospatial Artificial Intelligence (GeoAI) has provided new possibilities for SDG indicator analysis. Traditional geospatial analysis relies on complex queries and specialized tools, creating a high entry barrier. LLMs, however, enable natural language interactions, lowering the difficulty of data access and analysis.
This study develops an LLM-driven GeoAI pipeline that allows users to obtain spatial analysis results for SDG indicators through conversational queries. The pipeline integrates PostGIS for geospatial data processing and LLMs for natural language query interpretation, enabling intelligent querying, dynamic visualization, and in-depth insights.
This system not only enhances the interpretability of SDG data but also improves policy-making, environmental monitoring, and socio-economic assessments. Through conversational interactions, users can explore and analyze SDG indicators without requiring specialized expertise, fostering more transparent and data-driven decision-making.
Background
https://databank.worldbank.org/source/sustainable-development-goals-(sdgs)
Develop an LLM-driven GeoAI pipeline that enables users to explore, analyze, and visualize Sustainable Development Goal (SDG) indicators through natural language interactions, making complex geospatial data more accessible and actionable.
Aim and Objective
Methodology
GPT-4o
NL2SQL
Prompt Engineering
PostGIS
Respond
Leafmap
RAG
Workflow Overview
Prompt Engineering
User inputs a natural language query related to SDG indicators.
GPT-4o Processing
GPT-4o interprets the query and determines whether it requires:
A structured data query (processed through NL2SQL for PostGIS.
Retrieval-Augmented Generation (RAG) Module
GPT-4o generates a natural language response using the retrieved knowledge.
NL2SQL Query Generation
The SQL query is optimized to fetch relevant SDG indicators from a PostGIS database.
PostGIS Geospatial Processing
The generated SQL query is executed in PostGIS, retrieving spatially relevant SDG data.
Leafmap-Based Visualization
The retrieved geospatial data is passed to Leafmap, which generates interactive maps and visualizations.
Results
Results
Query Description | SQL Query |
Basic | |
Query all data | SELECT * FROM "SDG" |
Query basic country information | SELECT "name", "continent", "region", "geometry" FROM "SDG" |
Medium | |
Query most populated countries | SELECT "name", "Population, total", "geometry" FROM "SDG" WHERE "Population, total" > 100000000 LIMIT 100 |
Query low fertility rate countries | SELECT "name", "Fertility rate, total (births per woman)", "geometry" FROM "SDG" WHERE "Fertility rate, total (births per woman)" < 2 LIMIT 100 |
Query countries with high forest coverage | SELECT "name", "Forest area (sq. km)", "geometry" FROM "SDG" WHERE "Forest area (sq. km)" > 1000000 LIMIT 100 |
Query countries with high net migration | SELECT "name", "Net migration", "geometry" FROM "SDG" WHERE "Net migration" > 100000 LIMIT 100 |
High | |
Which countries have high fertility rates but low life expectancy? | SELECT "name", "Fertility rate, total (births per woman)", "Life expectancy at birth, total (years)", "geometry" FROM "SDG" WHERE "Fertility rate, total (births per woman)" > 4 AND "Life expectancy at birth, total (years)" < 65 LIMIT 100 |
Which countries have high adolescent fertility rates and high child mortality? | SELECT "name", "Adolescent fertility rate (births per 1,000 women ages 15-19)", "Mortality rate, under-5 (per 1,000 live births)", "geometry" FROM "SDG" WHERE "Adolescent fertility rate (births per 1,000 women ages 15-19)" > 50 AND "Mortality rate, under-5 (per 1,000 live births)" > 60 LIMIT 100 |
Which countries have high net migration but low GDP? | SELECT "name", "Net migration", "GDP (current US$)", "geometry" FROM "SDG" WHERE "Net migration" > 100000 AND "GDP (current US$)" < 100000000000 LIMIT 100 |
Future things can do