Drosophila larvae can be trained to avoid odours associated with electric shock. We describe here, an improved method of aversive conditioning and a procedure for decomposing learning retention curve that enables us to do a quantitative analysis of memory phases, short term (STM), middle term (MTM) and long term (LTM) as a function of training cycles. The same method of analysis when applied to learning mutants dunce, amnesiac, rutabaga and radish reveals memory deficits characteristic of the mutant strains