A shallow history state is a pseudo state that is placed inside the region of a composite state. It is used to remember the last active state inside a composite state. This makes it possible to jump back to the remembered state instead of starting at the initial substate again.
A deep history state is similar to a shallow history state, but more complex. With a deep history state, the latest status of all nested states is remembered.