Implementation of an expert system for the qualitative interpretation of X-ray fluorescence spectra

Abstract The implementation of an expert system for the automated qualitative interpretation of energy-dispersive x-ray spectra is discussed. The first step in the interpretation process is the extraction of the relevant data from the spectrum, which is done by a preprocessor program, written in FORTRAN. The expert system itself consists of three parts. The knowledge base contains specific information on energy-dispersive x-ray fluorescence spectrometry presented in the form of IF/THEN rules. The data base contains the reduced spectral data and an array of certainty factors associated with each element; the certainty factor for an element represents the probability of its being present in the sample from which the spectrum was taken. Finally, the inference engine performs manipulation of the knowledge. For a particular state of the data base, the certainty factors for all the elements are iteratively modified until convergence is reached by using the rules from the knowledge base. During each cycle, the inference engine selects one rule from the knowledge base and executes it. Rules are selected on the basis of the chemical elements contained in their IF part and according to their previously assigned focus levels. Execution of the THEN part of the selected rule modifies the certainty factors of a number of elements. At the end of the interpretation session, the system lists the elements which have a high probability of being present in the sample. Optionally, the user can be provided with explanations of the reasoning steps taken during the interpretation. Application of the expert system to a particular spectrum shows that it is useful for the reliable interpretation of spectral data obtained from electron microprobe analysis of industrial aerosol particles.