skip to main content
article
Free Access

Structural testing of rule-based expert systems

Published:01 April 1992Publication History
Skip Abstract Section

Abstract

Testing of rule-based expert systems has become a high priority for many organizations as the use of such systems proliferates. Traditional software teting techniques apply to some components of rule-based systems, e.g., the inference engine. However, to structurally test the rule base component requires new techniques or adaptations of existing ones. This paper describes one such adaptation: an extension of data flow path selection in which a graphical representation of a rule base is defined and evaluated. This graphical form, called a logical path graph, captures logical paths through a rule base. These logical paths create precisely the abstractions needed in the testing process. An algorithm for the construction of logical path graphs are analyzed.

References

  1. 1 AMBLE, T. Logic Programming and Knowledge Engineering. Addison-Wesley, Reading, Mass., 1987. Google ScholarGoogle Scholar
  2. 2 BELLMAN K. Testing and correcting rule-based expert systems. Computer Science Laboratory, Aerospace Corp., April 1988. Presented at the Space Quality Conference.Google ScholarGoogle Scholar
  3. 3 BELLMAN, K., AND WALTER, D. Analyzing and correcting knowledge-based sys~.ems requires explicit models. In Procee&ngs of AAAI-88 Workshop on Validation and Testing of Knowledge-based Systems (Minneapohs, Minn., Aug 1988).Google ScholarGoogle Scholar
  4. 4 BERGE, C. Graphs and Hypergraphs. North-Holland, Amsterdam, 1973. Google ScholarGoogle Scholar
  5. 5 BOCHSLER, D., AND GOODWIN, M. A. A software approach to expert system design and verification. Tech. Rep., NASA/Johnson Space Center, 1987Google ScholarGoogle Scholar
  6. 6 CHANG, C. L., AND STACHOWITZ, R A The testing of expert systems. In Proceedings of SOAR88 Conference (Wright State Univ., Dayton, Oh. July 1988), pp. 131-135.Google ScholarGoogle Scholar
  7. 7 CLARKE, L. A., PODaURSK~, A., RICHARDSON, D. J., AND ZEIL, S. J. A formal evaluation of data flow path selection criteria. IEEE Trans. Softw Eng. 15, 11 (Nov. 1989), 1318-1332. Google ScholarGoogle Scholar
  8. 8 Computer Science Corporation Expert system methodology study report. Tech. Rep. CSC/TM-87/6728, Computer Science Corporation, Dec. 1987.Google ScholarGoogle Scholar
  9. 9 CULBERT, C. CLIPS Reference Manual Artificial Intelligence Section, Johnson Space Center. NASA, Apr. 1988Google ScholarGoogle Scholar
  10. 10 CULBERT, C., RILEY, a., AND STAVELY, R. T An expert system development methodology which supports verification and validation. In Proceedings of the Fourth IEEE Conference on Artificial IntellLgence Applicatmns (Houston, Tex., Sept. 1987)Google ScholarGoogle Scholar
  11. 11 GIARRANTANO, J. CLIP's User's Guide. Artificial Intelligence Section, Johnson Space Center, NASA, June 1988.Google ScholarGoogle Scholar
  12. 12 JOHNSON, S. C. Vahdation of highly reliable real-time knowledge-based systems In Proceedings of the SOAR 88 Workshop of Automation and Robotics (Wright State Univ., Dayton, Oh., July 1988), pp. 123-129.Google ScholarGoogle Scholar
  13. 13 MCCABE, T J. A complexity measure. IEEE Trans. Softw. Eng. SE-2, 4 (Dec. 1976), 308-320.Google ScholarGoogle Scholar
  14. 14 MCCABE, T.J. Structured Testing: A Testing Methodology Using the McCabe Complexity Metrm IEEE Computer Society Press, Silver Spring, Md., 1983, pp. 19-47.Google ScholarGoogle Scholar
  15. 15 NGUYEN, T. A., PERKINS, W. A., LAFFEY, T. J., AND PECORA, D. Checking an expert systems knowledge base for consistency and completeness. In Proceedings of Ninth Internatmnal Joint Conference on AI (Los Angeles, Aug. 1985), pp. 375-378.Google ScholarGoogle Scholar
  16. 16 RICH, E. Artificial Intelligence. McGraw-Hill, New York, 1983. Google ScholarGoogle Scholar
  17. 17 RUSHBY, J. Quality measures and assurance for ai software. Tech. Rep. SRI International, May 1988. Final report Contract NAS1 17067 (Task 5). Google ScholarGoogle Scholar
  18. 18 STACHOWITZ, R. A., COMBS, J. B., AND CHANG, C.L. Validation of knowledge-based systems. In Proceedings of Second AIAA /NASA / USAF Symposium on Automation, Robotics and Advanced Computing for the National Space Program (Arlington, Va., Mar. 1987).Google ScholarGoogle Scholar
  19. 19 STAGNER, J.R. Toward a certification methodology for expert systems. SI and TRC Tech. Mem. 1, Jet Propulsion Laboratory, Pasadena, Calif., July 1988.Google ScholarGoogle Scholar
  20. 20 SUWA, M., SCOTT, A. C., AND SHORTLIFFE, E.H. An approach to verifying completeness and consistency in a rule-based expert system. AI Mag. (Fall 1982), 16-21.Google ScholarGoogle Scholar
  21. 21 WEYUKER, E.J. The evaluation of program-based software test data adequacy criteria. Commun. ACM 31, 6 (June 1988), 668-675. Google ScholarGoogle Scholar

Index Terms

  1. Structural testing of rule-based expert systems

      Recommendations

      Reviews

      James Clinton Spohrer

      The author extends a software testing technique (control and data flow paths) to rule systems (logical paths). The testing approach requires finding a graphical representation of rule bases that can provide a reasonable set of paths that adequately test rules and their interactions. Two major issues are explored: the computational complexity of the algorithm that generates the graph and paths, and the independence of the technique from the inference engine that interprets the rules. The logical paths technique has been successfully tested on a few small rule bases, but its utility has not been investigated on realistically large rule bases. The paper does contain helpful references to related work, and therefore is most likely to interest others seeking to devise new testing techniques for rule-based expert systems.

      Access critical reviews of Computing literature here

      Become a reviewer for Computing Reviews.

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in

      Full Access

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader