Preheat oven to 160 degrees C. Line a patty pan tin with paper cases.
Sift flours, ground flaxseeds, bi carb, baking powder and salt together in a large bowl.
Combine bananas, caster sugar, brown sugar and margarine in a separate bowl; beat with an electric mixer until creamy and fluffy. Beat in eggs one at a time. Stir in vanilla extract. Beat in vanilla yogurt gradually. Stir in flour mixture until just combined. Fold pear into the batter.
Spoon mixture among paper cases. Bake until tops are browned and a toothpick inserted into the centre comes out clean, about 15 to 20 minutes. Transfer to a wire rack to cool.
If desired, crush some granola cereal or a granola bar and sprinkle over the batter before baking.