As Matty hinted, each bit drives one of the segments. If you turn the numbers into hex or binary and compare with a drawing of a 7-segment display that becomes much more clear.
If you want to identify the number, you pretty much have to just compare against an array of the possible values for the 10 possible digits that can be displayed.