Master's thesis "Predicting Complex Events in Sensor Data"