Semantic referee: A neural-symbolic framework for enhancing geospatial semantic segmentation

Marjan Alirezaie, Martin Längkvist, Michael Sioutis, Amy Loutfi

Semantic segmentation in geospatial imagery—the process of assigning labels like "building," "road," or "vegetation" to every pixel—is a cornerstone of modern urban planning and environmental monitoring. However, relying solely on RGB (Red, Green, Blue) data presents significant challenges. Visually, a dark asphalt road in the shade can be indistinguishable from a river, and a gray rooftop may look identical to a highway.

While traditional deep learning models excel at pattern recognition, they often lack "spatial common sense." They might misclassify a patch of water in the middle of a dense urban block simply because it is dark, unaware that such a placement is logically improbable. This paper introduces the Semantic Referee, a neural-symbolic framework designed to bridge this gap by integrating formal logic and ontological reasoning into the deep learning pipeline.

The Semantic Referee Framework

The authors propose a multi-stage loop that uses symbolic reasoning to "critique" and improve a neural network's output without requiring expensive additional sensors like LIDAR.

The Semantic Referee framework, illustrating the neural-symbolic loop and ontological reasoning process.

The process begins with an initial segmentation pass using a standard U-Net architecture. The system then identifies "suspicious" areas where the model's confidence is low or where labels seem inconsistent. A symbolic reasoner analyzes these areas using RCC-8 (Region Connection Calculus), a formal logic for describing spatial relationships such as "externally connected" or "overlapping."

By consulting OntoCity, a specialized ontology of urban rules, the "Referee" can correct errors. For instance, if the U-Net labels a region as "water" but the Referee observes it is "externally connected" to a "building," the ontology suggests the area is actually a "shadow." These logical corrections are then converted into augmented image channels (shadow estimation, elevation estimation, and uncertainty) and fed back into the U-Net for a second round of training. This allows the model to effectively "learn" the spatial rules provided by the symbolic system.

Datasets and Evaluation

The framework was rigorously evaluated using high-resolution satellite imagery (0.5m per pixel) from two Swedish cities, Stockholm and Boden, as well as the publicly available DLRSD benchmark dataset.

Sample satellite imagery from the Stockholm and Boden datasets used for training and testing.

The Stockholm and Boden datasets provided a challenging mix of dense urban environments and varied terrain. For the DLRSD dataset, the authors mapped existing labels into eight semantic classes (e.g., Vegetation, Pavement, Building, Water) to align with the OntoCity ontology.

Key Results and Insights

The integration of the Semantic Referee yielded significant performance gains across all test sets:

  • Accuracy Improvements: Overall accuracy in Stockholm increased from 81.4% to 86.7%, while Boden saw a jump from 73.2% to 81.3%.
  • Class-Specific Success: The "Road" class experienced a 20% improvement in accuracy, primarily because the system successfully distinguished between asphalt and building shadows.
  • Virtual Sensors: Remarkably, the "elevation estimation" channel generated by the symbolic reasoner performed nearly as well as actual LIDAR-derived Digital Surface Model (DSM) data. This suggests that symbolic logic can serve as a viable substitute for expensive or unavailable sensor data.

Conclusion and Future Work

The Semantic Referee demonstrates that "logic as a supervisor" can significantly enhance the robustness of geospatial AI. By closing the loop between connectionist learning and symbolic reasoning, the system moves beyond simple pixel-pushing toward a more conceptual understanding of the world.

However, the system's effectiveness is currently tied to the depth of its ontology. If the OntoCity model lacks a rule for a specific edge case, the Referee cannot provide a correction. Future work will focus on deeper integration—moving the symbolic interaction into the hidden layers of the neural network—and exploring how neural networks might help automatically expand or refine the symbolic ontologies they rely on.

Summary updated

BibTeX
@article{alirezaie2019semantic,
  author = {Marjan Alirezaie and Martin Längkvist and Michael Sioutis and Amy Loutfi},
  title = {{Semantic referee: A neural-symbolic framework for enhancing geospatial semantic segmentation}},
  journal = {Semantic Web},
  year = {2019},
  doi = {10.3233/sw-190362},
}
Figure