Satellite Image Classification with Machine Learning & Python — Part 1: Creating Model and Classifying
Last Updated on June 11, 2024 by Editorial Team
Author(s): KokaTic
Originally published on Towards AI.

Study region of our tutorial — El Oued, Algeria (source: Bing maps)
Image classification is a pivotal task in the realm of machine learning, particularly within the domain of remote sensing. In this series, we embark on a journey to delve into the intricacies of image classification using Python.
Our focus will be on leveraging the Random Forest algorithm to classify Sentinel 2 data over the astonishing landscape of El Oued, nestled in the heart of the Algerian desert. Renowned for its vast agricultural expanse, El Oued stands as one of the foremost agricultural producers in the country, making it an ideal canvas for our exploration.
Note: Do not confuse image-based classification with pixel-based classification. In this context, we’re focusing on pixel-based classification, where we assign a label to each individual pixel.
Extraction from our imge: El Oued, Algerie – Sentinel 2 image in Avril 2024
In this journey, we will need to install:
Python 3.10+QGIS 3.X.X + for visualisation
We will need also to :
Datasets to download from Copernicus site, we will work on a Sentinel 2 2A image of 30 Avril 2024 (image ref: T32SKC_20240430T102021).You can download it from the Copernicus Platform; you can check their documentation to download data.
During this beginner’s tutorial, we will… Read the full blog for free on Medium.
Join thousands of data leaders on the AI newsletter. Join over 80,000 subscribers and keep up to date with the latest developments in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming a sponsor.
Published via Towards AI
Towards AI Academy
We Build Enterprise-Grade AI. We'll Teach You to Master It Too.
15 engineers. 100,000+ students. Towards AI Academy teaches what actually survives production.
Start free — no commitment:
→ 6-Day Agentic AI Engineering Email Guide — one practical lesson per day
→ Agents Architecture Cheatsheet — 3 years of architecture decisions in 6 pages
Our courses:
→ AI Engineering Certification — 90+ lessons from project selection to deployed product. The most comprehensive practical LLM course out there.
→ Agent Engineering Course — Hands on with production agent architectures, memory, routing, and eval frameworks — built from real enterprise engagements.
→ AI for Work — Understand, evaluate, and apply AI for complex work tasks.
Note: Article content contains the views of the contributing authors and not Towards AI.