Case-based reasoning (CBR), broadly construed, is the process of solving new problems based on the solutions of similar past problems.
In everyday life, an auto
mechanic who fixes an
engine
An engine or motor is a machine designed to convert one or more forms of energy into mechanical energy.
Available energy sources include potential energy (e.g. energy of the Earth's gravitational field as exploited in hydroelectric power ge ...
by recalling another
car
A car, or an automobile, is a motor vehicle with wheels. Most definitions of cars state that they run primarily on roads, seat one to eight people, have four wheels, and mainly transport people rather than cargo. There are around one billio ...
that exhibited similar symptoms is using case-based reasoning. A
lawyer
A lawyer is a person who is qualified to offer advice about the law, draft legal documents, or represent individuals in legal matters.
The exact nature of a lawyer's work varies depending on the legal jurisdiction and the legal system, as w ...
who advocates a particular outcome in a
trial
In law, a trial is a coming together of parties to a dispute, to present information (in the form of evidence) in a tribunal, a formal setting with the authority to adjudicate claims or disputes. One form of tribunal is a court. The tribunal, w ...
based on
legal
Law is a set of rules that are created and are law enforcement, enforceable by social or governmental institutions to regulate behavior, with its precise definition a matter of longstanding debate. It has been variously described as a Socia ...
precedent
Precedent is a judicial decision that serves as an authority for courts when deciding subsequent identical or similar cases. Fundamental to common law legal systems, precedent operates under the principle of ''stare decisis'' ("to stand by thin ...
s or a judge who creates
case law
Case law, also used interchangeably with common law, is a law that is based on precedents, that is the judicial decisions from previous cases, rather than law based on constitutions, statutes, or regulations. Case law uses the detailed facts of ...
is using case-based reasoning. So, too, an
engineer
Engineers, as practitioners of engineering, are professionals who Invention, invent, design, build, maintain and test machines, complex systems, structures, gadgets and materials. They aim to fulfill functional objectives and requirements while ...
copying working elements of nature (practicing
biomimicry) is treating nature as a database of solutions to problems. Case-based reasoning is a prominent type of
analogy
Analogy is a comparison or correspondence between two things (or two groups of things) because of a third element that they are considered to share.
In logic, it is an inference or an argument from one particular to another particular, as oppose ...
solution making.
It has been argued that case-based reasoning is not only a powerful method for
computer reasoning, but also a pervasive behavior in everyday human
problem solving
Problem solving is the process of achieving a goal by overcoming obstacles, a frequent part of most activities. Problems in need of solutions range from simple personal tasks (e.g. how to turn on an appliance) to complex issues in business an ...
; or, more radically, that all reasoning is based on past cases personally experienced. This view is related to
prototype theory, which is most deeply explored in
cognitive science
Cognitive science is the interdisciplinary, scientific study of the mind and its processes. It examines the nature, the tasks, and the functions of cognition (in a broad sense). Mental faculties of concern to cognitive scientists include percep ...
.
Process

Case-based reasoning has been formalized for purposes of
computer reasoning as a four-step process:
[Agnar Aamodt and Enric Plaza,]
Case-Based Reasoning: Foundational Issues, Methodological Variations, and System Approaches
" ''Artificial Intelligence Communications'' 7 (1994): 1, 39-52.
# Retrieve: Given a target problem, retrieve cases relevant to solving it from memory. A case consists of a problem, its solution, and, typically, annotations about how the solution was derived. For example, suppose Fred wants to prepare blueberry
pancakes
A pancake, also known as a hotcake, griddlecake, or flapjack, is a flat type of batter bread like cake, often thin and round, prepared from a starch-based Batter (cooking), batter that may contain eggs, milk, and butter, and then cooked on a ...
. Being a novice cook, the most relevant experience he can recall is one in which he successfully made plain pancakes. The procedure he followed for making the plain pancakes, together with justifications for decisions made along the way, constitutes Fred's retrieved case.
# Reuse: Map the solution from the previous case to the target problem. This may involve adapting the solution as needed to fit the new situation. In the pancake example, Fred must adapt his retrieved solution to include the addition of blueberries.
# Revise: Having mapped the previous solution to the target situation, test the new solution in the real world (or a simulation) and, if necessary, revise. Suppose Fred adapted his pancake solution by adding blueberries to the batter. After mixing, he discovers that the batter has turned blue – an undesired effect. This suggests the following revision: delay the addition of blueberries until after the batter has been ladled into the pan.
# Retain: After the solution has been successfully adapted to the target problem, store the resulting experience as a new case in memory. Fred, accordingly, records his new-found procedure for making blueberry pancakes, thereby enriching his set of stored experiences, and better preparing him for future pancake-making demands.
Comparison to other methods
At first glance, CBR may seem similar to the
rule induction algorithm
In mathematics and computer science, an algorithm () is a finite sequence of Rigour#Mathematics, mathematically rigorous instructions, typically used to solve a class of specific Computational problem, problems or to perform a computation. Algo ...
s
[Rule-induction algorithms are procedures for learning rules for a given concept by generalizing from examples of that concept. For example, a rule-induction algorithm might learn rules for forming the plural of English nouns from examples such as ''dog/dogs'', ''fly/flies'', and ''ray/rays''.] of
machine learning
Machine learning (ML) is a field of study in artificial intelligence concerned with the development and study of Computational statistics, statistical algorithms that can learn from data and generalise to unseen data, and thus perform Task ( ...
. Like a rule-induction algorithm, CBR starts with a set of cases or training examples; it forms generalizations of these examples, albeit implicit ones, by identifying commonalities between a retrieved case and the target problem.
If for instance a procedure for plain pancakes is mapped to blueberry pancakes, a decision is made to use the same basic batter and frying method, thus implicitly generalizing the set of situations under which the batter and frying method can be used. The key difference, however, between the implicit generalization in CBR and the generalization in rule induction lies in when the generalization is made. A rule-induction algorithm draws its generalizations from a set of training examples before the target problem is even known; that is, it performs eager generalization.
For instance, if a rule-induction algorithm were given recipes for plain pancakes, Dutch apple pancakes, and banana pancakes as its training examples, it would have to derive, at training time, a set of general rules for making all types of pancakes. It would not be until testing time that it would be given, say, the task of cooking blueberry pancakes. The difficulty for the rule-induction algorithm is in anticipating the different directions in which it should attempt to generalize its training examples. This is in contrast to CBR, which delays (implicit) generalization of its cases until testing time – a strategy of lazy generalization. In the pancake example, CBR has already been given the target problem of cooking blueberry pancakes; thus it can generalize its cases exactly as needed to cover this situation. CBR therefore tends to be a good approach for rich, complex domains in which there are myriad ways to generalize a case.
In law, there is often explicit delegation of CBR to courts, recognizing the limits of rule based reasons: limiting delay, limited knowledge of future context, limit of negotiated agreement, etc. While CBR in law and cognitively inspired CBR have long been associated, the former is more clearly an interpolation of rule based reasoning, and judgment, while the latter is more closely tied to recall and process adaptation. The difference is clear in their attitude toward error and appellate review.
Another name for cased based reasoning in problem solving is symptomatic strategies. It does require à priori domain knowledge that is gleaned from past experience which established connections between symptoms and causes. This knowledge is referred to as shallow, compiled, evidential, history-based as well as case-based knowledge. This is the strategy most associated with diagnosis by experts. Diagnosis of a problem transpires as a rapid recognition process in which symptoms evoke appropriate situation categories.
[Gilhooly, Kenneth J. "Cognitive psychology and medical diagnosis." Applied cognitive psychology 4.4 (1990): 261-272.] An expert knows the cause by virtue of having previously encountered similar cases. Cased based reasoning is the most powerful strategy, and that used most commonly. However, the strategy won't work independently with truly novel problems, or where deeper understanding of whatever is taking place is sought.
An alternative approach to problem solving is the topographic strategy which falls into the category of deep reasoning. With deep reasoning, in-depth knowledge of a system is used. Topography in this context means a description or an analysis of a structured entity, showing the relations among its elements.
[American Heritage Dictionary.]
Also known as reasoning from first principles,
[Davis, Randall. "Reasoning from first principles in electronic troubleshooting." International Journal of Man-Machine Studies 19.5 (1983): 403-423.] deep reasoning is applied to novel faults when experience-based approaches aren't viable. The topographic strategy is therefore linked to à priori domain knowledge that is developed from a more a fundamental understanding of a system, possibly using first-principles knowledge. Such knowledge is referred to as deep, causal or model-based knowledge.
[Milne, Robert. "Strategies for diagnosis." IEEE transactions on systems, man, and cybernetics 17.3 (1987): 333-339.]
Hoc and Carlier
[Hoc, Jean-Michel. "A method to describe human diagnostic strategies in relation to the design of human-machine cooperation." International Journal of Cognitive Ergonomics 4.4 (2000): 297-309.] noted that symptomatic approaches may need to be supported by topographic approaches because symptoms can be defined in diverse terms. The converse is also true – shallow reasoning can be used abductively to generate causal hypotheses, and deductively to evaluate those hypotheses, in a topographical search.
Criticism
Critics of CBR argue that it is an approach that accepts
anecdotal evidence as its main operating principle. Without statistically relevant data for backing and implicit generalization, there is no guarantee that the generalization is correct. However, all
inductive reasoning
Inductive reasoning refers to a variety of method of reasoning, methods of reasoning in which the conclusion of an argument is supported not with deductive certainty, but with some degree of probability. Unlike Deductive reasoning, ''deductive'' ...
where data is too scarce for statistical relevance is inherently based on anecdotal evidence.
History
CBR traces its roots to the work of
Roger Schank and his students at
Yale University
Yale University is a Private university, private Ivy League research university in New Haven, Connecticut, United States. Founded in 1701, Yale is the List of Colonial Colleges, third-oldest institution of higher education in the United Stat ...
in the early 1980s. Schank's model of dynamic memory
[Roger Schank, Dynamic Memory: ''A Theory of Learning in Computers and People'' (New York: Cambridge University Press, 1982).] was the basis for the earliest CBR systems:
Janet Kolodner's CYRUS
[Janet Kolodner,]
Reconstructive Memory: A Computer Model
" ''Cognitive Science'' 7 (1983): 4. and Michael Lebowitz's IPP.
[Michael Lebowitz,]
Memory-Based Parsing
," ''Artificial Intelligence'' 21 (1983), 363-404.
Other schools of CBR and closely allied fields emerged in the 1980s, which directed at topics such as legal reasoning, memory-based reasoning (a way of reasoning from examples on massively parallel machines), and combinations of CBR with other reasoning methods. In the 1990s, interest in CBR grew internationally, as evidenced by the establishment of an International Conference on Case-Based Reasoning in 1995, as well as European, German, British, Italian, and other CBR workshops.
CBR technology has resulted in the deployment of a number of successful systems, the earliest being Lockheed's CLAVIER,
[Bill Mark, "Case-Based Reasoning for Autoclave Management," ''Proceedings of the Case-Based Reasoning Workshop'' (1989).] a system for laying out composite parts to be baked in an industrial convection oven. CBR has been used extensively in applications such as the Compaq SMART system
[Trung Nguyen, Mary Czerwinski, and Dan Lee,]
COMPAQ QuickSource: Providing the Consumer with the Power of Artificial Intelligence
" in ''Proceedings of the Fifth Annual Conference on Innovative Applications of Artificial Intelligence'' (Washington, DC: AAAI Press, 1993), 142-151. and has found a major application area in the health sciences, as well as in structural safety management.
There is recent work that develops CBR within a statistical framework and formalizes case-based inference as a specific type of probabilistic inference. Thus, it becomes possible to produce case-based predictions equipped with a certain level of confidence.
[Eyke Hüllermeier]
Case-Based Approximate Reasoning
Springer-Verlag, Berlin, 2007.
One description of the difference between CBR and induction from instances is that
statistical inference
Statistical inference is the process of using data analysis to infer properties of an underlying probability distribution.Upton, G., Cook, I. (2008) ''Oxford Dictionary of Statistics'', OUP. . Inferential statistical analysis infers properties of ...
aims to find what tends to make cases similar while CBR aims to encode what suffices to claim similarly.
[
Wilson, Robert Andrew, and Frank C. Keil, eds. The MIT encyclopedia of the cognitive sciences. MIT press, 2001.
]
See also
*
AI alignment
*
Artificial intelligence detection software
*
Abductive reasoning
Abductive reasoning (also called abduction,For example: abductive inference, or retroduction) is a form of logical inference that seeks the simplest and most likely conclusion from a set of observations. It was formulated and advanced by Ameri ...
*
Duck test
*
I know it when I see it
The phrase "I know it when I see it" was used in 1964 by United States Supreme Court Justice Potter Stewart to describe his threshold test for obscenity in '' Jacobellis v. Ohio''. In explaining why the material at issue in the case was not obsce ...
*
Commonsense reasoning
*
Purposeful omission
*
Decision tree
A decision tree is a decision support system, decision support recursive partitioning structure that uses a Tree (graph theory), tree-like Causal model, model of decisions and their possible consequences, including probability, chance event ou ...
*
Genetic algorithm
In computer science and operations research, a genetic algorithm (GA) is a metaheuristic inspired by the process of natural selection that belongs to the larger class of evolutionary algorithms (EA). Genetic algorithms are commonly used to g ...
*
Pattern matching
In computer science, pattern matching is the act of checking a given sequence of tokens for the presence of the constituents of some pattern. In contrast to pattern recognition, the match usually must be exact: "either it will or will not be a ...
*
Analogy
Analogy is a comparison or correspondence between two things (or two groups of things) because of a third element that they are considered to share.
In logic, it is an inference or an argument from one particular to another particular, as oppose ...
*
K-line (artificial intelligence)
*
Ripple down rules
*
Casuistry
Casuistry ( ) is a process of reasoning that seeks to resolve moral problems by extracting or extending abstract rules from a particular case, and reapplying those rules to new instances. This method occurs in applied ethics and jurisprudence. ...
*
Similarity heuristic
Notes and references
Further reading
* Aamodt, Agnar, and Enric Plaza.
Case-Based Reasoning: Foundational Issues, Methodological Variations, and System Approaches ''Artificial Intelligence Communications'' 7, no. 1 (1994): 39–52.
* Althoff, Klaus-Dieter, Ralph Bergmann, and L. Karl Branting, eds. ''Case-Based Reasoning Research and Development: Proceedings of the Third International Conference on Case-Based Reasoning''. Berlin: Springer Verlag, 1999.
* Bergmann, Ralph ''Experience Management: Foundations, Development Methodology, and Internet-Based Applications''. Springer, LNAI 2432, 2002.
* Bergmann, R., Althoff, K.-D., Breen, S., Göker, M., Manago, M., Traphöner, R., and Wess, S. ''Developing industrial case-based reasoning applications: The INRECA methodology.'' Springer LNAI 1612, 2003.
* Kolodner, Janet. ''Case-Based Reasoning''. San Mateo: Morgan Kaufmann, 1993.
* Leake, David.
, In Leake, D., editor, Case-Based Reasoning: Experiences, Lessons, and Future Directions. AAAI Press/MIT Press, 1996, 1-30.
* Leake, David, and Enric Plaza, eds. ''Case-Based Reasoning Research and Development: Proceedings of the Second International Conference on Case-Based Reasoning''. Berlin: Springer Verlag, 1997.
*
*
Oxman, Rivka. ''Precedents in Design: a Computational Model for the Organization of Precedent Knowledge'', Design Studies, Vol. 15 No. 2 pp. 141–157
* Riesbeck, Christopher, and Roger Schank. ''Inside Case-based Reasoning''. Northvale, NJ: Erlbaum, 1989.
* Veloso, Manuela, and Agnar Aamodt, eds.
Case-Based Reasoning Research and Development: Proceedings of the First International Conference on Case-Based Reasoning'. Berlin: Springer Verlag, 1995.
* Watson, Ian. ''Applying Case-Based Reasoning: Techniques for Enterprise Systems''. San Francisco: Morgan Kaufmann, 1997.
External links
GAIA – Group of Artificial Intelligence Applications
----
''A
earlier versionof the above article was posted on
Nupedia.''
{{DEFAULTSORT:Case-Based Reasoning
Classification algorithms
Inductive reasoning
Reasoning
Artificial intelligence
Cybernetics