Research indicates that when examining the family history of children with pyloric stenosis, approximately 20% of children whose parents previously experienced the condition are also affected. This suggests that the condition may exhibit a genetic predisposition in some cases. However, for a definitive diagnosis, treatment options, and personalized information specific to your situation, consulting a gastroenterology specialist is strongly recommended.