Water hammering is a significant problem in pumping systems. It damages the pipelines of the pump drastically and needs to identify with an intelligent method. Various conventional methods such as the method of characteristics and wave attenuation methods are available to identify water hammering problems, and the predictive control method is one of the finest and time-saving methods that can identify the anomalies in the system at an early stage such that the device can be saved from total damage and reduce energy loss. In this research, a machine learning (ML) algorithm has used for a predictive control method for the identification of water hammering problems in a pumping system with the help of simulations and experimental-based works. A linear regression algorithm has been used in this work to predict water hammering problems. The efficiency of the algorithm is almost 90% compared to other ML algorithms. Through a Vib Sensor app-based device at different pressures and flow rates, the velocity of the pumping system, a fluctuation between healthy and faulty conditions, and acceleration value at different times have been collected for experimental analysis. A fault created to analyze a water hammering problem in a pumping system by the sudden closing and opening of the valve. When the valve suddenly closed, the kinetic energy in the system changed to elastic resilience, which created a series of positive and negative wave vibrations in the pipe. The present work concentrates on the water hammering problem of centrifugal pumping AC drive systems. The problem is mainly a pressure surge that occurs in the fluid, due to sudden or forced stops of valves or changes in the direction and momentum of the fluid. Various experimental results based on ML tool and fast Fourier transformation (FFT) analysis are obtained with a Vib Sensor testbed set-up to prove that linear regression analysis is the less time-consuming algorithm for fault detection, irrespective of data size. © 2020 by the authors. Licensee MDPI, Basel, Switzerland.