Research on rainfall is critically important due to its significant impact on climate change and natural disasters in Indonesia. Various factors influence rainfall variability. Consequently, when examining spatial aspects, it is likely that spatial dependency exists not only in the response variable but also in the exogenous variables. Hence, a model that accounts for spatial dependencies between these variables is required. The integration of the Spatial Durbin Model (SDM) with Casetti’s expansion approach can be utilized to predict spatial patterns of rainfall influenced by exogenous variables. By incorporating spatial effects and relevant independent variables, this model can provide more precise estimates of rainfall distribution across different regions. This modeling technique is particularly effective for accurate rainfall prediction, considering exogenous factors such as air temperature, humidity, solar irradiation, and surface pressure. The SDM with Casetti’s expansion approach was employed to predict rainfall patterns in the Java Island region, utilizing data from the National Aeronautics and Space Administration’s Prediction of Worldwide Energy Resources (NASA POWER) big data website. The application of this model in the context of rainfall prediction highlights its importance in enhancing the understanding of weather dynamics and aiding disaster risk mitigation in Java Island, a highly populated region characterized by a Monsoon rainfall pattern. The rainfall prediction follows a Knowledge Discovery in Databases (KDD) methodology. The results of this study are expected to be valuable to relevant agencies, such as the Meteorology, Climatology, and Geophysics Agency (BMKG), and agribusiness companies, improving agricultural planning and planting seasons. Additionally, the general public can benefit from more accurate climate information, particularly regarding rainfall. The computational framework is developed within an RShiny web application, and the performance of the proposed technique is measured by the Mean Absolute Percentage Error (MAPE), achieving a very accurate prediction rate of 2.78%.