Structural health monitoring from discrete binary data through pattern recognition