The massive and autonomous structural health monitoring (SHM) of bridges is a problem that is of growing interest due to its importance and topicality. However, a considerable amount of data must be elaborated and managed in such an application. This paper proposes a set of machine learning (ML) tools to detect anomalies in a bridge from vibrational measurements using the minimum amount of data. The proposed framework starts from the fundamental frequencies extracted through operational modal analysis (OMA) and clustering, followed by a density-based time-domain tracking algorithm. The fundamental frequencies extracted are then fed to one-class classification (OCC) algorithms that perform anomaly detection. Then, to reduce the amount of data, we analyze the effect of the number of sensors, the number of bits per sample, the observation time, and the measurement noise on damage detection performance. As a case study, the Z-24 bridge is considered because of the extensive database of accelerometric measurements in both standard and damaged conditions. A comparison of OCC algorithms, such as principal component analysis (PCA), kernel principal component analysis (KPCA), Gaussian mixture model (GMM) and one-class classifier neural network (OCCNN)$$^2$$
2
is performed, and their robustness to data shrinking is evaluated. In many cases, OCCNN$$^2$$
2
increases the performance with respect to classical anomaly detection techniques in terms of accuracy.