Detection of incipient failures by geometric methods