& Key message We found high accuracy classification (F measure = 95%, on cross-validation) of Araucaria angustifolia (Bertol.) Kuntze, an endangered native species, and Hovenia dulcis Thunb. an aggressive, invasive alien species in WorldView-2 multispectral images. In applying machine learning algorithms, the spectral attributes mainly related to the near-infrared band were the most important for the models. & Context It is difficult to classify tree species in tropical rainforests due to the high spectral response's diversity of existing species, as well as to adjust efficient machine learning techniques and orbital image resolution. & Aims To explore the spectral and textural response of an endangered species (A. angustifolia) and an invasive species (H. dulcis) in WorldView-2 multispectral images, testing its recognition capability by machine learning techniques. & Methods We used a WordView-2 (2016) image with 0.5-m spatial resolution. Then we manually clipped the canopy area of the two species in this image using two compositions: True color composition (R=660 nm, G=545 nm, B=480 nm) and near-infrared composition (NIR-2=950 nm, G=545 nm, B=480 nm). Thus, we applied spectral and textural descriptors (pyramid histogram of oriented gradients-PHOG and Edge Filter), which selects the most representative features of the dataset. Finally, we used artificial neural networks (ANN) and random forest (RF) for tree species classification. & Results The species classification was performed with high accuracy (F measure = 95%, on cross-validation), essentially for spectral attributes using the near-infrared composition. RF surpassed the ANN classification rates and also proved to be more stable and faster for training and testing.Handling Editor: Barry A. Gardiner Contribution of the co-authors Crisigiovanni E. L. designed the methods, performed the experiments, processed the data, analyzed the results, and wrote most of the manuscript. Figueiredo Filho A. idealized the article, provided the materials (satellite image), and formulated the research framework. Pesck V. A. contributed to the geoprocessing and remote sensing analysis and cooperated in the methodology's design. De Lima V. A. cooperated in the methodology design and performed the machine learning analyses and data processing.