The Design of an Intelligent System for Managing the Upgrade Procedure of Long Tunnels