Samta Rule Based System Notes.docx
Samta Rule Based System Notes.docx
Samta Rule Based System Notes.docx
A rule-based system is a system that applies human-made rules to store, sort and
manipulate data. In doing so, it mimics human intelligence.
Rule-based systems require a set of facts or source of data, and a set of rules for manipulating
that data. These rules are sometimes referred to as ‘If statements’ as they tend to follow the line of
‘IF X happens THEN do Y’.
The steps can be simplified to:
A set of facts
These facts are assertions or anything that is relevant to the beginning state of the system.
Set of Rules
This set contains all the actions that should be performed within the scope of a problem and
defines how to act on the assertion set. In the set of rules facts are represented in an IF-THEN
form.
1. They are made up of the combined knowledge of human experts in the problem domain.
2. They represent knowledge in a very declarative manner.
3. They make it possible to use various knowledge representations paradigms.
4. They support the implementation of non-deterministic search and control strategies.
5. They help in describing fragmentary, ill-structured, heuristic, judgemental knowledge.
6. They are robust and have the ability to operate using uncertain or incomplete knowledge.
7. They can help with rule based decision making.
These rules most often take the form of "if" statements. "IF" outlines the trigger, "THEN" specifies
the action to complete. So, if you want to create a rule-based system capable of handling 100
different actions, you’d have to write 100 different rules. If you want to then update the system and
add actions, then you would need to write new rules.
In short, you use rules to tell a machine what to do, and the machine will do exactly as you
tell it. From there, rule-based systems will execute the actions until you tell it to stop.
The database
The database has a set of facts that are used to compare against the IF (condition) part of the
rules that are held in the knowledge base.
● Match - A section of the production rule system gets matched with the contents of the
working memory to gain a conflict, where there are several instances of the satisfied
productions.
● Conflict-Resolution - After the production system is matched, one of the production
instances in the conflict is selected for execution for the purpose of determining the
progress of the process.
● Act - The production instance selected in the previous stage is s executed, impacting the
contents of the working memory.
Explanation facilities
The explanation facilities make it possible for the user to ask the expert system how a specific
conclusion was reached and why a specific fact is required. The expert system needs to be able to
explain its reasoning and justify its advice, analysis, or conclusion.
User interface
The user interface is the means through which the user seeking a solution to a problem
communicates with the expert system. The communication should be as meaningful and friendly
as possible and the user interface should be as intuitive as possible.
These five elements are critical for any rule-based system. They are the core components of the
rule-based system. But the system might have some additional components as well. A couple of
these components could be the external interface and the working memory.
External interface
The external interface enables an expert system to work with external data files and programs that
are written in conventional programming languages like C, Pascal, FORTRAN and Basic.
Working memory
The working memory stores temporary information and data.
1. A rule-based system is built upon a lot of data, deep knowledge of the domain, and a lot of
manual work.
2. Writing and generating rules for a complex system is quite challenging and
time-consuming.
3. The self-learning capacity in a rule-based system is less as it generates the result as per
the rules.
4. Complex pattern identification is a challenging task in the Rule Based method as it takes a
lot of time and analysis.
Applications of Rule-based Systems
Healthcare, finance, and engineering are just a few examples of the sectors and applications that use
rule-based systems. Following are some instances of a rule-based system in AI:
1. Medical Diagnosis: Based on a patient's symptoms, medical history, and test findings, a rule-based
system in AI can make a diagnosis. The system can make a diagnosis by adhering to a series of
guidelines developed by medical professionals.
2. Fraud Detection: Based on particular criteria, such as the transaction's value, location, and time of
day, a rule-based system in AI can be used to spot fraudulent transactions. The system, for the
additional examination, can then flag the transaction.
3. Quality Control: A rule-based system in AI can ensure that products satisfy particular quality
standards. Based on a set of guidelines developed by quality experts, the system can check for flaws.
4. Decision support systems: They are created to aid decision-making, such as choosing which assets
to buy or what to buy.
Examples of industries that have used rule-based expert systems:
1. Healthcare: Rule-based expert systems have been used in healthcare to provide medical diagnosis
and treatment recommendations.
▪ For example, MYCIN, a rule-based expert system developed in the 1970s, was designed to assist
physicians in the diagnosis and treatment of bacterial infections.
▪ Another example is Dxplain, which uses a rule-based approach to assist physicians in diagnosing
medical conditions.
2. Finance: Rule-based expert systems used in finance to provide investment advice and financial
analysis.
▪ For example, FICO’s credit scoring system is a rule-based expert system that uses credit history
and other financial data to assess creditworthiness.
▪ Another example is the LegalRuleML, a rule-based system for legal decision making.
3. Manufacturing :- Used to improve production processes and optimize supply chain management.
▪ For example, General Electric used a rule-based expert system to optimize the production
process of its aircraft engines, resulting in significant cost savings and improved efficiency.
1. DENDRAL: It was an artificial intelligence project that was made as a chemical analysis expert
system. Used in organic chemistry to detect unknown organic molecules with the help of
their mass spectra and knowledge base of chemistry.
2. MYCIN: Earliest backward chaining expert systems designed to find the bacteria causing
infections like bacteraemia and meningitis. Also used for the recommendation of antibiotics and
the diagnosis of blood clotting diseases.
3. PXDES: used to determine the type and level of lung cancer. To determine the disease, it
takes a picture from the upper body, which looks like the shadow. This shadow identifies the type
and degree of harm.
4. CaDeT: Diagnostic support system that can detect cancer at early stages.