6 Applications Of Ai

Artificial Intelligence · Unit 6 · 6 hrs

Applications of AI

Exam-focused notes for Applications of AI (Artificial Intelligence, CSC266): what the TU syllabus asks and how it has actually been tested, with 11 solved past questions from this unit.

Applications of AI in short

This closing unit surveys four major application areas that draw on the representation, search and learning techniques covered earlier: expert systems, natural language processing, machine vision and robotics.

Applications of AI: notes

Expert Systems

An expert system is a computer program designed to solve complex, domain-specific problems and make decisions with the competence of a human expert, by extracting knowledge from its knowledge base and applying reasoning and inference rules to a user's queries. Its performance depends directly on the quality and coverage of the expert knowledge stored in that knowledge base, both facts and heuristics, and larger organisations commonly use expert systems to improve productivity and consistency in a specific domain such as medicine or science; a familiar everyday example is the spelling-correction suggestions offered while typing into a search box.

An expert system has three main components. The user interface takes a query from the user in a readable format, passes it to the inference engine, and displays the resulting output back to the user. The inference engine, sometimes called the brain of the expert system, is the main processing unit: it applies inference rules to the knowledge base to derive conclusions or deduce new information, aiming to produce an error-free answer to the user's query. The knowledge base is the store of knowledge acquired from domain experts; the richer the knowledge base, the more precise the expert system's advice tends to be.

Knowledge engineering is the discipline within AI that builds the rules an expert system applies, in effect trying to imitate a human expert's thought process; it covers knowledge acquisition (gathering knowledge from expert sources), knowledge representation (encoding it into the knowledge base), inferencing (applying it to derive conclusions), and explanation and justification (being able to account for how a conclusion was reached).

Development of Expert Systems

An expert system is typically built and refined over several years, moving through five recognised stages. Identification determines the exact characteristics and scope of the problem, rather than merely a vague sense that an expert system would help. Conceptualisation finds the concepts needed to represent the knowledge, commonly by having the knowledge engineer diagram the relationships between the objects and processes in the problem domain. Formalisation designs the actual knowledge structures using a chosen knowledge representation technique, which requires the knowledge engineer to be familiar with the available representation methods and tools. Implementation builds a working prototype; the very first prototype is often treated as a "throw-away" system, useful for gauging progress rather than as the final product. Testing validates the implemented system, exposing weaknesses in its structure or implementation so they can be corrected before deployment.

A well-built expert system should be able to respond to straightforward questions, learn new knowledge, be easily modified, remain adaptive and flexible, explain the reasoning behind its advice, and stay goal-oriented throughout.

What this unit covers

  • Expert Systems
  • Development of Expert Systems
  • Natural Language Processing: Natural Language Understanding and Natural Language Generation, Steps of Natural Language Processing
  • Machine Vision Concepts
  • Robotics

Robotics

2081 · 5 marks

What is robotics? How machine vision is used in robotics? [5]

Show solved answer

Robotics and Machine Vision in Robotics

What is Robotics?

Robotics is a branch of Artificial Intelligence that deals with the design, construction, operation, and application of robots. A robot is an intelligent agent that perceives its environment through sensors and performs physical actions in the real world through actuators (motors, arms, wheels, etc.).

Robotics combines multiple AI disciplines to create machines that can:

  • Perceive the physical world
  • Make decisions based on perception
  • Perform physical tasks autonomously or semi-autonomously

Key characteristics of a robotic system:

  • Sensors - to perceive the environment (cameras, infrared, ultrasonic)
  • Actuators - to perform physical actions
  • Controller/Processor - to process information and make decisions
  • Knowledge Base - to store learned information about the environment

Machine Vision in Robotics

Machine Vision (also called Computer Vision) is the ability of a robot to interpret and understand visual information from the real world, similar to how humans use their eyes and brain together.

How Machine Vision is Used in Robotics:

1. Object Recognition and Detection

  • The robot uses cameras to capture images of its surroundings.
  • Machine vision algorithms process these images to identify and classify objects.
  • This allows the robot to distinguish between different objects, obstacles, or targets in its environment.

