The most adapted energy management in hybrid electric vehicles depends on the current driving situation. This paper describes a novel control strategy based on driving cycle recognition. A Driving Cycle Recognition Algorithm (DCRA) is firstly presented. It allows recognition between three driving modes: urban, suburban and highway. A real-time control strategy is then defined based on fuzzy logic using DCRA. Results are presented and compared to fuzzy logic controllers parametrized for urban or highway cycles.