ed detection