 An example of this would be diagnosis of the heart with ECG measurements.ECG waveforms can be approximated with diagonal and vertical line segments.If normal and unhealthy waveforms can be described as formal grammars, measured ECG signal can be classified as healthy or unhealthy by first describing it in term of the basic line segments and then trying to parse the descriptions according to the grammars.