Hostname: page-component-89b8bd64d-rbxfs Total loading time: 0 Render date: 2026-05-07T03:47:53.419Z Has data issue: false hasContentIssue false

Probabilistic robotic logic programming with hybrid Boolean and Bayesian inference

Published online by Cambridge University Press:  25 September 2023

Mark A. Post*
Affiliation:
School of Physics, Engineering, and Technology, University of York, York YO10 5DD, UK
Rights & Permissions [Opens in a new window]

Abstract

Bayesian inference provides a probabilistic reasoning process for drawing conclusions based on imprecise and uncertain data that has been successful in many applications within robotics and information processing, but is most often considered in terms of data analysis rather than synthesis of behaviours. This paper presents the use of Bayesian inference as a means by which to perform Boolean operations in a logic programme while incorporating and propagating uncertainty information through logic operations by inference. Boolean logic operations are implemented in a Bayesian network of Bernoulli random variables with tensor-based discrete distributions to enable probabilistic hybrid logic programming of a robot. This enables Bayesian inference operations to coexist with Boolean logic in a unified system while retaining the ability to capture uncertainty by means of discrete probability distributions. Using a discrete Bayesian network with both Boolean and Bayesian elements, the proposed methodology is applied to navigate a mobile robot using hybrid Bayesian and Boolean operations to illustrate how this new approach improves robotic performance by inclusion of uncertainty without increasing the number of logic elements required. As any logical system could be programmed in this manner to integrate uncertainty into decision-making, this methodology can benefit a wide range of applications that use discrete or probabilistic logic.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2023. Published by Cambridge University Press
Figure 0

Figure 1. Probabilistic information loss in robotic systems. Many systems are designed to threshold or abstract away probabilistic information and uncertainty from sensors that is otherwise useful at an early stage (left). Better decisions can be made by propagating probabilistic information further using more complex sensor models, but this information is rarely used throughout the entire system (centre). Ideally, probabilistic information should be implicitly propagated through the entire system and used at all stages of processing to produce more comprehensive results (right).

Figure 1

Figure 2. Separate domains of logic. The separate domains of Boolean logic using bi-valued scalars (left) and Bayesian inference using random variables (RVs) with tensors of state probabilities (right).

Figure 2

Figure 3. Combined domains of logic. A methodology for combining Boolean and Bayesian logic, in which Boolean operations are subsumed by Bayesian inference and tensors represent Bernoulli random variables (RVs).

Figure 3

Figure 4. Bayesian logical negation (NOT) operation.

Figure 4

Figure 5. Bayesian logical identity (ID) operation.

Figure 5

Figure 6. Bayesian logical conjunction (AND) operation.

Figure 6

Figure 7. Bayesian logical conjunction (AND) operation with three inputs.

Figure 7

Figure 8. Bayesian logical disjunction (OR) operation.

Figure 8

Figure 9. Bayesian logical disjunction (OR) operation with three inputs.

Figure 9

Figure 10. Bayesian logical exclusive disjunction (XOR) operation.

Figure 10

Figure 11. Bayesian logical exclusive disjunction (XOR) operation with three inputs.

Figure 11

Figure 12. Bayesian logical implication (IMP) operation.

Figure 12

Figure 13. Bayesian logical implication (IMP) operation extended to three inputs as proposed by $A \rightarrow (B \vee C \vee \ldots )$.

Figure 13

Table I. The dependence of inferred probability of truth $\text{P}(Q=\text{true})$ on the number of parent inputs $\text{Pa}(Q)$ for probabilistic logic operations. Assuming that all $L$ probabilities of truth $p_l = 1-q_l$ in $\text{Pa}(Q)$ are the same, the scaling of $p$ by the number of inputs $L$ is calculated.

Figure 14

Figure 14. The scenario for the analysis of robotic navigational sensor processing. A mobile robot with sensor arcs $\{L, FL, F, FR, R\}$ must reach a target that is sensed by means of a beacon signal with some uncertainty, while avoiding an obstacle in the way that is sensed by rangefinders and a physical collision detector. The outline arrows show the movement of the robot in the time period considered.

Figure 15

Figure 15. The navigation programme for mobile robot control, as a network of Boolean logic gates. The decision for forward (“Fwd”) is an OR operation, speed (“Spd”) is an AND operation, and direction control (“Dir”) is a set of AND gates representing the desired direction of movement, turning.

Figure 16

Figure 16. The navigation programme for mobile robot control using the proposed methodology for Boolean logic within a Bayesian network. The same number of elements is used for behaviour determination, but inputs and outputs are provided as separate random variables for each state, and probability values are propagated.

Figure 17

Figure 17. The navigation programme for mobile robot control. Fully implemented using the proposed methodology, in the form of a Bayesian network.

Figure 18

Figure 18. The positions of the robot during its path through the simulation. Positions illustrated are at time step numbers $0$ (a), $160$ (b), $280$ (c), $380$ (d), $470$ (e), and $580$ (f).

Figure 19

Figure 19. Sensor inputs to the navigation programme. Outputs of target direction sensor states in the five forward directions, for Boolean (top) and hybrid Bayesian (bottom) control cases, indicating the direction of the target point from the robot. As a probabilistic sensor, uncertainty information is affected by both the direction of the robot and the range from the target.

Figure 20

Figure 20. Sensor inputs to the navigation programme. Output of obstacle sensor, interpreted as the probability of no obstacles being detected (a clear path) in the five forward directions. The Boolean case (top) only indicates the point at which an obstacle is unlikely to be in the sensor arc ($p\lt 0.5$) to be in a given direction while the Bayesian case (bottom) includes clear information about how likely or close the obstacle may be.

Figure 21

Figure 21. Sensor inputs to the navigation programme: output of collision sensor. As a sensor that only registers “collision” or “no collision," only a Boolean output is considered for this sensor, though it is propagated through Bayesian logic as probabilities $p=0.0$ and $p=1.0$. No collision occurred in the Bayesian control case for this simulation.

Figure 22

Figure 22. Navigation programme control results using the proposed methodology. Logically produced forward speed decision. In the Boolean case (top), only stop and go movement is possible based on two logic states with frequent cycling. The Bayesian case (bottom) produces gradual change in forward speed.

Figure 23

Figure 23. Navigation programme control results using the proposed methodology. Logically produced best-turning direction of travel. Using Boolean logic for the five directions (top) produces sudden judgements in the optimal direction. Using Bayesian inference on Bernoulli random variables (bottom) indicates more clearly how relatively safe each direction is at a given point in time and can be used to vary turning and movement speed with respect to the certainty provided.

Figure 24

Figure 24. Navigation programme control results using the proposed methodology. Logic for control of left and right motors based on direction. Using only Boolean logic (top) only coarse steering is possible and a stop occurs, while using Bayesian inference can cause smooth steering without a stop.

Figure 25

Figure 25. Navigation programme control results using the proposed methodology. Logically produced motor control commands for left and right motors. Using Boolean logic results in sudden changes in motor speed. Using Bayesian inference on Bernoulli random variables (bottom) speed can be controlled based on the likelihood of forward motor movement, resulting in a more complex set of behaviours.

Figure 26

Figure 26. Navigation programme control results using the proposed methodology. Logically produced motor control commands for left and right motors. Using Boolean logic results in sudden changes in motor speed. Using Bayesian inference on Bernoulli random variables (bottom) speed can be controlled based on the likelihood of forward motor movement, resulting in a more complex set of behaviours.