The Northwest Indian Ocean is a key fishing ground for China’s pelagic fisheries, with the purpleback flying squid being a significant target. This study uses commercial fishing logs of the Indian Ocean between 2015 and 2021, alongside pelagic seawater temperature and its vertical temperature difference within the 0–200 m depth range, to construct generalized additive models (GAMs) and gradient boosting tree models (GBTs). These two models are evaluated using cross-validation to assess their ability to predict the distribution of purpleback flying squid. The findings show that factors like year, latitude, longitude, and month significantly influence the distribution of purpleback flying squid, while surface water temperature, 200 m water temperature, and the 150–200 m water layer temperature difference also play a role in the GBT model. Similar factors also take effects in the GAM. Comparing the two models, both GAM and GBT align with reality in predicting purpleback flying squid resource distribution, but the precision indices of GBT model outperform those of the GAM. The predicted distribution for 2021 by GBT also has a higher overlap with the actual fishing ground than that by GAM, indicating GBT’s superior forecasting ability for the purpleback flying squid fishing ground in the Northwest Indian Ocean.