Spatial Computing
Spatial Computing
Christian Freksa
C. Freksa (&)
Spatial Cognition Research Center SFB/TR 8, University of Bremen, Bremen, Germany
e-mail: [email protected]
1 Spatial Problems
6.
The starting point for much of the research in qualitative temporal and spatial
relations since the late 1980s was the chapter Maintaining knowledge about
temporal intervals by Allen (1983), although the underlying insights had been
published previously (Nicod 1924; Hamblin 1972).
The intriguing result of this research was that thirteen ‘qualitative’ relations
could describe temporal relations between events uniquely and jointly exhaus-
tively (Fig. 1). There was an expectation that the idea of qualitative relations could
26 C. Freksa
Fig. 1 The 13 jointly exhaustive and mutually exclusive qualitative relations between two
temporal intervals
Fig. 2 Upper part (facsimile) of the composition table for the qualitative temporal relations
(without the ‘equals’ relation) from Allen (1983). The relation r1 is composed with the relation r2
to obtain the composite relation found in the table. In most cases, more than one relation may
result from a composition. ‘‘no info’’ means that all 13 relations may result from a given
composition
space (Freksa 1991b; Skiadopoulos and Koubarakis 2004; Liu and Li 2011) or to
three spatial dimensions individually (Guesgen 1989).
3 Conceptual Neighborhood
Fig. 3 Left Thirteen qualitative relations for objects (here fishes) in one-dimensional oriented
space. The example classifies positions of objects in the horizontal dimension. The 13 relations
are arranged by conceptual neighborhood. Right The corresponding labels of the qualitative
temporal relations from Allen (1983) depicted in the same spatial arrangement (adapted from
Freksa 1991b)
28 C. Freksa
spatial conceptual
Fig. 4 Spatial and conceptual neighborhood: The left graph depicts relations between static
spatial locations; directly connected nodes represent spatial neighbors. The right graph depicts
direct transitions between spatial relations due to processes in the domain; edges correspond to
conceptually neighboring relations caused by a minimal spatial change in the domain
4 Neighborhood-Based Reasoning
Fig. 5 Coarse temporal relations forming an abstraction hierarchy. The relation ‘older
contemporary of’ corresponds to the conceptual neighborhood of the three finer relations
‘overlaps’, ‘finished by’, and ‘contains’. The even coarser relation ‘older than’ corresponds to a
larger conceptual neighborhood that additionally includes the two fine relations ‘before’ and
‘meets’
A considerable variety of spatial calculi have been developed over the past
20 years (Cohn and Hazarika 2001); these can be classified as
• Measurement calculi, e.g. D-Calculus (Zimmermann 1995);
• Topological calculi, e.g. 4-intersection calculus, 9-intersection calculus, RCC-5,
RCC-8 (Egenhofer and Franzosa 1991; Randell et al. 1992);
• Orientation calculi, e.g. point/line-based: DCC, FlipFlop, QTC, dipole or
extended objects (Freksa 1992b; Ligozat 1993; Van de Weghe et al. 2005;
Moratz et al. 2000);
• Position calculi, e.g. Ternary point configuration calculus (TPCC—Moratz et al.
2003).
30 C. Freksa
Fig. 6 Conceptual neighborhood-based composition table and inferences based on this table.
Spatial pictograms symbolically depict 1D oriented spatial or temporal relations. Each black dot
corresponds to a fine relation; conceptually neighboring relations form lumps of dots that
correspond to coarse relations. Top Conceptually neighboring columns and conceptually
neighboring rows from the original table have been merged. Bottom Two coarse inferences using
this composition table (composition operator is denoted by ). Above the pictograms, the
relations are symbolized in classical logic notation. For an elaborate explanation see (Freksa
1992a)
To simplify and support the use of qualitative spatial calculi for specific
reasoning tasks, various tools have been developed. Prime examples are SparQ
(Wallgruen et al. 2007; Wolter and Wallgruen 2012); GQR (Westphal et al. 2009);
QAT (Condotta et al. 2006); and CLP (QS) (Bhatt et al. 2011). While some
approaches focus at specialized spatial reasoning methods, others aim to integrate
specialized techniques with general knowledge representation methods for logic-
based reasoning.
The toolbox SparQ1 integrates numerous calculi for qualitative spatial rea-
soning and allows for adding arbitrary binary or ternary calculi through the
specification of their base relations and their operations in list notation or through
algebraic specification in metric space. SparQ has a modular architecture and can
easily be extended by new modules (Fig. 7).
SparQ performs a number of operations that are helpful for dealing with spatial
calculi:
• Qualify: quantitatively described configurations are translated into qualitative
relations;
1
www.sfbtr8.spatial-cognition.de/project/r3/sparq/ (accessed: 1 Jan 2012).
Spatial Computing 31
Fig. 7 Modular SparQ architecture. Operations in different qualitative reasoning calculi can be
invoked through standardized commands (from Wolter and Wallgruen 2012)
8 Space as Computer
the type of answer we would give if we gave a computer the line equations and the
procedures to generate the mentioned entities and relations. What is the difference
between the computer approach and the ‘flat paper approach’?
The computer algorithm encodes knowledge about the spatial structure of the
surface that enables its interpreter to reconstruct in a sequential procedure step-by-
step certain abstractions of its spatial structure that are constrained by abstract
representations of the lines and their relationships. On the other hand, the flat
surface itself and its spatial structure relate directly and instantly to the lines and
generate the entities and relations without computational procedure by means of
the inherent structural properties. It represents space rather than knowledge about
space. This is why I call this approach spatial computing rather than knowledge
processing.
Fig. 11 Two approaches to generating spatial entities and relations: in the upper part of the
figure, a classical sequential symbolic computing approach transforms a formal specification of a
spatial configuration by means of formal reasoning into a formal result on the meta-level. In the
lower part a spatially structured substrate on the object level guarantees compliance with spatial
constraints and instantly makes available all spatial implications of the configuration in spatial
form. Specific relations can be read-off directly from the configuration. Transformations between
the object level and the meta-level can be carried out at the task stage or the solution stage
the intrinsic constraints of the spatial substrate on the object level. If the task
involves physical operations on spatial configurations, these operations will be
subject to spatial constraints of changing physical configurations and require
processing time; but all spatial implications of the operations will be available
instantly as the operations are performed. Depending on the form in which the
result of the ‘computation’ is needed, we need processes that extract the desired
result from the configuration (e.g., a line segment or an angle) as input for the next
spatial computing task; if the result is needed on the formal level, the object-level
entity needs to be formalized, e.g., for use in a classical computation process.
The spatial computing approach involves a paradigm shift that makes it difficult
to compare with symbolic approaches by purely computational measures.
The reason is that in the symbolic realm, we assume that problems are given in
formalized form and that the results will be needed in formalized form, as well.
Perceptual operations necessary to formalize spatial knowledge are not taken into
account in symbolic approaches. Thus, computational cost is restricted to symbol
manipulation processes. However, real-world spatial situations may be different as
the example problems in the introduction suggest: for some of them the formal-
ization task may be too time-consuming or expensive; a direct object-level
mapping to a spatial substrate may become more feasible, particularly, as sensor
technology continues to develop. Perception processes that had to be performed by
humans in the process of formalizing spatial knowledge become a part of the
spatial computing paradigm; however, they will not be discussed in this chapter.
Spatial Computing 37
geometry cognition
Composition
Aggregation
object configurations
configurations
Composition
objects
Aggregation
objects
Decomposition
Refinement
parts
areas ‘basic
level’
lines
points
Fig. 12 Two ways to conceptualize physical objects. Left In geometry, we aggregate arbitrarily
complex structures from atomic point entities. Right In cognition, basic entities may be
geometrically complex, meaningful entities. Through cognitive effort, basic entities can be
decomposed into more elementary entities or aggregated into more complex configurations;
cognition on the level of basic cognitive entities is possible without invoking elementary
constituents
38 C. Freksa
entire physical objects like books or chairs (Fig. 12). Basic cognitive entities carry
meaning related to their use and function and we perceive and conceptualize them
in their entirety even if certain details are not accessible to our perception. We may
not even know about the composition of basic cognitive entities; still, we are able
to talk about them and to use them for daily activities. The cognitive apparatus
appears to be flexible as to which level in a huge lattice of part-whole relations to
select as ‘basic level’ (cf. Rosch 1978); it also appears to be able to focus either on
the relation between an object and a configuration of objects, or alternatively, on
the relation between an object and its parts. Both transitions involve cognitive
effort, while the mere consideration of the basic level appears almost effortless.
It is known that we can apply simple mental operations, e.g., mental rotation, to
entire spatial objects at once (Shepard and Metzler 1971). In spatial computing, we
would like to implement processes that have comparable capabilities: manipulating
entire objects without manipulating all their constituent parts. We would expect to
obtain only a coarse result of cognitive operations on basic cognitive entities with
little effort; to resolve details, we would have to invest cognitive power. This pro-
cessing approach would be in contrast to geometric spatial processing where we
would expect to know the details before we know the complex structure.
Let me return to the spatial problems that I used in the beginning of the chapter to
introduce various perspectives on spatial challenges. The main message of this
exercise is that spatial problem solving consists of more than solving equations.
First of all, a spatial problem needs to be perceived as one. Second, it needs to be
represented as one. Third, the representation needs to be processed. Fourth, the
result needs to be interpreted in spatial terms.
With regards to the representation of spatial knowledge for problem solving we
have lots of options, as there are many ways to conceive of space. For example,
space may be conceived of as empty space—‘‘what is there when nothing is
there’’—or as the space spanned by physical objects. Space can be described in
terms of a multitude of reference systems as becomes evident if we look at the
many spatial representation systems and calculi we can develop. All the different
representations have advantages and disadvantages, depending on the problems we
want to tackle or the situations we want to describe. Some problems can be solved
directly on the object level; others are facilitated by suitable abstractions.
Nevertheless, spatial structures—and to a similar extent temporal structures—play
special roles in everyday actions and problem solving. Many other dimensions seem to
dominate our lives: monetary values, quality assessments, efficiency criteria, emotions,
social structures, etc.—but do they play comparable roles with respect to cognitive rep-
resentation and processing? I do not think so. I propose that the special role of space and
time has to do with the fact, that internal representations may be a-modal, but they cannot
be ‘‘a-structural’’. In other words: cognitive representations and processes depend on a
Spatial Computing 39
spatio-temporal substrate; without such a substrate, they cannot exist. But they may not
depend on a specific spatio-temporal substrate: a multitude of structures may do the job.
Different abstractions from physical space may be advantageous in different situations.
Space and time provide fundamental structures for many tasks that cognitive agents
must perform and for many aspects of the world that they can reason about. Main-
taining these structures as a foundation simplifies cognitive tasks tremendously,
including perceiving, memorizing, retrieving, reasoning, and acting. This is well
known from everyday experiences, such as using geographic maps for wayfinding.
For other domains it is helpful to create spatially structured foundations to support and
simplify orientation; for example, spatial structure is the basis for diagrams that help
us reason about many spatial and non-spatial domains.
A conceptually simple implementation of a truly spatial computer could be a
robot system that manipulates physical objects in a spatial domain and perceives
and represents these objects, the configurations constructed from these objects, and
the parts of the objects as well as their relations from various orientations and
perspectives. A more sophisticated approach would involve the construction of a
spatial working memory, perhaps visually accessed, whose basic entities are entire
objects rather than their constituents. Spatial operations like translation, rotation,
and distortion would globally modify configurations. Perception operators extract
qualitative spatial relations from these representations. The development of this
implementation can be guided by our knowledge about working memory capa-
bilities and limitations as well as by our knowledge about spatial representations in
the human mind (Schultheis and Barkowsky 2011).
As technological materials become more sophisticated, the connection between
spatial substrates and digital computer technology will become successively
stronger. Sensor technology will be integrated into spatially structured materials in
the years to come. A vision of such materials of the future that would support the
concept of spatial computing on the substrate level can be found in a recent special
issue in sensors and actuators (Lang et al. 2011).
12 A Final Note
Although we talk about spatial cognition, spatial reasoning, and spatial computing,
we frequently fail to characterize the type of solution to spatial problems that we
want to achieve. Our repertoire of approaches yields results on different levels of
sophistication: some approaches only yield solutions to spatial problems; others
yield some sort of explanations along with the solutions or instead of a solution.
Accompanying explanations may be: ‘this is the only solution’; ‘this is one of
possibly several solutions’; ‘these are all solutions’; or ‘there is no solution’.
Why is sophistication an issue? For highly abstract, formal approaches the
quality of a solution is not obvious. Formal proofs or explanations (or both) are
required to characterize the type of solution. In the more concrete, spatially
structured solutions, the results are more easily perceptible, more obvious in that
40 C. Freksa
Acknowledgments I am grateful for valuable and detailed comments on earlier versions of this
chapter from Thomas Barkowsky, Mehul Bhatt, Stefano Borgo, Holger Schultheis, Thora Ten-
brink, Diedrich Wolter, several anonymous reviewers, and the editors of this book. Generous
support from the German Research Foundation to the Spatial Cognition Research Center SFB/TR
8 Bremen and Freiburg is gratefully acknowledged.
References
Freksa C (1991a) Conceptual neighborhood and its role in temporal and spatial reasoning. In:
Singh M, Travé-Massuyès L (eds) Decision support systems and qualitative reasoning. North-
Holland, Amsterdam, pp 181–187
Freksa C (1991b) Qualitative spatial reasoning. In: Mark DM, Frank AU (eds) Cognitive and
linguistic aspects of geographic space. Kluwer, Dordrecht, pp 361–372
Freksa C (1992a) Temporal reasoning based on semi-intervals. Artif Intell 54:199–227
Freksa C (1992b) Using orientation information for qualitative spatial reasoning. In: Frank AU,
Campari I, Formentini U (eds) Theories and methods of spatio-temporal reasoning in
geographic space, LNCS 639. Springer, Berlin, pp 162–178
Freksa C, Barkowsky T (1996) On the relation between spatial concepts and geographic objects.
In: Burrough P, Frank A (eds) Geographic objects with indeterminate boundaries. Taylor and
Francis, London, pp 109–121
Gentner D (1983) Structure-mapping: a theoretical framework for analogy. Cogn Sci 7:155–170
Greenwold S (2003) Spatial computing. Manuscript submitted to school of architecture and
planning, Massachusetts Institute of Technology, Cambridge. http://acg.media.mit.edu/
people/simong/. Accessed 1 Jan 2012
Guesgen HW (1989) Spatial reasoning based on Allen’s temporal logic. ICSI TR-89-049.
International Computer Science Institute, Berkeley
Hamblin CL (1972) Instants and intervals. In: Fraser JT, Haber FC, Müller GH (eds) The study of
time. Springer, Berlin, pp 324–331
Hwang A (2012) http://albert-hwang.com/projects/spatial-computing/. Accessed 1 Jan 2012)
Kosslyn SM (1987) Seeing and imagining in the cerebral hemispheres: a computational approach.
Psychol Rev 94:148–175
Lang W, Lehmhus D, van der Zwaag S, Dorey R (2011) Sensorial materials—a vision about
where progress in sensor integration may lead to. Sens Actuators, A 171(1):1–2
Ligozat G (1993) Qualitative triangulation for spatial reasoning. In: Campari I, Frank AU (eds)
COSIT 1993 LNCS 716. Springer, Heidelberg, pp 54–68
Liu W, Li S (2011) Reasoning about cardinal directions between extended objects: the NP-
hardness result. Artif Intell 175:2155–2169
Moratz R, Renz J, Wolter D (2000) Qualitative spatial reasoning about line segments. In:
Proceedings of ECAI 2000, pp 234–238
Moratz R, Tenbrink T, Fischer F, Bateman J (2003) Spatial knowledge representation for human-
robot interaction. In: Freksa C, Brauer W, Habel C, Wender KF (eds) Spatial cognition III –
Routes and navigation, human memory and learning, spatial representation and spatial
reasoning, LNAI 2685. Springer, Heidelberg, pp 263–286
Nebel B, Bürckert HJ (1995) Reasoning about temporal relations: a maximal tractable subclass of
Allen’s interval algebra. JACM 42(1):43–66
Newell A (1982) The knowledge level. Artif Intell 18(1):87–127
Nicod J (1924) Geometry in the sensible world. Doctoral thesis, Sorbonne, English translation in
Geometry and Induction, Routledge and Kegan Paul, 1969
Randell DA, Cui Z, Cohn AG (1992) A spatial logic based on regions and connection. In:
Proceedings of 3rd international conference on knowledge representation and reasoning.
Morgan Kaufman, Los Altos, pp 55–66
Rosch E (1978) Principles of categorization. In: Rosch E, Lloyd BB (eds) Cognition and
categorization. Erlbaum, Hillsdale
Schultheis H, Barkowsky T (2011) Casimir: an architecture for mental spatial knowledge
processing. Top Cogn Sci 3:778–795
Schwartz JT, Sharir M (1983) On the ‘‘piano movers’’ problem I: the case of a two-dimensional
rigid polygonal body moving amidst polygonal barriers. Commun Pure Appl Math 36:
345–398
Shepard RN, Metzler J (1971) Mental rotation of three-dimensional objects. Science 171:
701–703
Skiadopoulos S, Koubarakis M (2004) Composing cardinal direction relations. Artif Intell
152:143–171
42 C. Freksa
Sloman A (1971) Interactions between philosophy and artificial intelligence: the role of intuition
and non-logical reasoning in intelligence. Artif Intell 2:209–225
Sloman A (1985) Why we need many knowledge representation formalisms. In: Bramer M (ed)
Research and development in expert systems. Proceedings of BCS expert systems conference
1984. Cambridge University Press, Cambridge, pp 163–183
Tobler W (1970) A computer movie simulating urban growth in the Detroit region. Econ Geogr
46(2):234–240
Van de Weghe N, Kuijpers B, Bogaert P, De Maeyer P (2005) A qualitative trajectory calculus
and the composition of its relations. In: Proceedings of geospatial semantics, vol 3799,
pp 60–76
Wallgruen JO, Frommberger L, Wolter D, Dylla F, Freksa C (2007) Qualitative spatial
representation and reasoning in the SparQ toolbox. In: Barkowsky T, Knauff M, Ligozat G,
Montello D (eds.) Spatial cognition V: reasoning, action, interaction, LNAI 4387. Springer,
Heidelberg, pp 39–58
Westphal M, Woelfl S, Gantner Z (2009) GQR: a fast solver for binary qualitative constraint
networks. In: AAAI spring symposium on benchmarking of qualitative spatial and temporal
reasoning systems, Stanford
Wolter D, Wallgruen JO (2012) Qualitative spatial reasoning for applications: New challenges and
the SparQ toolbox, In: Hazarika SM (ed) Qualitative spatio-temporal representation and
reasoning: Trends and future directions. IGI Global, Hershey. doi: 10.4018/978-1-61692-868-1
Yang C, Goodchild M, Huang Q, Nebert D, Raskin R, Xu Y, Bambacus M, Fay D (2011) Spatial
cloud computing: how can the geospatial sciences use and help shape cloud computing? Int J
Digit Earth 4:4
Zimmermann K (1995). Measuring without measures. The D-Calculus. In: Frank AU, Kuhn W
(eds) COSIT 1995, LNCS 988. Springer, Heidelberg, pp 59–67
Zuse K (1969) Rechnender Raum: Schriften zur Datenverarbeitung. Vieweg, Braunschweig