Efficient identification methods: Constructing irredundant test sets for confident taxa identification

The ability to identify items confidently and efficiently is important in many areas of life. A doctor may want to identify the disease suffered by a patient, in order to decide upon the best treatment. Similarly a farmer may want to identify a plant disease. Or a mechanic may want to identify the faulty component that is causing a car engine to misfire, so that it can be replaced. There are many other areas including microbiology, identification of pollutants, face recognition and hobbies like botany and birdwatching. Often the items to identify can be described by discrete-valued attributes, such as age group of a patient, presence or absence of a medical symptom, colours of petals, or the shape of a bird’s beak.

Tests and taxa

In statistical analysis software like Genstat, we would represent each of these as a factor, or grouping variable, and can define a test as the act of observing its values. Its result is the value that is observed. For generality, the items to identify (diseases, plants, birds etc) are often called taxa.

Fixed results and exact identification

In this blog, we are interested in data sets where many, or most, of the test results are fixed, that is the same result will always be obtained with any members of the taxon concerned. For example, all Field Poppies (Papaver rhoeas) have red petals, all Curlews (Numenius arquata) have long beaks that curve downwards, the yeast Saccharomyces cerevisiae will always ferment glucose, a faulty spark plug will always cause an engine to misfire, a diamond will always cut glass, and so on. A taxon can be identified exactly if its results from a set of tests cannot be given by any of the other taxa. A taxon × test table showing the results that may be given by each taxon to the available tests is called a diagnostic table. Usually the rows are sorted so that they are in numerical/alphabetical order. A specimen can then be identified conveniently by checking its test results against those in the rows of the table. In this blog, we are considering situations where there are few taxa that cannot be identified exactly, and our interest is in the efficiency of the process. (If there were very few fixed results, we would want to know the probabilities of the result of each taxon to every test, so that we could use a Bayesian method.)

Irredundant test sets

For efficient identification, we might want to limit the number of tests that we need to make (or factors that we need to observe). Also, if we want to save time, we might want to do a set of tests simultaneously. We want to do enough tests to identify whatever specimen may occur, but we do not want to do more than necessary. The answer is to select an irredundant set of tests. This is a set that has the property that, if you delete any test from the set, there will be at least one pair of taxa that can no longer be distinguished.

Constructing irredundant test sets in Genstat

The IRREDUNDANT directive in Genstat contains an algorithm for constructing irredundant tests, that I wrote originally for the book Yeasts: Characteristics and identification by Barnett, Yarrow and Payne, with three editions published by Cambridge University Press in 1983, 1990 and 2000. In the 3rd Edition, there are 678 species of yeast. Their properties are described by 99 physiological tests (for example, the ability to grow under various conditions) and 16 tests describing their appearance. The tests can take several days, and so it is usual to do a set of tests all at once. A Genstat spreadsheet book, Yeasts.gwb, with details of the results that may be given by each yeast, is shown below.

The output below shows how IRREDUNDANT can be used to construct the sets of tests.

There are eight irredundant sets, each containing 93 tests (a saving of 22 tests). A diagnostic table based on the chosen set is too large to present here. However, the books also looked at smaller groups of yeasts that might be easy to detect. For example, there are 127 yeasts that may exhibit pink colonies (test number 100, E1 Pink colonies). There are four available sets, which differ according to the choice of either test C14 or test C15, and either test C44 or test N3.

Thus, if we can see that the yeast is pink, we can save a further 47 tests. We have saved the best set (set in the pointer Pinkset, and could print the results of these tests for the pink years by

RESTRICT    Pinkset[]; E1.IN.!t('+',V)
PRINT       [RLWIDTH=37] PinkSet[]; FIELD=5(3),41(4)
RESTRICT    Pinkset[]

This would print the results in an unsorted order. For more convenient identification, we could use the SORT directive to put the rows into “lexicographical” order (with all the ‘-’s before the’+’s). Alternatively, we can use the IDENTIFY procedure to show yeasts with an observed set of test results. The commands below form a blank spreadsheet, that can be used to enter the results.

FACTOR      [IPRINT=identifier,extra]; MODIFY=yes] PinkSet[]
TXCONSTRUCT [TEXT=Pinktests] PinkSet
CALCULATE   pinktests = NVALUES(Pinktests)
FACTOR      [VALUES=#npinktests(*); LABELS=!t('-','+')] Results
FSPREAD     Pinktests,Results

The spreadsheet below contains some results for an unknown pink yeast.

The program below loads the data and uses IDENTIFY to identify the yeast as Bensingtonia subrosea.

Conclusion

Irredundant test sets are useful whenever you need to do several tests at a time. Applications include the selection of molecular markers as well as more conventional areas like medical diagnosis, identification of plant pathogens, risk assessment and many others.

Picture of Dr Roger Payne
Dr Roger Payne
Dr Roger Payne, now retired, led Genstat’s development for more than 20 years at VSNi. He has a degree in mathematics and a PhD in mathematical statistics from University of Cambridge, and is a Chartered Statistician of the Royal Statistical Society. Prior to joining VSNi he was a member of the Rothamsted Statistics Department, where he worked on Genstat from 1974, taking over its leadership in 1985. He has also had several extended research visits to other organisations, including a one year secondment to CSIRO Division of Mathematical Statistics in Adelaide during 1978-9. His work has involved a mixture of statistical computing, statistical consulting and research, enabling him to develop a talent for development and then practical application of new and relevant statistical methodology. He has a broad knowledge of statistics, with particular expertise in design and analysis of experiments, generalized linear models and linear mixed models. He has served on the committees of many statistical societies, including the Royal Statistical Society Council, General Applications Section (Chairman) and Statistical Computing Section (Chairman), the British Classification Society and the International Association for Statistical Computing (Vice President). His other professional activities have included a visiting professorship at Liverpool John Moores University, and a special lectureship at University of Nottingham.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Related articles

How much of the variation in your field trial comes from the treatments, and how much comes from...
What should you do when count data are more variable than your model expects? Vanessa Cave and David...
Precision breeding can deliver scientifically impressive traits, but practical value depends on more than technical success. Owen McIntosh...