Ranka Takakuwa turned an ill-fated relationship into a recipe for success, and now she's hoping to help others with an advice-giving app she's developing.

The 25-year-old graduate student at the prestigious Tokyo Institute of Technology founded artificial intelligence (AI) start-up Menhera Technology about a year ago after receiving a 2-million-yen ($18,800) investment from a firm that supports budding entrepreneurs.

Takakuwa has been preoccupied with romance ever since she was a high school student in Ishikawa Prefecture.

However, she suffered from bipolar disorder after her boyfriend at the time rejected everything she said and did. Having lost confidence in herself, she started giving him expensive presents and harmed herself through medication overdoses.

The experience made her realize that she wanted to help as many people as possible suffering from an indelible past.

Using a natural language processing tool that analyzes the meanings of words and other data, her graduation thesis explored how close other people are to her boyfriend--who runs his own company--based on their replies to his tweets.

Her seeming jealousy also led to the development of services provided by her new company.

With a crew of about 10 people, Takakuwa is working on a chat app for users to share their anxieties or concerns. Based on inputted entries by advice seekers, the program provides advice to advisers on how to deal with various problems.

It is said that one in five people will develop a mental illness in their lifetime. Takakuwa hopes she can help those who are worn out from relationships, child-rearing, caregiving or work and suffer from mental illness--"menhera" in colloquial Japanese--"to be open about their conditions, like they have a cold."

With newfound confidence, Takakuwa insisted that her boyfriend appoint her as an outside board member. When he dodged the subject, she revised her goal, saying, "I'll buy the company."