Scientists develop portable brain scanner