PurposeIn this study, machine learning (ML) algorithms were employed to predict the shear capacity and behavior of DCSWs.Design/methodology/approachIn this study, ML algorithms were employed to predict the shear capacity and behavior of DCSWs. Various ML techniques, including linear regression (LR), support vector machine (SVM), decision tree (DT), random forest (RF), extreme gradient boosting (XGBoost) and artificial neural network (ANN), were utilized. The ML models were trained using a dataset of 462 numerical and experimental samples. Numerical models were generated and analyzed using the finite element (FE) software Abaqus. These models underwent push-over analysis, subjecting them to pure shear conditions by applying a target displacement solely to the top of the shear walls without interaction from a frame. The input data encompassed eight survey variables: geometric values and material types. The characterization of input FE data was randomly generated within a logical range for each variable. The training and testing phases employed 90 and 10% of the data, respectively. The trained models predicted two output targets: the shear capacity of DCSWs and the likelihood of buckling. Accurate predictions in these areas contribute to the efficient lateral enhancement of structures. An ensemble method was employed to enhance capacity prediction accuracy, incorporating select algorithms.FindingsThe proposed model achieved a remarkable 98% R-score for estimating shear strength and a corresponding 98% accuracy in predicting buckling occurrences. Among all the algorithms tested, XGBoost demonstrated the best performance.Originality/valueIn this study, for the first time, ML algorithms were employed to predict the shear capacity and behavior of DCSWs.