Determining fire source in underground commercial street fires is critical for fire analysis. This paper proposes a method based on temperature and machine learning to determine information about fire source in underground commercial street fires. Data was obtained through consolidated fire and smoke transport (CFAST) software, and a fire database was established based on the sampling to ascertain fire scenarios. Temperature time series were chosen for feature processing, and three machine learning models for fire source determination were established: decision tree, random forest, and LightGBM. The results indicated that the trained models can determine fire source information based on processed features, achieving a precision exceeding 95%. Among these, the LightGBM model exhibited superior performance, with macro averages of precision, recall, and F1 score being 99.01%, 98.45%, and 99.04%, respectively, and a kappa value of 98.81%. The proposed method for determining the fire source provides technical support for grasping the fire situation in underground commercial streets and has good application prospects.