In the first path, satellite imagery is passed through a convolutional image encoder to
extract high-level image embeddings that capture visual patterns in the raw images.
Simultaneously, in the second path, the geospatial metadata of images is used to recover the latitude and longitude
coordinates, which is used to prompt a text generator (a pretrained LLM) to summarize relevant information of the respective
geospatial context in the form of natural language.
The generated text descriptions are then encoded into contextualized semantic embeddings via a pretrained text encoder.
The image and text embeddings are combined through a multimodal fusion module,
which allows a lightweight LULC classifier to capitalize on both visual features and geospatial context.
Data
The EuroSAT dataset
[13] is used for benchmarking model performances in this project, which covers 34 countries and
10 land cover classes. The 10 LULC classes are:
1. Industrial, 2. Residential, 3. Annual Crop, 4. Permanent Crop, 5. River, 6. Sea & Lake,
7. Herbaceous Vegetation, 8. Highway, 9. Pasture, 10. Forest.
The dataset has a 13-band version and a 3-band (RGB) version, with the latter being used in this project.
The original dataset contains 27,000 images (each has 64x64 pixels). Due to the timeline and API cost constraints, a subset of 2,000
images (200 for each LULC class) is used for training and evaluating models in this project. The data is split into a training set
of 1,700 images and a testing set of 300 images, with the 10 LULC classes equally balanced in both splits.
Models
The image encoder models considered in this project include:
(1) ResNet-50;
(2) 2-layer CNN.
To facilitate lightweight multimodal fusion, pre-trained ResNet-50 is used without any fine-tuning,
with the model loaded from the
models module of the python library
torchvision.
ResNet-50
[14] has been pretrained on a wide range of natural images, rendering it an ideal generalized image encoder.
On the other hand, the lightweight 2-layer CNN is trained from scratch in both unimodal and multimodal manners
as elaborated in the
Experimental Setup section below.
The text generator and text encoding models are selected in pairs. The two combinations considered in this project include:
(1) (text generator) gpt-4o-mini + (text encoder) openai text-embedding-3-small;
(2) (text generator) gemini-2.5-flash-preview-04-17 + (text encoder) google text-embedding-004
These two model combinations will be hereafter referred to as
openai and
gemini
respectively, for simplicity.
All pretrained text generation and text embedding models are called through APIs, without any model modification.
The generation of geospatial text starts with extracting the center pixel coordinates of each satellite image.
The original coordinates come with a variety of different coordinate reference systems, therefore they need to
be converted into the standard EPSG:4326 system for latitude and longitude coordinates.
To generate natural language descriptions from the generator LLM, the latitude and longitude coordinates are
organized into the prompt:
"Summarize information about the geospatial location with latitude: {lat}, longitude: {lon}.
Only provide information you are certain about." The second sentence is added so as to address the potential hallucination
issue of LLMs
[15] [16]. In general, the generated text doesn't directly
conclude on the LULC type, nor does it merely explain the coordinate values, but rather provides a description of the
geospatial context with information such as the country, the sub-country region, proximity to famous places,
and general well-known things of the region.
Such information could be promising for multimodal LULC classification as it complements the visual features present in the
images without immediately revealing LULC classes.
Examples of text generated with both openai and gemini are shown in the figure below.