The "Height Segmentation Model" is a deep learning-driven project aimed at analyzing satellite imagery to estimate building heights and generate accurate segmentation maps for urban environments. By leveraging advanced techniques in convolutional neural networks (CNNs) and utilizing a custom-built ResUNet architecture, this model provides both building segmentation and height estimation as key outputs. The project involves the entire pipeline from data preprocessing to model deployment, including a Streamlit web application to visualize results interactively.
Urban planning and development benefit greatly from the availability of accurate and detailed data. Satellite imagery offers a non-intrusive way to collect geographic data, which, when paired with deep learning, can provide high-resolution segmentation maps of cities, identifying buildings and estimating their heights. This model focuses on segmentation of satellite images to distinguish between buildings and background, enabling efficient urban analysis for applications like city planning, disaster management, and infrastructure development.
The project begins by collecting high-resolution satellite images and corresponding ground truth labels for training. The images undergo preprocessing steps such as resizing, normalization, and augmentation to prepare them for model input.
The ResUNet model, an extension of the U-Net architecture, is used for building segmentation. This model is particularly suited for segmentation tasks because of its skip connections and deep learning capabilities. The model architecture comprises an encoder-decoder structure with residual connections to preserve important features throughout the network layers.
Using the preprocessed images and their corresponding masks, the ResUNet model is trained with a combination of binary cross-entropy loss and IoU (Intersection over Union) as the evaluation metric. Training is performed on a GPU to speed up the process, and model checkpoints are saved throughout.
After training, the model is integrated into a Streamlit application. This app allows users to interact with the model in real-time, uploading satellite images to generate building segmentation masks. The application also displays performance metrics and allows for the downloading of results.
Input Satellite Image:
Output Segmentation Map:
The model provides detailed performance metrics through the Streamlit interface, enabling easy evaluation and comparison of different models.
The team behind the Height Segmentation Model includes passionate data science interns from the ExploreAI Academy. They are:
Clone the Repository:
Clone this repository to your local machine:
git clone https://github.com/username/segmentation-model-app.git cd segmentation-model-app
Install Dependencies: Install the necessary libraries by running:
undefined
Prepare the Model: Place the trained model (final_model_resunet_finetuned_lr_reduced_5.h5) in the root directory.
Run the App: To start the Streamlit application, use the following command:
streamlit run app.py ## Acknowledgments We would like to acknowledge the following for their support and contributions to the project: Hugging Face for providing access to high-quality datasets. ExploreAI Academy for fostering innovation in data science. Streamlit for providing an easy-to-use platform for interactive app development. ## Conclusion The Height Segmentation Model leverages deep learning and satellite imagery to solve a critical problem in urban planning. By providing building height estimates and segmentation maps, the project paves the way for future applications in smart city development and resource management. vbnet Copy code