This study challenges the use of three nature-inspired algorithms as learning frameworks of the adaptive-neuro-fuzzy inference system (ANFIS) machine learning model for short-term modeling of dissolved oxygen (DO) concentrations. Particle swarm optimization (PSO), butterfly optimization algorithm (BOA), and biogeography-based optimization (BBO) are employed for developing predictive ANFIS models using seasonal 15 min data collected from the Rock Creek River in Washington, DC. Four independent variables are used as model inputs including water temperature (T), river discharge (Q), specific conductance (SC), and pH. The Mallow's Cp and R 2 parameters are used for choosing the best input parameters for the models. The models are assessed by several statistics such as the coefficient of determination (R 2 ), root-mean-square error (RMSE), Nash-Sutcliffe efficiency, mean absolute error, and the percent bias. The results indicate that the performance of all-nature-inspired algorithms is close to each other. However, based on the calculated RMSE, they enhance the accuracy of standard ANFIS in the spring, summer, fall, and winter around 13.79%, 15.94%, 6.25%, and 12.74%, respectively. Overall, the ANFIS-PSO and ANFIS-BOA provide slightly better results than the other ANFIS models.