'Fear detector' being developed