The choice of prepositions like "from" and "by" depends on the kind of relationship being expressed between the verb and the source of information.
In "understand this from their actions", the preposition "from" shows the origin or source of the understanding. You're getting the idea or insight based on what they did — their actions are the evidence that leads to understanding.
In "determine by her gait", the preposition "by" shows the means or method used to determine something. Here, her gait (the way she walks) is the way or method through which the judgment is made.
So while both prepositions relate to cause or reasoning, "from" tends to show where the idea comes from, and "by" shows how the idea was figured out.