Machine Learning Based Land Encroachment Detection using Satellite Imagery
Harshitha SL
Land Encroachment is becoming a serious problem in rapidly expanding cities. Ground surveys are time-consuming and costly meaning many encroachments are not identified until they become permanent. This Web based project “Land Encroachment Detection with a Machine Learning Approach” identifies land that has changed from natural to built using satellite images of the same location in different years. The system is written using Python and uses a Flask backend along with Scikit-learn, NumPy and JavaScript front end. It can be run on a normal laptop computer. Once a user has logged in securely they select a region from 18 cities or any latitude and longitude. They also select a time period, up to 2026, a satellite (Sentinel-2 or Landsat-8) and the minimum size of any zones. The system will calculate NDVI, NDBI and NDWI spectral indexes. Then it will create a feature matrix using band values, band differences and indexes. Finally 8 classifiers including a CNN created using NumPy will be trained. The best performing model (based on F1-score) generates a map showing the probability of change. From here zones are created with letters and information about risk level, GPS and the area (locality) they are in. A land cover classifier is used to give a change matrix, showing trends in built area per year and forecasting trends over the next 3 years. There is also a Compare Years section to compare any previous year (i.e. 2020, 2021, 2022, 2024) with 2025/2026. Results are displayed on individual pages and can be exported to a CSV file and/or printed. In the demo scene (Bangalore Urban using Sentinel-2 2020-2026) the best performing model (Random Forest) achieved a F1-score of 90.4%. 19 zones were identified by the system spanning 7.63ha with 5 being marked as High risk. This data was using simulated imagery so does not indicate real world accuracy. This project supports SDG 11 (Sustainable Cities and Communities),

