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.
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 answerHide 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
| Application | Role of Machine Vision |
|---|---|
| Navigation | Obstacle detection and path planning |
| Object Manipulation | Precise location and grasping |
| Quality Control | Defect detection in products |
| Human Interaction | Face and gesture recognition |
| Learning | Training 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.
Expert Systems
2078 · 5 marks
What is expert system? How its works? Mention role of inference engine in expert system. [5]
Natural Language Processing
2080 · 5 marks
Why pragmatic analysis is necessary in NLP? How pragmatic analysis is done? [5]
2079 · 5 marks
How syntactic and semantic analyses are performed in natural language processing? [5]
2078 · 5 marks
How semantic and pragmatic analysis is done in natural language processing. [5]
2076 · 5 marks
How syntactic and semantic analysis is done during natural language processing? Explain with example. [5]
2080.1 · 5 marks
How natural language generation differs from natural language understanding? How morphological analysis is done in NLP? [5]
Show solved answerHide 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.
| Aspect | NLU (Natural Language Understanding) | NLG (Natural Language Generation) |
|---|---|---|
| Definition | The 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. |
| Direction | Natural Language --> Machine Representation | Machine Representation --> Natural Language |
| Task | Takes 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 Challenge | The 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 Involved | Morphological analysis, syntactic analysis, semantic analysis. | Deep generation, syntactic generation. |
| Difficulty | Harder than NLG (language has ambiguity, context, etc.). | Less hard than NLU. |
| Analogy | Like 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:
| Word | Morpheme Breakdown | Analysis |
|---|---|---|
unhappy | un- + happy | Prefix un- negates the adjective |
books | book + -s | Noun + plural marker |
running | run + -ning | Verb + present participle |
quickly | quick + -ly | Adjective + 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.
Development of Expert Systems
2079 · 10 marks
Define Expert System with example. What are stages of expert system development? Explain.[10]
Show solved answerHide 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
| Component | Description |
|---|---|
| Knowledge Base | Stores domain-specific facts, rules, and heuristics |
| Inference Engine | Applies logical rules to the knowledge base to derive conclusions |
| User Interface | Allows interaction between the user and the system |
| Explanation Facility | Explains the reasoning behind conclusions |
| Knowledge Acquisition Facility | Allows 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.
Machine Vision Concepts
2076 · 5 marks
How the concept of machine vision are used in Robotics to configure sensors of Robots? [5]
2080.1 · 5 marks
What is machine vision? Describe the components of machine vision. [5]
Make Unit 6 stick
Practice CSC266 with flashcards & quizzes