2. Navigation and Path Planning

  • Machine vision helps robots understand their spatial environment.
  • The robot uses visual input to map surroundings, detect obstacles, and plan a safe path to reach its goal.
  • This connects directly to search methods in AI, where the robot determines the best sequence of actions to reach a goal state.

3. Manipulation and Grasping

  • Robots use machine vision to locate objects precisely in 3D space.
  • This enables robotic arms to pick, place, and manipulate objects accurately in manufacturing or surgery.

4. Quality Inspection (Industrial Robots)

  • In manufacturing, robots use machine vision to inspect products for defects.
  • The system compares captured images against a standard model and identifies deviations.

5. Facial and Gesture Recognition

  • Robots can recognize human faces and interpret gestures using machine vision.
  • This enables natural human-robot interaction.

6. Learning from Visual Input (Machine Learning Integration)

  • Machine vision is combined with machine learning (supervised/reinforcement learning) so robots can improve their visual recognition over time.
  • For example, using supervised learning, a robot is trained with labelled images so it can classify new objects it encounters.
  • Using reinforcement learning, a robot receives rewards when it correctly identifies and handles an object, improving its performance over time.

Summary Table

ApplicationRole of Machine Vision
NavigationObstacle detection and path planning
Object ManipulationPrecise location and grasping
Quality ControlDefect detection in products
Human InteractionFace and gesture recognition
LearningTraining robots with visual data

In conclusion, robotics integrates AI techniques such as knowledge representation, machine learning, automated reasoning, and machine vision to build intelligent physical agents. Machine vision acts as the "eyes" of the robot, enabling it to perceive, understand, and interact with the physical world effectively.

Open this answer on its own page →

Expert Systems

2080 · 5 marks

Describe the components of expert system. [5]

An expert system is a computer program designed to solve complex problems and provide decision-making ability like a human expert. It extracts knowledge from its knowledge base using reasoning and inference rules according to user queries. --- An expert system mainly consists of the following thr...

Open this answer on its own page →

2078 · 5 marks

What is expert system? How its works? Mention role of inference engine in expert system. [5]

An expert system is a computer program that is designed to solve complex problems and to provide decision-making ability like a human expert. It performs this by extracting knowledge from its knowledge base using reasoning and inference rules according to the user queries. The system helps in dec...

Open this answer on its own page →

Natural Language Processing

2080 · 5 marks

Why pragmatic analysis is necessary in NLP? How pragmatic analysis is done? [5]

Pragmatic analysis is necessary in NLP because language is not always used literally. The same sentence can mean different things depending on the context, situation, speaker's intent, and background knowledge. Without pragmatic analysis, an NLP system would only understand the literal meaning of...

Open this answer on its own page →

2079 · 5 marks

How syntactic and semantic analyses are performed in natural language processing? [5]

Natural Language Processing (NLP) is a technology that involves converting spoken or written language into a form which can be processed by computers and vice-versa. Within Natural Language Understanding (NLU), the system needs to disambiguate the input sentence to produce a machine representatio...

Open this answer on its own page →

2078 · 5 marks

How semantic and pragmatic analysis is done in natural language processing. [5]

Natural Language Processing (NLP) is a technology that involves converting spoken or written language into a form which can be processed by computers and vice-versa. To understand natural language, a system must pass through several levels of analysis, including morphological, syntactic, semantic...

Open this answer on its own page →

2076 · 5 marks

How syntactic and semantic analysis is done during natural language processing? Explain with example. [5]

Natural Language Processing (NLP) requires multiple levels of analysis to convert human language into machine-understandable representations. Among these, syntactic analysis and semantic analysis are two critical stages in Natural Language Understanding (NLU). As per the notes: "Different levels ...

Open this answer on its own page →

2080.1 · 5 marks

How natural language generation differs from natural language understanding? How morphological analysis is done in NLP? [5]

Show solved answer

Natural Language Generation vs. Natural Language Understanding, and Morphological Analysis


Part 1: NLG vs. NLU (Differences)

According to the notes, NLP is composed of two parts: NLU and NLG.

