The invention is generally directed to systems and methods for ophthalmic surgery,and more particularly to systems and methods for phacoemulsification usingvacuum-based aspiration pumps. In accordance with one embodiment, a vacuum-basedphacoemulsification system, having a handpiece, includes a subsystem to detectan occlusion occurring at the handpiece during operation.