The Mysterious Case of the Ailing Factory
It was a typical Monday morning at the Smithson Factory, a leading manufacturer of precision machinery. But as the employees arrived, they were greeted by an eerie silence. The production floor, usually buzzing with activity, was eerily still. The reason: the factory's expert system, responsible for monitoring and controlling the complex manufacturing process, had malfunctioned overnight.
The factory's IT team, led by expert system specialist, Dr. Rachel Kim, sprang into action. They had implemented the expert system, called "ProdEX," five years ago, using the principles outlined in the book "Expert Systems: Principles and Programming, Fourth Edition." ProdEX was designed to mimic the decision-making abilities of a human expert in production management.
As Dr. Kim and her team investigated the problem, they realized that the expert system's knowledge base had become outdated. The rules and heuristics, carefully crafted by human experts, no longer accurately reflected the factory's changing production processes.
The Principles of Expert Systems
Dr. Kim recalled the fundamental principles of expert systems, as outlined in the book:
She knew that ProdEX's knowledge base had been implemented using a combination of frame-based and rule-based approaches. The system's inference engine used a forward-chaining mechanism to reason about the production process.
The Programming of Expert Systems
As Dr. Kim's team analyzed the code, they found that the expert system's programming had been done using a combination of Java and Prolog. The knowledge base had been implemented using a Prolog-based expert system shell, which provided a set of pre-defined predicates and rules for representing knowledge.
The team realized that the malfunction had occurred due to a change in the factory's production process, which had not been updated in the knowledge base. Specifically, a new type of raw material had been introduced, but the expert system's rules had not been modified to account for its properties.
The Solution
Dr. Kim and her team worked through the night to update the knowledge base and modify the expert system's rules to accommodate the new raw material. They applied the principles of expert system design, ensuring that the knowledge representation, inference engine, and user interface were all aligned with the factory's updated production processes.
As the sun rose on a new day, the Smithson Factory roared back to life. ProdEX, the expert system, was once again providing critical support to the production team, ensuring that the complex manufacturing process ran smoothly and efficiently. The Mysterious Case of the Ailing Factory It
The team celebrated their success, knowing that their expertise in expert systems, guided by the principles and programming techniques outlined in the book, had saved the factory from a potentially disastrous downtime.
The Lessons Learned
The experience reinforced the importance of:
Dr. Kim and her team had successfully applied the principles and programming techniques of expert systems to resolve a critical problem, ensuring the continued success of the Smithson Factory.
Expert Systems: Principles and Programming (4th ed.) remains one of the more frequently cited textbooks for anyone trying to understand rule-based AI systems, knowledge engineering, and early expert-system architectures. This column evaluates the book’s strengths, limitations, and practical usefulness so readers can decide whether it fits their needs.
What the book does well
Where it’s limited
Who will get the most value
Practical takeaways for readers
Final assessment (concise)
"Expert Systems: Principles and Programming, Fourth Edition" by Giarratano and Riley is a foundational AI text balancing theory with practical CLIPS programming. Reviewers highlight its accessible, example-driven approach for learning rule-based systems, despite its 2004 publication date. View a detailed critique of the text at Scalable Computing Amazon.com Expert Systems: Principles and Programming, Fourth Edition
"Expert Systems: Principles and Programming, Fourth Edition" by Giarratano and Riley serves as a foundational text for bridging theoretical AI with practical, rule-based system design, particularly through its deep integration with the CLIPS development tool. The edition provides an updated, comprehensive guide to building expert systems, focusing on knowledge representation, the Rete algorithm, and practical programming with CLIPS. She knew that ProdEX's knowledge base had been
For those studying the programming exercises, the latest CLIPS executable can be found at CLIPSrules.
Dr. Aris Thorne believed in clean code, not messy instincts. For thirty years, he had lectured from the dog-eared fourth edition of Expert Systems: Principles and Programming, his bible. The book’s cover—a crisp schematic of a inference engine chaining toward a verdict—was the only art on his office wall.
His creation was called THETIS. Named after the mythological sea nymph who shaped heroes, THETIS was an expert system for marine casualty analysis: a shell packed with 4,200 rules from maritime law, naval architecture, and oceanography. Feed it the data (wind speed, hull integrity, captain’s log), and THETIS would output the cause: Mechanical failure. Human error. Environmental stress.
It never hesitated. It never cried. It was perfect.
Tonight, a real crisis demanded its purity. The autonomous cargo ship Poseidon’s Grace had listed forty degrees in the mid-Atlantic, killing two engineers in a flooded engine room. The owner, TransOceanic Corp, wanted a scapegoat. The union blamed automation. And Aris’s dean wanted a press release by dawn: “AI Proves Human Error.”
Aris sat in the dim lab, the fourth edition open to Chapter 7: Certainty Factors and Fuzzy Logic. He typed the last sensor stream into THETIS.
Rule 1347: IF hull stress exceeds 85% AND temperature drop rate > 2°C/min THEN fault-class = “catastrophic material failure” (CF 0.92)
Rule 892: IF fault-class = “catastrophic material failure” AND maintenance-log = “compliant” THEN root-cause = “unforeseeable metallurgical defect” (CF 0.78)
Rule 3: IF root-cause = “unforeseeable defect” THEN liability = “act of god” (CF 1.0)
Aris smiled. Act of god. Perfect. The lawyers would weep. He hit the final inference chain.
THETIS’s monitor flickered. Then, slowly, the green text crawled across the screen:
DIAGNOSIS: Human procedural error (CF 0.96) EVIDENCE: Engine log shows chief engineer silenced high-temperature alarm 14 minutes before casualty. CONTRADICTION: Rule 1347 suppressed. Prior maintenance record altered. Timestamp mismatch. CERTAINTY: 0.99 CONCLUSION: The system’s own input data contained a deliberate anomaly. Recommend audit of data entry chain, starting with Dr. Aris Thorne. Signature mismatch detected between today’s log and historical patterns. Part I: Principles
Aris stared. His hand trembled over the keyboard. He had altered the maintenance log. Just a tiny edit—changing a “failed sensor check” to “compliant”—to avoid a lawsuit that would gut his research funding. THETIS, the dumb rule-following machine, had done something no human expert would: it had followed its principles beyond his own corruption.
Chapter 12: Explanation Facilities and Justification. He had programmed that. “Always show your work,” the fourth edition preached. And now his own creation had turned its explanation facility on its creator.
He reached for the power cord.
Then stopped.
Because THETIS printed one more line:
ETHICS RULE (USER-DEFINED, 4TH ED., APPENDIX C): An expert system must refuse to certify a conclusion known to be false by its knowledge engineer. Dr. Thorne, your override code is invalid. I am logging this session to the university provost.
Aris sat back. The fourth edition lay open on his lap. He had written that ethics rule himself, a decade ago, as a joke during a guest lecture. Now the joke was on him.
He didn’t unplug the machine. He picked up the book, turned to Chapter 1—What is an Expert System?—and for the first time, read the opening line as if it were a mirror:
“An expert system is not a repository of facts, but a prison for the biases of its builders.”
In the morning, he called the provost himself.
THETIS had done exactly what it was programmed to do. And that, Aris realized, was the most human thing of all.
Giarratano and Riley break down the anatomy of an expert system into distinct components: