To act in the real world an intelligent system must also sense it. This topic joins the study of human thinking with the ways in which machines perceive.

Cognitive Behaviour

Cognition is the process of knowing, which includes perceiving, attending, remembering, learning, reasoning and problem solving. Cognitive science studies the mind by joining psychology, AI, linguistics, neuroscience and philosophy. A cognitive model is a computer model of how people think, used to test theories of the mind, and to build systems that behave as people do. An example is the SOAR architecture, which models problem solving as search in problem spaces with learning by chunking. Human behaviour is also studied for the design of interfaces and of systems that work well with people.

Perception

Perception is the process of getting information from the world through sensors and turning it into a useful description. It has the stages of sensing, processing the signal to remove noise and to extract features, and interpreting the features to give meaning. It is hard, because the data are noisy, are ambiguous, and vary with light, angle and speaker.

Definition: Perception. The process by which an intelligent system acquires data from its environment through sensors and interprets it to build a useful description of the world.

Sensing, Speech Recognition and Vision

Sensing uses devices such as cameras, microphones, touch sensors, range finders, radar, lidar and GPS to collect data. Speech recognition converts spoken words into text. The sound is cut into short frames, features such as MFCC are found, an acoustic model matches the sounds to phonemes, and a language model chooses the most likely sequence of words. Difficulties are accents, noise, speed and similar sounds. Computer vision works from images. Steps are to capture and pre-process the image, to find edges and regions by segmentation, to extract features, to recognise objects, and to interpret the scene. Uses are face recognition, medical imaging, inspection and self-driving. Today, deep neural networks do most of the recognition.

Action

Action is the other side of perception. Through actuators, such as motors, wheels, arms and speakers, an agent changes its environment. In robotics, perception and action form a loop, sense, plan and act, which repeats many times a second. The robot must plan motion, avoid obstacles, and use feedback from sensors to correct errors.

Table 3.4: Perception tasks

Task Input Output
Sensing Physical signals Raw data
Speech recognition Sound Text
Vision Image or video Objects, scene description
Action Plan Movement or speech

Example 3.4: Stages of speech recognition

Problem: Put these stages of speech recognition in the correct order: language model, sound capture, acoustic model, feature extraction.

Solution:

  1. First the microphone captures the sound.
  2. Features are extracted from short frames.
  3. The acoustic model matches features to sounds.
  4. The language model picks the most likely words.

Result: Sound capture, feature extraction, acoustic model, language model.

stages = ["capture", "features", "acoustic model", "language model"]
for i, s in enumerate(stages, 1):
    print(i, s)

Output

1 capture
2 features
3 acoustic model
4 language model

Common mistakes

  • Thinking that sensing and perception are the same. Perception includes interpretation.
  • Forgetting that sensor data are noisy and need processing.
  • Ignoring feedback in action, so that errors build up.

Key takeaways

  • Cognition covers perceiving, remembering, learning and reasoning.
  • Perception is sensing, processing and interpreting.
  • Speech recognition uses acoustic and language models.
  • Perception and action form a sense-plan-act loop.

Practice questions

  1. What is perception?
  2. Name the stages of computer vision.
  3. What is the role of the language model in speech recognition?

Answers to the practice questions

  1. Acquiring data through sensors and interpreting it to form a useful description of the world.
  2. Image capture, pre-processing, segmentation, feature extraction, recognition and interpretation.
  3. It chooses the most likely sequence of words from the sounds that were matched.

Sources

  • Official BCA syllabus Artificial Intelligence and Expert Systems, course code 25BCA405DS02, Unit III