The rapid increase of metabolomics has led to an increasing focus on metabolic pathway modeling and reconstruction. In particular, reconstructing an organism's metabolic network based on its genome sequence is a key challenge in systems biology. The method used to address this problem predicts the presence or absence of metabolic pathways from known pathways in a reference database. However, this method is based on manual metabolic pathway construction and cannot be used for large genome sequencing data. To address such problems, we apply a supervised machine learning approach consisting of deep neural networks to learn feature representations of metabolic pathways and feed these representations into random forests to predict metabolic pathways. The supervised learning model, DeepRF, predicts all known and unknown metabolic pathways in an organism. Evaluation of DeepRF on over 318,016 instances shows that the model can predict metabolic pathways with high-performance metrics accuracy (>97%), recall (>95%), and precision (>99%). Comparing DeepRF with other methods in the literature shows that DeepRF produces more reliable results than other methods.