Automatic detection of transverse beam instabilities in the Large Hadron Collider