TLDR: A new AI framework called ASGRA (Attention over Scene Graphs for Sensitive Content Analysis) improves indoor scene classification by using structured Scene Graphs instead of raw images. It represents scenes as networks of objects and their relationships, processed by a Graph Attention Network. This approach offers inherent explainability, showing which elements drive classification decisions, and preserves privacy by avoiding direct access to sensitive images during training. ASGRA achieved 81.27% accuracy on the Places8 dataset and 74.27% balanced accuracy in real-world child sexual abuse imagery (CSAI) classification, demonstrating its effectiveness and ethical suitability for sensitive applications.
Indoor scene classification, a crucial task in computer vision, helps categorize images of interior spaces. This technology has diverse applications, from robotics to identifying sensitive content like child sexual abuse imagery (CSAI). However, the complexity of indoor environments, with their varied objects and intricate spatial arrangements, poses significant challenges for traditional classification methods.
A new research paper, titled “Attention over Scene Graphs: Indoor Scene Representations Toward CSAI Classification,” introduces a novel framework called ASGRA (Attention over Scene Graphs for Sensitive Content Analysis). This framework tackles the challenges of indoor scene classification by moving away from raw pixel data and instead operating on structured representations known as Scene Graphs. These graphs represent a scene by identifying objects as ‘nodes’ and the relationships between them as ‘edges’ – for example, (bed, next to, window).
How ASGRA Works
The ASGRA framework processes an input image in three main steps. First, it generates a Scene Graph from the image using a pre-trained model. This step identifies objects, their bounding boxes, and the relationships between them, creating a network of triplets like (subject, predicate, object).
Next, features are extracted from this Scene Graph. Each object (node) is represented by its label and bounding box coordinates, while each relationship (edge) is represented by its predicate. Crucially, ASGRA avoids using explicit image features to ensure privacy, especially when dealing with sensitive content, as incorporating such features could potentially allow for the reconstruction of sensitive images.
Finally, a Graph Attention Network (GAT) is employed for learning and inference. The GAT dynamically weighs the importance of each object and relationship within the scene graph, allowing the model to focus on the most relevant information for making a prediction. A pooling layer then aggregates these representations into a single vector, which a multilayer perceptron (MLP) uses to classify the indoor scene category.
Key Benefits: Explainability and Privacy
ASGRA offers two significant advantages. Firstly, it provides inherent explainability. By analyzing the attention weights from the GAT, researchers can understand precisely which objects and relationships contributed most to a particular classification decision. This transparency is invaluable for diagnosing errors and building trust in the model’s predictions.
Secondly, ASGRA prioritizes privacy preservation. For sensitive applications like CSAI classification, direct training on sensitive images is ethically and legally problematic. ASGRA addresses this by training only on the abstract Scene Graph representations and high-level labels, without ever needing direct access to the sensitive images themselves. This allows for effective model training while strictly adhering to ethical and legal standards.
Also Read:
- Collaborative AI Agents Reveal Their Visual Reasoning Process
- Decoding Visual Brain Activity with a New Graph-Based AI Model
Performance and Real-World Impact
The researchers evaluated ASGRA on the Places8 dataset, a benchmark for indoor scene classification. ASGRA achieved a balanced accuracy of 81.27%, outperforming previous image-based methods. For instance, a VQA-baseline using a large vision-language model achieved 77.69%, while self-supervised and few-shot learning methods scored 71.60% and 73.50% respectively.
In a critical real-world application, ASGRA was evaluated in collaboration with law enforcement for CSAI classification using a private dataset. The framework achieved 74.27% balanced accuracy and 76.55% recall, demonstrating its practical utility in digital forensics. The explainability feature proved particularly useful here, as analysis of attention weights showed the model focused on objects like ‘hand’ and relationships like ‘holding’ or ‘near’ when identifying CSAI, aligning with expert human analysis.
While ASGRA shows promising results, its performance is influenced by the quality of the initial Scene Graph generation and the limitations of a closed-set vocabulary for objects and relationships. Future work aims to integrate more advanced, open-vocabulary Scene Graph generation models and enrich the features used in the graphs to overcome these limitations.
The code for ASGRA is publicly available, allowing other researchers to build upon this innovative work. You can find the full research paper here: Attention over Scene Graphs: Indoor Scene Representations Toward CSAI Classification.


