Analysis and report generation