Construction and specification of complex events from sensor network data in farmland