The underwater channel is bilateral, heterogeneous, uncertain, and exhibits multipath transmission, sound line curvature, etc. These properties complicate the structure of the received pulse, causing great challenges in direct signal identification for ranging purposes and impacts on back-end data processing, even accurate acoustic positioning. Machine learning (ML) combined with underwater acoustics has emerged as a prominent area of research in recent years. From a statistical perspective, ML can be viewed as an optimization strategy. Nevertheless, the existing ML-based direct-signal discrimination approaches rely on independent assessment, utilizing a single sensor (beacon or buoy), which is still insufficient for adapting to the complex underwater environment. Thus, discrimination accuracy decreases. To address the above issues, an accurate CW direct signal detection approach is performed using the decision tree algorithm, which belongs to ML. Initially, the pulse parameter characteristics in the underwater multipath channel are investigated and the parameter models are built. Then, based on multi-sensor localization performance feedback, fusion characteristics for diverse pulse are created. Next, the pulse parameter characteristics are preprocessed to mitigate the impact of varying magnitudes and units of magnitude on data processing. Then, the decision tree is built to obtain the desired output results and realize accurate recognition of the ranging direct signals. Finally, the feasibility and reliability of this paper’s method are verified by computer simulation and field testing.