In sonar detection, underwater recognition, and similar fields, the challenge of using small-scale arrays is frequently encountered. With small-scale arrays, the degrees of freedom (DOFs) and accuracy of direction of arrival (DOA) estimation decrease significantly. Moreover, existing algorithms are less robust in complex environments and typically require substantial computing resources to ensure accurate estimation. To overcome these problems, this paper proposes a high-resolution DOA estimation via Random Forest virtual array extension (RFVAE). The algorithm first trains the random forest (RF) network using real array element data, and thus proposes a virtual covariance reconstruction technique. This technique allows for a substantial increase in the number of virtual array elements. Then, based on the virtual covariance reconstruction technique, a high resolution estimation network technique is proposed, which can increase the accuracy and DOFs of DOA estimation. Experimental results show that the proposed algorithm reduces error by 30% to 80% compared to recent technologies and can provide up to twice as many virtual elements. Additionally, the estimation speed can be increased by 3 to 1000 times, and it has significantly stronger robustness, functioning normally at signal-to-noise ratios 10 dB lower than the conditions under which other algorithms fail.