Biwei Zhang, the 33-year-old computer scientist accused of spying on NATO, will be under electronic monitoring while awaiting trial, a Belgian court ruled on Wednesday.