The host nation of the next Olympics had a mixed outing in London and is hoping that a surge in spending on athletes and facilities will ensure it makes the top 10 medals table in 2016 on home soil in Rio de Janeiro.
Brazil won 17 medals in London, two more than its previous best in Beijing, finishing 22nd in the overall count.
However, officials were frustrated after Brazil managed only three golds and at the general shortage of medals in the swimming pool and on the athletics track.
The 2016 hosts have decided to focus more on individual events in a bid to win more medals in front of their own fans.
"Our goal is to get in the top 10 medals table and to do that we need to keep winning medals in the disciplines we've already won at and also win medals in new areas," said Marcos Vinicius Freire of the Brazilian Olympic Committee (COB).
"When you look at the top 10 countries, one of the things they all have in common is that they all win medals in at least 13 disciplines. We need to win medals in five, six or seven disciplines where we've never won medals before."
Brazil has won medals in nine: volleyball, soccer, basketball, track and field, swimming, show jumping, sailing, judo and tae kwon do. In London they won medals in most of those events, plus at a few new ones, such as gymnastics and boxing.
Freire said his team of 130 people, 22 of them former Olympic athletes and coaches, have identified another 10 disciplines where Brazil could make an impact.
To achieve that goal, Brazil will spend $700-million over the next four years on high performance athletes alone -- triple the amount in the run-up to the London games.
Much of the investment comes from lottery funding. Two per cent of Brazil's federal lottery money -- 140 million reais ($70-million) last year -- goes to the COB with the rest coming from sponsors, companies, and federal, state and municipal authorities.
One area of investment is a system that monitors Brazilian athletes' progress and compares it to former champions.
Freire's team has compiled dossiers on the careers of past Olympic medal winners, seeking to pinpoint what boosted their performance. They are using the results to tailor training and set targets for their own Olympic hopefuls ahead of the Rio games.
Brazilian officials also visiting sporting powers such as China, Germany, Australia and Britain to see how they do things.
They found that dominant sporting nations have five things in common, said Edgar Hubner, the COB's Director of Infrastructure.
They fast-track promising youngsters; they hire coaches, nutritionists, psychologists, administrators and physical trainers; they send athletes and coaches abroad and host foreign experts; they regularly hold international events and competitions; and they boast elite training centres.
Unlike rivals such as South Korea, which built its first elite training centre in 1966, Brazil did not have a centralized training facility until Rio hosted the 2007 Pan American Games.
The city vastly overspent on facilities and left them neglected when the games ended. The city government stepped in, took control of the aquatic park and velodrome and turned them over to the COB in 2008.
Today, the centre of the velodrome is a gymnastic arena and the dozens of cavernous rooms alongside the swimming and diving pools have been turned into weight rooms, gymnasiums and small dorms where athletes can nap.
Athletes love the new facilities. Young cyclist Leandro Alves said it took just two weeks at the centre to knock 1.6 seconds off his pursuit time. Part of that improvement is down to the faster track but much of it is also about training, equipment, coaching and environment.
"The big thing here is the infrastructure," Alves said. "This is the difference between just taking part and winning."
Officials say that even though Brazil's immediate goal is to win medals in 2016, it is not ignoring the long-term development of less popular Olympic sports such as badminton or archery. Freire acknowledged that some of the investment won't pay off for eight or 12 years, if at all.
One common theme among Olympic powers like the United States and Britain is that while investment in elite athletes pays off, the general population gets fatter and unhealthier.
Brazil's government agrees. On a visit to the Brazilian Olympic camp in London, President Dilma Rousseff highlighted the government's support for school sports and competitive athletes in different disciplines.
The government will spend 60 million reais this year on a monthly stipend for more than 4,000 athletes, including 111 of the 259 Brazilians who competed in London.
It is also spending more than 1 billion reais on building and covering almost 9,000 gyms, courts and pitches in schools.