The secret to losing weight and keeping it off may, in part, bein your mind, according to a new study.

Researchers at California Polytechnic State University found that among the most effective strategies for people who had continued weight loss are keeping track of what they ate, choosing healthy foods and speaking positively about themselves.

Cal Poly News reported the results, which were published last week in the research journal "Obesity."

» RELATED: These Atlanta dishes score major points with WW (Weight Watchers Reimagined)

“People who maintained their successful weight loss the longest reported greater frequency and repetition in healthy eating choices,” said kinesiology and public health professor Suzanne Phelan in a news release. “Healthier choices also became more automatic the longer people continued to make those choices. These findings are encouraging for those working at weight loss maintenance. Over time, weight loss maintenance may become easier, requiring less intentional effort.”

» RELATED: Here's the most popular New Year's resolution in Georgia

Phelan led the study in which researchers surveyed the weight management strategies of nearly 5,000 members of WW, formerly Weight Watchers. The members reported a median loss of 50 pounds and maintained it for over three years. That group was compared to a control group of over 500 people with obesity who reported than in a period of more than five years, they had not gained or lost more than five pounds.

Reviewing 54 behaviors related to managing weight loss, researchers found that the people who maintained their weight loss had more frequently reported using strategies like measuring food, recording what they ate that day and remaining positive about possibly regaining weight.

» RELATED: 7 meaningful New Year's resolutions for 2020 and how to achieve them

The study comes weeks after an Offers.com survey revealed that in Georgia, the No. 1 new year's resolution was boosting fitness. While diets like the keto diet, which focuses on cutting out carbs and consuming high-fat foods, have gained popularity, the Mayo Clinic says people should instead consume a calorie-controlled diet and increase physical activity.

"Any extra movement helps burn calories," the Mayo Clinic said in a list of weight loss strategies. "Think about ways you can increase your physical activity throughout the day if you can't fit in formal exercise on a given day. For example, make several trips up and down stairs instead of using the elevator, or park at the far end of the lot when shopping."