Mapping Mix-Ups Mathematically

From social media friend lists to patient symptom maps, statistics Ph.D. student Vera Andersson’s research aims to make sense of messy connections.

Vera Andersson
Vera Andersson. Image courtesy of same.

Picture a map of every friend a person might have on Facebook. Now picture that same person’s connections on LinkedIn. Some people go by nicknames, some aren’t on both platforms and a few use usernames that reveal nothing about who they are. How can you tell which network is which, or who is who? 

That’s the kind of puzzle Vera Andersson works on every day as a statistics Ph.D. student at the University of Maryland.

For Andersson, a network is simply a map of how things are connected. To visualize a Facebook friend list, each person would be represented as a dot and each friendship as a line connecting two dots. This web of dots and lines records real-world information that researchers can analyze for patterns. 

Researchers often feed these networks into computer programs that sort them into categories, a task called ‘classification.’ Classification can help researchers determine which network is which based on its pattern of connections alone. But most classification methods assume every dot in the map is labeled correctly, meaning researchers know exactly which person each dot represents. 

“If you find these networks in the real world, you might not always have perfect labels of who is who,” Andersson said. “Labels can go wrong for many reasons. Sometimes it’s a simple typo during data collection, an imprecise measurement, missing information or names deliberately anonymized to protect privacy. I study what happens if your data isn’t perfect. The question becomes: Can I still get good results, or does this mislabeling completely mess up the output?”

Working with Mathematics Professor Vince Lyzinski, Andersson tested what happens when network labels get messed up. At first, classification got worse; as more labels were scrambled, the program misidentified the network more often. But past a certain point, the trend unexpectedly reversed. With support from UMD’s Herbert A. Hauptman Graduate Fellowship, Andersson presented her findings at the Joint Statistical Meetings in Boston earlier this year. 

“You would think that mislabeling would completely mess up the structure,” she said. “But there’s a point after which, if you keep doing it, the classification algorithm actually gets better, and you’re able to get back perfect classification again.” 

Andersson says that her research has major implications for fields like cybersecurity. Shuffling labels to hide identities is a common tactic used to shield internet users, but her research shows the strategy may not actually protect anyone or their privacy. 

“For example, if an anonymous social media account has the same friends as one attributed to a name, an algorithm could still match the two as belonging to the same individual,” Andersson explained. “Trying to anonymize yourself with a mislabel in this case could make it easier for algorithms to identify you more accurately. And that can open the door to more security issues.” 

Vera presenting at the Joint Statistical Meetings in Boston
Andersson presenting her research at the Joint Statistical Meetings in Boston. Image courtesy of Vera Andersson. 

Building her own network

Originally from Sweden, Andersson grew up in wide open spaces, collecting mushrooms in the woods with her parents every autumn and riding horses almost every day. At school, math was easily her favorite subject.

“It just felt like doing fun puzzles,” Andersson said, adding that she once got bored during a break and finished an entire year’s math homework by spring. “After high school, I thought to myself, ‘Whatever I do, I will need math,’ and that’s what I’ve decided to do since then.”

At Stockholm University, she found the initial link to network science that would lead to her current work. An undergraduate project on disease modeling showed her how illnesses spread through networks of people, passing between friends who spend time together. For her master’s thesis, she worked with a psychologist who mapped how patients’ symptoms—such as anxiety, insomnia and depression—fed into each other.

“Because patients reported these connections themselves, these maps kind of looked like big hairballs,” Andersson explained. “I developed a method to prune those down to the most significant links, so the psychologist could show patients the big picture and identify which symptoms to treat first for the largest positive impact. The work made it easier for patients to receive the treatment they needed most and more efficient for the medical workers to give the treatment.” 

After completing that project and her master’s degree at Stockholm University, Andersson knew she wanted to continue working with networks. She was drawn to UMD and its strong network theory research, arriving in College Park in fall 2023 as a graduate student.

“The American friendliness took some time for me to adjust to. People here always make small talk, asking about the weather or which floor I need to get to while we’re in the elevator,” Andersson explained. “I am guilty of having that typical Swedish reserve, but I’ve really come to love the chatter now. It definitely brightens my day.”

As she progresses through her studies at UMD, Andersson hopes to continue her research in network mislabeling—work she believes may have a profound impact on real-world problems beyond academia or a research lab.   

“It doesn’t have to change the world,” she said. “But I want to make a tangible, positive impact on the people around me.” 

About the College of Computer, Mathematical, and Natural Sciences

The College of Computer, Mathematical, and Natural Sciences at the University of Maryland educates more than 10,000 future scientific leaders in its undergraduate and graduate programs each year. The college's 10 departments and seven interdisciplinary research centers foster scientific discovery with annual sponsored research funding exceeding $250 million.