Hybrid Model for Intrusion Detection in IoT Networks: Combining Offline Stability with Online Adaptability