Efficient Data Collection and Event Boundary Detection in Wireless Sensor Networks Using Tiny Models