$\mathtt {RE\text{- }Tagger}$: A Light-Weight Real-Estate Image Classifier

Prateek Chhikara, Anil Goyal, Chirag Sharma

TL;DR

This paper introduces RE-Tagger, a lightweight, two-stage transfer learning system for automatically classifying real-estate images into categories like bedroom, bathroom, and kitchen. It addresses the costly and time-consuming manual tagging process in the booming online real-estate market by offering a fast and efficient automated solution deployable even on edge devices.

What Problem Does This Paper Address?

The online real-estate market is experiencing rapid growth, leading to a massive influx of property listings. Each listing typically includes numerous images that need to be categorized (e.g., bedroom, bathroom, kitchen) to enhance user experience and searchability. Manually tagging these images is a labor-intensive, expensive, and time-consuming process, often introducing significant delays before listings go live. This paper tackles the challenge of automating this image classification task efficiently and accurately.

Methods

The authors propose RE-Tagger, an end-to-end pipeline for real-estate image classification. The core of their approach is a two-stage transfer learning strategy utilizing a custom InceptionV3 architecture.

  1. Architecture Modification: The standard InceptionV3 model's final classification block is replaced with a global 2D average pooling layer, a fully connected layer, a dropout layer (with a rate of 0.5), and a softmax layer. This modification is aimed at adapting the pre-trained InceptionV3 for the specific task of real-estate image classification.
  2. Two-Stage Transfer Learning:
    • Stage 1: The base InceptionV3 model is frozen, and only the newly added layers are fine-tuned using the Housing.com dataset.
  3. Stage 2: The entire network is then trained end-to-end on the Housing.com data.
  4. Input Image Processing: Images are resized to 299x299x3 without cropping or padding.
  5. Training Details: The model is trained for 50 epochs using the RMSProp optimizer with a learning rate of 0.0001 and a discounting factor of 0.9. Categorical cross-entropy is used as the loss function, with a batch size of 64.

Datasets

The primary dataset used is from Housing.com's databases, comprising 3.1 million manually annotated images. The dataset is characterized by a high overlap between "living room" and "dining room" classes, leading the authors to consolidate them into a single "hall" class. Images not belonging to any of the defined categories are labeled as "others." For evaluation, 100,000 images were reserved for testing, and the remaining were used for training. To handle class imbalance during training, samples from majority classes were under-sampled, resulting in a training set of 1.2 million images with 200,000 images per class.

Key Insights and Ideas

  • Efficiency for Real Estate: The core idea is to create a system that is not only accurate but also lightweight and fast, making it suitable for the high-volume, time-sensitive nature of online real-estate platforms.
  • Two-Stage Transfer Learning Effectiveness: The paper demonstrates the efficacy of a two-stage transfer learning approach, suggesting that a phased fine-tuning process can yield better results than a single-stage fine-tuning for this specific domain.
  • Deployability on Edge Devices: A significant insight is the system's ability to run on a modest hardware configuration (2 cores, 2 GB RAM) and its potential for deployment on edge devices, broadening its practical applications.
  • Consolidation of Similar Classes: The practical observation that "living room" and "dining room" are often indistinguishable in Indian residences and the decision to merge them into a single "hall" class is a pragmatic approach to dataset management and model training.

Key Results

The RE-Tagger system achieves strong performance on the real-estate image classification task.

  • Performance: The proposed method performs more than 88% (in terms of F1-score) across all tested classes.
  • Specific Class Scores: Table 1 shows high F1-scores, with "Bathroom" and "Balcony" achieving 0.98, "Bedroom" at 0.88, "Hall" at 0.89, "Kitchen" at 0.90, and "Others" at 0.90.
  • Speed: The API has an average response time of approximately 1 second, making it suitable for real-time applications.
  • Resource Usage: The system is designed to run on a low-resource machine (2 cores, 2 GB RAM).

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that the model is deployed on a low-resource system, which implies potential trade-offs in complexity or absolute performance compared to systems running on high-end hardware.
  • The class imbalance in the original dataset and the method of under-sampling are noted.
  • Future Work:
    • The authors have released the application as a REST API hosted on a web application, suggesting that further development could involve expanding its accessibility or integrating it into more complex real-estate platforms.
  • The potential for deployment on edge devices is highlighted, indicating a direction for future optimization and application.

Summary updated

BibTeX
@inproceedings{chhikara2022mathtt,
  author = {Prateek Chhikara and Anil Goyal and Chirag Sharma},
  title = {{$\textbackslash\{\}mathtt \{RE\textbackslash\{\}text\{- \}Tagger\}$: A Light-Weight Real-Estate Image Classifier}},
  booktitle = {ECML/PKDD},
  year = {2022},
  doi = {10.1007/978-3-031-26422-1\_44},
}
Figure