The Genji firefly is a key symbol of the conservation and management of rural environments. The species lives underwater as larvae, in the soil when they pupate, and emerges on the ground as adults. Because of the large differences in habitat conditions between larvae and adults, the habitat requirements of the Genji firefly must be clarified over a wide range, from the instream to the surrounding riparian environment. In this study, we built a habitat suitability model for the Genji firefly by relating local landscape features to the number of individuals surveyed in a small river in an agricultural watershed. For habitat suitability modelling, tree-based machine learning methods, namely Random Forests (RF) and classification and regression trees (CART), are used to model species distributions and extract quantitative information on their ecological characteristics. Because the model performance on the test dataset was poor, we removed noisy absences using model outputs from the RF computation using the entire dataset. As a result, we observed improved model performance, in which there seems to be an optimal level for removing noisy absences. Variable importance and partial dependence plots were then used to visualize the relationship between the local landscape features and habitat suitability of the adult firefly. Detailed information on landscape features extracted using RF and CART is useful for a deeper understanding of the ecology of the Genji fireflies.