AspectNLU (Natural Language Understanding)NLG (Natural Language Generation)
DefinitionThe process of mapping given inputs in natural language into useful (machine) representations and analyzing different aspects of the language.The process of producing meaningful phrases and sentences in the form of natural language from a machine-based representation.
DirectionNatural Language --> Machine RepresentationMachine Representation --> Natural Language
TaskTakes a spoken/typed sentence and works out what it means.Takes a formal representation of what we want to say and works out how to express it in natural language.
Core ChallengeThe system must disambiguate the input sentence to produce the machine representation.The system must make decisions about how to put a concept into words.
Levels InvolvedMorphological analysis, syntactic analysis, semantic analysis.Deep generation, syntactic generation.
DifficultyHarder than NLG (language has ambiguity, context, etc.).Less hard than NLU.
AnalogyLike a reader/listener interpreting meaning.Like a translator converting computer-based representation into natural language.

Part 2: Morphological Analysis in NLP

Definition

Morphological analysis is one of the levels of analysis required in NLU. It is the study and analysis of the internal structure of words -- how words are formed from smaller meaningful units called morphemes.

What is a Morpheme?

A morpheme is the smallest unit of meaning in a language.

  • Free morpheme: Can stand alone as a word. Example: play, book
  • Bound morpheme: Cannot stand alone; must be attached to another morpheme. Example: -ing, -ed, -s, un-

How Morphological Analysis is Done

Morphological analysis involves breaking a word into its constituent morphemes and identifying their roles. The steps are:

Step 1: Tokenization The input sentence is split into individual words (tokens).

Example: "The boys are playing" --> ["The", "boys", "are", "playing"]

Step 2: Stemming / Lemmatization Each word is reduced to its base or root form.

Example:

  • playing --> root: play + suffix: -ing (present participle)
  • boys --> root: boy + suffix: -s (plural)
  • played --> root: play + suffix: -ed (past tense)

Step 3: Identifying Morphological Categories The morphemes are tagged with their grammatical roles:

WordMorpheme BreakdownAnalysis
unhappyun- + happyPrefix un- negates the adjective
booksbook + -sNoun + plural marker
runningrun + -ningVerb + present participle
quicklyquick + -lyAdjective + adverb suffix

Step 4: Applying Morphological Rules Rules such as inflectional morphology (tense, number, gender) and derivational morphology (forming new words) are applied to understand the word's role in the sentence.

Importance in NLP

Morphological analysis is the first and foundational level of NLU. It helps the NLP system:

  • Understand word forms and their base meanings
  • Reduce vocabulary size for further processing
  • Prepare input for syntactic and semantic analysis in subsequent stages

Summary: NLU converts language to meaning (harder), while NLG converts meaning to language (easier). Morphological analysis, the first step in NLU, breaks words into morphemes to understand their structure and grammatical roles.

Open this answer on its own page →

Development of Expert Systems

2079 · 10 marks

Define Expert System with example. What are stages of expert system development? Explain.[10]

Show solved answer

Expert System: Definition, Example, and Stages of Development


1. Definition of Expert System

An Expert System is a computer program that simulates the judgment and behavior of a human expert or an organization that has expert knowledge and experience in a particular field. It is a knowledge-based system that uses a collection of knowledge (stored in a knowledge base) and an inference engine to solve complex problems that normally require human expertise.

An expert system captures the knowledge of human specialists and makes it available to non-experts for decision making, diagnosis, or problem solving in a specific domain.

Key Components of an Expert System

ComponentDescription
Knowledge BaseStores domain-specific facts, rules, and heuristics
Inference EngineApplies logical rules to the knowledge base to derive conclusions
User InterfaceAllows interaction between the user and the system
Explanation FacilityExplains the reasoning behind conclusions
Knowledge Acquisition FacilityAllows updating and adding new knowledge

Example

Medical Diagnosis Expert System (MYCIN): MYCIN was one of the earliest expert systems developed at Stanford University. It was designed to diagnose bacterial infections and recommend antibiotics. A doctor could input patient symptoms and test results, and MYCIN would provide a diagnosis along with recommended treatment, mimicking the reasoning of a medical expert.

Other examples include:

  • R1/XCON - Used by Digital Equipment Corporation (DEC) for computer configuration (first successful commercial expert system, 1982)
  • DENDRAL - Used for chemical analysis
  • Tax advisory systems - Used in financial planning

