Surface waves often cause significant noise in seismic data, complicating the interpretation of subsurface structures. Traditional filtering methods, such as FK filtering, usually struggle with non-stationary noise and require extensive manual parameter tuning. This study explores the effectiveness of using K-means clustering, incorporating attributes such as amplitude, frequency, and phase to filter surface waves from seismic data. Synthetic seismic data were first generated to test the proposed method, ensuring its robustness before application to real field data. Attributes were extracted from each seismic trace, including instantaneous amplitude, frequency, and phase. These attributes were used as input parameters for the K-means clustering algorithm. The identified clusters corresponding to surface waves were then used to filter these waves from the seismic data. The K-Means clustering effectively differentiated surface waves from reflected waves in both synthetic and real seismic datasets. The method demonstrated that by including phase as an attribute, alongside amplitude and frequency, the accuracy of surface wave detection and filtering significantly improved. The synthetic data showed a clear separation of wave types, validating the method. When applied to real field data, the approach consistently removed surface waves, clarity of seismic reflections crucial for subsurface analysis.