Mobile sink-based data collection in wireless sensor networks has become an attractive research area to mitigate hotspot issues. It further increases the efficiency of the WSN, such as throughput, lifetime, and energy efficiency, while decreasing delay and packet losses. Mobile sink algorithms developed by many researchers in recent years have only contributed to obtain efficient path planning, and only a few researchers have focused on solving the problem of network environment with obstacles. Here, constructing an obstacle-aware path for the mobile sink to collect data in WSN is a challenging issue. In this context, we present the data acquisition through mobile sink for WSNs with obstacles using support vector machine (DAOSVM). The DAOSVM algorithm works in two phases: visiting point selection and path construction. The visiting point selection uses spanning tree approach, and the path selection uses SVM. The computational complexity of the proposed DAOSVM is estimated and compared using the existing techniques, and it is lower. The DAOSVM also outperforms traditional methods concerning multiple performance metrics under various scenarios.