2. Stages of Expert System Development

: "An expert system typically is developed and refined over a period of several years."

The following are the major stages of expert system development:


Stage 1: Problem Identification and Feasibility Study

  • The problem domain is identified and analyzed.
  • Experts and knowledge engineers determine whether the problem is suitable for an expert system solution.
  • Questions addressed:
    • Is the problem well-defined?
    • Is there a genuine need for an expert system?
    • Is the required expertise available?
  • A feasibility study is conducted to check technical, economic, and operational viability.

Stage 2: Knowledge Acquisition

  • This is the most critical and time-consuming stage.
  • Knowledge is gathered from human domain experts, books, databases, case studies, and documents.
  • The knowledge engineer (developer) interviews experts and extracts:
    • Facts about the domain
    • Rules and heuristics used by experts
    • Decision-making strategies
  • Challenges: Experts may find it difficult to articulate their implicit knowledge.

Stage 3: Knowledge Representation

  • The acquired knowledge is organized and represented in a form that the computer can process.
  • Common representation techniques:
    • Production Rules (IF-THEN rules)
    • Semantic Networks
    • Frames
    • Predicate Logic
  • Example of a production rule:
    IF  patient has fever AND cough
    THEN  suspect respiratory infection
    

Stage 4: Prototype Development

  • A small-scale prototype of the expert system is built using the represented knowledge.
  • This prototype is tested with simple cases to verify the basic structure and logic.
  • Tools used: Expert System Shells (e.g., CLIPS, JESS, Prolog)
  • The prototype helps identify gaps in knowledge and design flaws early.

Stage 5: Testing and Validation

  • The prototype is tested with real-world cases and compared against decisions made by actual human experts.
  • Validation ensures the system produces correct and reliable outputs.
  • Verification ensures the system is built correctly according to specifications.
  • Errors in rules or knowledge are identified and corrected.

Stage 6: Refinement and Expansion

  • Based on testing feedback, the knowledge base is refined and expanded.
  • New rules are added, incorrect rules are modified or removed.
  • The system is gradually scaled up from a prototype to a full system.
  • This stage may repeat multiple times (iterative process).

Stage 7: Integration and Deployment

  • The fully developed expert system is integrated into the working environment.
  • It is deployed for actual use by end users (non-experts).
  • User training and documentation are provided.
  • The system is connected to existing databases and organizational systems if needed.

Stage 8: Maintenance and Knowledge Update

  • The expert system is maintained over time.
  • The knowledge base is updated periodically as new knowledge becomes available or the domain changes.
  • Performance is monitored and improvements are made continuously. -: "It updates knowledge periodically if agent is able to acquire new knowledge."

Summary Diagram of Stages

Problem Identification
        |
        v
Knowledge Acquisition
        |
        v
Knowledge Representation
        |
        v
Prototype Development
        |
        v
Testing and Validation
        |
        v
Refinement and Expansion
        |
        v
Integration and Deployment
        |
        v
Maintenance and Update

Conclusion

Expert systems represent a significant milestone in Artificial Intelligence, as demonstrated by the success of systems like R1 at Digital Equipment Corporation which saved millions of dollars per year. The development of an expert system is an iterative, multi-stage process that requires close collaboration between knowledge engineers and domain experts to build a reliable, accurate, and maintainable system.

Open this answer on its own page →

Machine Vision Concepts

2076 · 5 marks

How the concept of machine vision are used in Robotics to configure sensors of Robots? [5]

Machine vision is a branch of Artificial Intelligence that enables robots to interpret and understand visual information from their surroundings. It plays a central role in configuring and enhancing the sensory capabilities of robots, allowing them to perceive, analyze, and respond to their envir...

Open this answer on its own page →

2080.1 · 5 marks

What is machine vision? Describe the components of machine vision. [5]

Machine vision is the ability of a computer to "see". A machine vision system employs one or more video cameras, analog-to-digital conversion (ADC), and digital signal processing (DSP). The resulting data goes to a computer or robot controller. It uses different components to visually analyze an ...

Open this answer on its own page →