tidy perforation detection