Risk stratification involves categorizing patients based on their risk of developing complications during or after surgery. This is done by evaluating factors such as age, comorbidities, functional status, and the type of cancer and surgery. Tools like the ASA Physical Status Classification and the Charlson Comorbidity Index are commonly used for this purpose.