AI-driven OS optimization algorithms