Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
Showing results for 
Search instead for 
Did you mean: 

Artificial Intelligence (AI) is a broad field focused on creating intelligent machines capable of emulating human intelligence. AI expert systems specifically aim to replicate human expertise and decision-making processes within specific domains. These systems leverage knowledge bases, rule sets and inference mechanisms to provide recommendations or make decisions, imitating the problem-solving capabilities of human experts.

Need for an AI Expert System:

  • AI expert systems offer consistent decision-making and problem-solving processes, ensuring a high level of expertise is consistently applied across various scenarios eliminating bias.  This reliability enhances the quality of outcomes.
  • These systems excel at handling complex problems involving vast amounts of data. They can analyze intricate situations and derive rule-based insights that may be challenging for humans to process manually.
  • Expert systems automate routine tasks, decision-making processes and problem-solving activities, leading to reduced errors, time savings and increased productivity within organizations.
  • They also play a crucial role in retaining and preserving valuable knowledge and expertise within an organization, even as experts retire or leave the organization.

Architecture diagram.jpg

  • Inference Engine - crucial component of AI expert system. An inference engine is the component that processes logical rules and knowledge stored in the knowledge base to make inferences to derive conclusions.
  • Knowledge Base - core component of an expert system, containing information, facts, rules and heuristics related to the domain of expertise.
  • Knowledge Acquisition Module - responsible for acquiring knowledge from domain experts and translating it into a format that the expert system can understand.
  • Explanation Facility - expert systems include an explanation facility that can explain the reasoning process behind the system's recommendations or decisions. This transparency helps users understand why a particular solution or suggestion was provided.

How is an AI expert system different from ML Model?

AI Expert Systems Vs ML Model.jpg

The key difference between a machine learning model and an expert system is the expert systems rely on explicit domain knowledge and rules provided by experts, while machine learning models learn patterns and relationships directly from data through training. Machine learning models are completely data driven, whereas an expert system is rules, facts, objectives and domain-specific knowledge provided by human experts.

Expert systems are often used when human expertise is critical and rules are well-understood, while machine learning excels in tasks where large amounts of data can provide insights and predictions.

How to build an expert system?

Build an AI Expert System.jpg

  • Define the problem statement the expert system will address. Identify the specific tasks, decisions, or problems that the system will help with.
  • Next is the Knowledge Acquisition from domain experts. This can involve document reviews, expert interviews and extracting rules, facts and heuristics that experts use to make decisions in the domain.
  • Choose an appropriate knowledge representation method which could be rule-based or case-based (storing and retrieving past cases) or a combination of these approaches.
  • Develop the inference engine which is responsible for applying the knowledge rules to the input data or user queries to derive conclusions or make recommendations.
  • Last step is to design a user interface through which users can interact with the expert system.

Can we fine-tune a Large-Language Model to an expert system?

While it's theoretically possible to convert a large-language model into an expert system, the process is complex and the resulting system may not fully capture the richness and nuances of human-provided expert knowledge. It's more practical to use LLMs for tasks where their strengths are like natural language understanding and content generation

AI Expert Systems Vs LLM.jpg

  • Large language models learn implicit knowledge from vast amounts of data and then derive patterns and relationships. This may not capture human-provided rules in an expert system. Converting the learned representations of a large language model to use structured knowledge representation such as rules, facts and ontologies can be crucial and may require significant effort.
  • Large language models are general-purpose models trained on diverse data, whereas expert systems focus on domain-specific data. 
  • Bigger large language models like GPT-3 have complex internal structures that are not easily interpretable or explainable. Whereas expert systems are designed with transparency and interpretability as key features

Applications of AI Expert Systems:

  • Medical Diagnosis - AI Expert Systems are used extensively in healthcare for diagnosing diseases, interpreting medical images like X-rays and MRIs to provide decision support to healthcare professionals. 
  • Financial Services - In the financial sector expert systems assist in risk assessment, fraud detection, investment advisory, credit scoring and portfolio management based on market trends and economic indicators. 
  • Manufacturing and Quality Control - In manufacturing and quality control expert systems help optimize the manufacturing processes, monitor quality control, schedule maintenance tasks and improve overall operational efficiency
  • Education and Training - Expert systems are used in e-learning platforms to create intelligent tutoring systems and personalized educational content tailored to learning styles.
  • Customer Support and Chatbots - Chatbots powered by expert systems provide personalized customer support, answer queries, troubleshoot technical issues, recommend products or services and handle routine tasks through natural language processing (NLP) and machine learning.

Tools and Platforms:

  • Java Expert System (Jess)
  • CLIPS (C Language Integrated Production System)
  • PyKnow
  • Prolog


Overall, AI expert systems leverage domain knowledge, logical reasoning and inference capabilities to emulate human expertise and provide valuable insights and solutions in complex problem-solving scenarios. They are a powerful tool for augmenting human decision-making, improving efficiency and addressing challenges in diverse fields.


ArunKumar Balakrishnan

1 Comment