Traditional machine learning techniques depend on both the training data and the target data having the same data distribution and feature space. The performance may be unsatisfactory if there is a discrepancy in data distribution between the training data and the target data, which is known as a cross-domain learning issue. In this study, a technique for addressing this issue based on using the envelope analysis features coded as inputs to the Artificial Neural Networks (ANN) is presented. Specifically, three major cross-domain difficulties were resolved, including defect identification of different roller bearing types, rotating speeds, and loading conditions. The envelope approach is used to extract more distinguishing features at fundamental fault frequencies from the original signal, with the benefit of derived features being independent of both roller bearing type and operating conditions of rotating machines. The diagnosis outcomes were achieved experimentally through three different types of rollers bearing. Meanwhile, for each bearing type, three data sets were obtained at three different rotational speeds with different levels of fault categories to simulate all the cross-domain tasks. Moreover, the ANN model was trained using data of a particular bearing type and a certain operating state, whereas data of other bearing types were utilized to test the cross-domain performance of the proposed technique. At the same loading condition, the results indicate a 99.5% average success rate for bearing Koyo 1205, a 98.33% average accuracy for bearing NU 205, and a 97.3% average accuracy for the defective bearing kit. Furthermore, the results indicate that the suggested technique can deliver accurate cross-domain detection. Also, the experimental results proved that the suggested technology is a potential strategy for industrial applications.