Kuba Lang: Blah blah blah. I'm going to do a separate tutorial. Okay.
Stefan Kuehn: Okay, good.
Kuba Lang: Hi, Stefan. Thank you so much for joining our podcast. ⁓ I'm pleased to have you ⁓ on this episode. Can you tell us a little bit about who you are and the company that you're currently working at?
Stefan Kuehn: Yeah, hi, Kuba. Nice for having me. Nice to have you here and really looking forward. Yeah, so my company currently is called Sporting Rock. It's a company that is doing software for sports federation. So we have a lot of former sports professionals in-house. yeah, so we support, yeah, the so to say, the admin back end of sports. Yeah, so not the... or the active sport ourselves, but the license management, the Federation management and more the things that you typically do not see. You should focus on the actual athletes, the sports performance and we're doing the digital backbone. ⁓ I personally am the CTO in that company currently, but my background, I'm a mathematician by training. did a PhD a long time ago about some esoteric stuff that is Yeah, still somehow related to machine learning. then ⁓ after after my postdoc time, I was working for an IT consulting company and I started working in in IT, but always with a focus on data. So so that's that's my personal angle. I worked most of my time more in a let's say data science role or data manager role. And then lately, so to say transitioned into into a CTO, because you can imagine in the world of sport, there's a lot of data that needs to be managed. So what on IT systems are very data heavy. And that's why my background is kind of suited for also a CTO role.
Kuba Lang: Sure, so that was a fantastic summary. ⁓ we're definitely going to go into ⁓ greater level of details ⁓ about your ⁓ road and how you basically the journey of becoming a CTO. ⁓ and do you recall the very first moment of you experiencing what we could say was a new technology?
Stefan Kuehn: Yeah, absolutely. For me, was, I would say rather late. Yeah. So ⁓ because in my, yeah, in my young years during like school, high school, whatever, I was mostly interested in mathematics and chess. So it was all about pen and paper and reading and not touching any, yeah, any computers or so. But then the first chess computers came, came available. So it was actually very fun, like playing, playing against these machines. Back then, there was still quite like beginning of the 90s, they were still not really smart. you could have a lot of fun beating them as more or less trivial things. But this one, I think, was the first time where I also started interested in how it actually works and how to make these things smarter. Still, even during my studies when I started in mathematics, I wanted to do like pure mathematics and just understand how everything works. Pen and paper, so to say. But later on, ⁓ Also a bit like that was a really cool like ⁓ younger professor coming, ⁓ bringing in interesting algorithms from mathematical optimization where you could like solve ⁓ amazing problems. I participated in some mathematical optimization competitions against like research teams from all over the world and like with my with a friend of mine. So we were living together in one apartment and during the nights we were just implementing some stuff on. ⁓
Kuba Lang: Mm-hmm. Wow.
Stefan Kuehn: on funny things and then deployed it on some whatever was available to us back then on larger clusters. So that was also my first, let's say, distributed computing experience where we were running the same algorithm across like 50 nodes using the IT resources of the math department because we were also working there as working students. So we were trying our best to win these competitions. It was very fun. So, and back then I also noticed that, well, programming, like the software engineering part is also nice as long as you don't overdo it. So I think these kinds of programming competitions were the first real fun thing for me doing it myself. And the chess computers were the first thing where I kind of started noticing that technology is changing.
Kuba Lang: Mm-hmm. Was that the moment you realized that you're going to switch from let's say purely academic ⁓ journey and then switched into pursuing more software side of things?
Stefan Kuehn: Well, think to some extent it was my first experience where I learned how much fun it is and that I'm more interested in applying things in the real world than doing like years of research and just writing things down as an abstract, ⁓ so to say, algorithm. I mean, it still took me some years to leave academia. So my PhD took like four years where it was still a lot of, you know, like proving things on paper and then still implementing some prototypes. ⁓ I was working in a high-performance computing lab at the Max Planck Institute. And so it was a very high-profile institution. had really, really good, much better programmers than I was as colleagues. So I could learn a lot from them. still, back then, was hesitant to leave that kind of pen and paper vision of myself doing mathematics at the kitchen desk. during the night.
Kuba Lang: And then my understanding is that that was your very first step and if we can sort of, you know, work with subsequent steps ⁓ of you now being the CTO, ⁓ and perhaps, you know, just making four to five stops for our audience to learn more how it happened.
Stefan Kuehn: Sure, absolutely. I the first stop or the first step was basically leaving academia and working in the industry. ⁓ I kind of accidentally started almost immediately in the lead role. So in the mix of technical lead, because I was the first data scientist in that company and I was leading ⁓ the kind of algorithm design for an important customer, an important project. ⁓ And then like almost immediately also like recruiting, building up teams, like people management came on top. There was something I didn't really plan, but ⁓ it felt kind of natural because at the beginning it was more like a group of postdocs, know, working on some things. Back then it was like data science was essentially driven by postdocs that left academia and brought in these skills. then so it was more like Back in the research days, have a research group work on some topics and the hierarchy didn't really matter back then. The year was I think 2012 to 2014, something like this. ⁓ I mean, obviously the whole field of data science was a bit more advanced in the US, but in Europe it took us a bit more time. ⁓ It was more still the big data.
Kuba Lang: And what was the year? ⁓ Sure. Mm-hmm.
Stefan Kuehn: time where everyone was building like huge data systems that didn't really do a lot except for storing and processing data. and then, you know, back then there was still everything was called machine learning and data science, there was no AI and not the hype that we see today. But there was still the first like real use cases and yeah, people that could transition like the gap between research and actual like products. ⁓ Yeah, they were rare and I happened to be interested in a lot of things. So I was not just interested in my domain and narrow minded. I was very open minded. I could talk to lot of people. was also, I didn't know enough about technology to understand how to make these things happen. So I was involved in lot of prototyping, often like building recommender systems into the digital space. yeah, so ⁓ that's, so it was, I think a pretty pretty normal journey so far for a lot of people that had a quantitative like statistics, mathematics, physics, and then transitioning to IT and engineering. Yeah, but then later on, so I noticed that in most of the companies I've worked, that the management of these kind of data roles were like, that was simply, there was a gap.
Kuba Lang: Mm-hmm.
Stefan Kuehn: you saw like data departments being led or owned by the CFO or by the CTO, and they both never really knew what to do with it. So that's why I became actually a manager in the first place. So before becoming a CTO, I became a manager. I worked in different roles. Different companies use different ways to organize themselves. So I was an engineering manager. I was a product manager. I was head of VP, whatever, depends. It depends more on the company and I think I never was director. anyway, but yeah.
Kuba Lang: And one question about that, because ⁓ I can hear ⁓ different changes of roles, but then would you say that ⁓ basically responsibility was ⁓ then obviously increasing, but then ⁓ talking on the data science and data engineering side of things, ⁓ was it then growing, as you said, about data science in Europe? What were some ⁓ examples of that?
Stefan Kuehn: Yes. Yeah, so I think, mean, so like personally for my role, the biggest changes was from, let's say being a team lead, where you have typically like one team, a bit more narrowly focused on data science and data engineering mostly to, say the head of role or like a department lead where you were leading multiple teams and had a lot more cross-functional roles included. ⁓ that was definitely, I think like,
Kuba Lang: Mm-hmm.
Stefan Kuehn: from my personal life that was the biggest change because in the data science, data engineering domain, I was an expert among experts. I very much could do all the jobs myself hands on, as opposed to in a bigger department where your scope of leadership is from platform engineering to product managers and designers and sometimes even, ⁓ yeah, so a lot of different professions. So your style of management has to change and you're no longer leading by expertise yourself, but you have to lead through other tools and you also have to change your approach a lot. And I think that's sometimes a challenge for most of the experts. In terms of the, so to say, how the field itself changed, mean, first of all, in the beginning data science was or the working with data was more an art than a craft. So, and I think the it's a bit the usual usual throw something goes from very custom, very specialized to a bit more commoditized work. So better tools became available, better infrastructure setups, interactive apps. So you could like a single person could build could work on a lot of different things at the beginning.
Kuba Lang: Mm-hmm.
Stefan Kuehn: you had to really like manually pull the data out of systems and then do all the data cleaning yourself. And at some point, there were basically frameworks for everything and you could focus on ⁓ like building models. So, and this is how the world has changed. And nowadays it's ⁓ even more true. Yeah. So, ⁓ still there was one, I would say one kind of constant because when you work with data, the quality of the data as the main asset, what you're working with, that's the
Kuba Lang: Mm-hmm.
Stefan Kuehn: still the most important thing. And I think that was all by coincidence was one of my very first conference talks that I gave in, I don't know, 2016. So outside of academia was about data quality. And it's like 10 years since then and still true. So it's the most limiting factor in almost everything. Yes, we have a lot more fancy tools to present data, but if it's not... having the right information, then you're presenting, it's just looking nicer, but it still has zero value for the business.
Kuba Lang: Sure. And any other trends that ⁓ you would name in terms of data science, apart from data cleanliness, ⁓ and not necessarily maybe data engineering itself, but also ⁓ the industry your company operates in.
Stefan Kuehn: Yeah, I mean, in my industry, obviously, in the sports industry, there is a lot of focus on the analytics side now. ⁓ let's say I happen to also work in a side project for a professional football club as a sort of sports analyst. So I'm analyzing performance data. ⁓ I think nowadays for a lot of sports, there is a lot of data that is actually collected. So not only the match events, but also tracking data. So camera based like vision, ⁓ so more computer vision based tools are available. So I think here ⁓ we still lack sometimes the actual understanding of how to utilize the data, but the availability of the data has become like it's much easier to get certain data points now and also to process and operate it ⁓ due to more standardized, so to say data schemas and so on. And there's also something we want to obviously and utilize for for sports federations because in my in my business, we ⁓ obviously every sport also has a professional league and there's in Germany, there's a Bundesliga and the second Bundesliga and so on. But the majority of the sport happens in like an amateur level everywhere in the evenings. So to say, yeah, volunteers are driving the majority of the sport. So it's not the professional life that we are most interested in. We are we are supporting all the volunteers and all the people that we just
Kuba Lang: Mm-hmm.
Stefan Kuehn: just to do some sports on the weekends ⁓ with their kids and whatever. And for them still, this data ⁓ could be very useful. It's just that it's not feasible for small amateur clubs to actually collect that. So we want to provide the infrastructure to also ⁓ provide or make these data accessible to them. And there's plenty of things you can think about. It just starts with, let's say, some
Kuba Lang: Mm-hmm. Gotcha.
Stefan Kuehn: in proper training plans for the kids team. A ⁓ fair schedule of like so that people don't need to travel like some teams need to travel a lot, others don't need to. So having a ⁓ smart system in place that provides you with like that gives you a good calendar overview of everything that you need to do ⁓ that supports you fulfilling your duties, all these. federations have certain processes you need to extend your license or whatever. So to comply with everything, ⁓ just make life easier so that people can focus on the sport. And I think that has a lot to do with data.
Kuba Lang: Mm-hmm. If it's not If it's not confidential, would you mind sharing one metric that is not obvious ⁓ in football? ⁓ I'm just trying to think about, you know, ⁓ the most famous money ball and then what are the ⁓ different ratios. ⁓ is there anything in particular that is a new holy grail in football?
Stefan Kuehn: I mean, to some extent, ⁓ mean, there are plenty of holy grace what people try to understand. mean, ⁓ let's say one of the most interesting things in recent research is ⁓ people try to quantify the decision quality of players. So, ⁓ I mean, there are some currently established models like expected goals or expected threat that go beyond that. ⁓
Kuba Lang: Okay.
Stefan Kuehn: the decision quality of a player in a certain situation, that's quite challenging because it's very like, do you operationalize this? so the approach that is currently taken is that, let's there like a player has the ball. and then, okay, so what are the actions that a player can do? You can let's you can dribble, you can pass or you can shoot. So there's a certain amount of actions. And then for all these actions, can consider, okay,
Kuba Lang: Mm-hmm.
Stefan Kuehn: What is the optimal actually? What passing options do I have? Where should the ball go? Obviously, that's like an infinite space. So there are infinitely many options, obviously. But you can simplify that a bit. And then you can quantify, let's say, the top three passing options. And you can assess them by, OK, let's say, what's the success probability of this? How risky is it? So what's the probability of the, so to say, the pass being incomplete, being intercepted by the opponent?
Kuba Lang: Wow.
Stefan Kuehn: and also what's then obviously the benefit for the opponent. So you can try to quantify this and then you can, ⁓ if you have a good model, you can then kind of summarize all of this and classify all the actions that players have taken on the pitch based on these different criteria and whether it's, let's say, the optimal decision based on a certain metric, let's say, expected goals difference or expected threat. And then you can, so to say, judge players by
Kuba Lang: Mm-hmm.
Stefan Kuehn: the types of decisions they're taking, the quality of the decisions they're taking. So that's where, let's say, the state of research is. ⁓ I would say the number of clubs that utilize something like this, I would say you can still count on one hand. ⁓ But this is going to be expanding. mean, in the beginning, it was expected goals. No one's using it. Then more interesting metrics and models came up. But it's quite interesting also from a conceptual modeling perspective because
Kuba Lang: Amazing.
Stefan Kuehn: No one really knows how to make a successful football team. Everyone believes there is a plan, but you
Kuba Lang: Mm-hmm. And is that kind of ⁓ insight later used, for instance, ⁓ after the training, then to make sure that you know somebody ⁓ would start making better decisions, or is it used for evaluation purposes? I can imagine if there are sort of you know players ⁓ at the same ⁓ let's say number of goals, but then one of them is making 0.3 pre kind of you know better decisions. ⁓ I would probably, you know, pay more for ⁓ the latter one.
Stefan Kuehn: Exactly, mean, yes, it's obviously the plan is to do both. So I think the main difference is that with these methods, you can really try to quantify the impact of a player over the whole match or the whole season, while most of the, let's say, coaching and also scouting, like live scouting, video scouting, things that are based on certain impressions, like certain scenes, then the coaches lecture, okay, in this scene, you did this and that. So that's fine as an example. But you, as a mathematician, I would like to know how representative is that? If I handpick one scene of a player, is it typical behavior? I think that's the thing. With these kind of tooling, we can try to improve the impact of coaching decisions or of scouting decisions, say player recruiting decisions where I'm currently working in for my club. It's long way to actually get these kind of numbers, you can imagine. it's not, ⁓ there's a lot of things that have to be done beforehand. But still, it's very interesting field.
Kuba Lang: Interesting indeed. And I'm trying to think that probably also dynamics of the ⁓ this increased ratio, because if somebody is relatively young and they start low, but then they're kind of you know exponentially growing their decision, there could be then leapfrogging whoever started at the higher level. ⁓ right, and what would you say are ⁓ top three ⁓ tips for ⁓ young aspiring ⁓ software engineers?
Stefan Kuehn: Yeah.
Kuba Lang: ⁓ if they decided that they would like to step into a CTO role in the future.
Stefan Kuehn: Yeah, so ⁓ first of all, mean, for me, as most probably there are some CTOs that didn't plan to become CTOs. I personally don't know a lot of CTOs that were planning this. So it often kind of happens accidentally because you're interested in certain things. So for example, for me, I was always interested in understanding how to create the best environment for my team.
Kuba Lang: Mm-hmm. Mm-hmm.
Stefan Kuehn: I grew up in my research bubble by doing things as a team. For me, mathematics was always a team sport. I carried that with me. I learned early that there things that I'm good at and things I'm not so good at. The best way to improve yourself is to find others that are really good at the things you're not good at. So finding complementary people. So that's kind of my personal focus. So how can I compliment myself, my team, to increase our overall output, performance, resilience, whatever. And that turned out to be a good perspective for also being a manager. Because if you're talking about the team composition, about the...
Kuba Lang: Mm-hmm.
Stefan Kuehn: ⁓ evolution of an organization. So that's a useful focus. So what actually helps you being successful as a team in a certain task, whatever that is. It's pretty general. And for me also, I happen to be interested in this kind of data thing where obviously you need lot of technology to just handle the data. So I was not primarily interested in technology, but more in how to make data work in practice. And that simply it works through technology. that's how it is for me. So ⁓ it was more, so to say, driven by a certain motivation behind that. So if you find your motivation for yourself and it happens to be aligned with technology, and as I said, this focus on teams and organization, so then that's a good pathway. There are definitely ⁓ other routes, but I would say, so...
Kuba Lang: Mm-hmm.
Stefan Kuehn: there should be a certain alignment with your main interests and it should not be about yourself on your own. If you just want to become CTO for your ego, then it's most probably a good way of failing.
Kuba Lang: Mm-hmm. Okay. Mm-hmm. Okay, thank you for that. what is your superpower?
Stefan Kuehn: ⁓ My superpower. ⁓ So, that's also something I kind of learned over the years. I'm quite good at debugging. I'm not really good at, so to say, producing production quality code. I simply lack the patience of doing things, but I happen to be quite good at following the path of an error through a system, having a bit of an open mindset. What could like identifying root causes? ⁓ so ⁓ obviously also over time.
Kuba Lang: Mm-hmm.
Stefan Kuehn: ⁓ gained some experience. Like my very first student job, had to debug 40 year old Fortran code, like climate models from from metrologists like building like massive climate. I never, I did never write a single line of Fortran code. And later it was like C code and I could, you know, so still I was quite successful at it. It's something that ⁓
Kuba Lang: Okay.
Stefan Kuehn: It's more like a detective mindset. so I would say that also later in my career in very different circumstances, I could identify bugs, missing pieces, just, ⁓ yeah, guessing, like guesstimating the root cause of important, like very impactful bugs and problems and could also then contribute to fixing them. that if, yeah, I think that's my best technical superpower.
Kuba Lang: Mm-hmm. Okay. ⁓ a hundred percent unique ⁓ as well. and any books ⁓ or just one book that ⁓ recently influenced your way of thinking, perhaps fiction, non fiction, something that ⁓ we could share with our ⁓ listeners.
Stefan Kuehn: Yeah, absolutely. mean, it's actually not so recently, but it's still one of the most influential books, like on me personally being a manager or a leader or whatever. So it's Turn the Ship Around from David Elmar Kett. He used to be the captain of a submarine. the US fleet. I'm not a fan of the military, just a minute, but the story in itself, it has nothing to do with military and weapons and war and anything. was, but the, submarine, like he took over a submarine and the submarine was the worst performing submarine and all tests, they do some tests and regularly exercise and so on. The morale was low. Everything was bad. So when he came in as a captain and he, by a certain like empowering leadership style,
Kuba Lang: Mm-hmm. Mm-hmm.
Stefan Kuehn: And you must imagine, I it's the US military. It's a very hierarchical top-down organization. And he implemented a very, very inspiring leadership style. And that's why it's called Turn the Ship Around. Like after a certain time, the submarine became the best performing. A lot of the staff members later on also became captains, commanders of submarines. So it's not only that he fixed that one submarine and made it successful, he also empowered the team to take on leadership.
Kuba Lang: Mm-hmm. Wow.
Stefan Kuehn: roles later on for themselves and really like it's a very inspiring thing. as I said, if you can, if you can implement something like this with the same team without, know, without like replacing everyone with a star player, you know what I mean? So it's not about if teams are not performing quite often the solution is, let's fire half of them. Let's bring in better people and so on. And that's, that was a really good lesson that, well, maybe it's really just the environment that need to be, you know, corrected.
Kuba Lang: Mm-hmm.
Stefan Kuehn: And then you can see performance from everyone. So you don't need star players. You just need like healthy environment for your team.
Kuba Lang: Mm-hmm. Sure. as always, we're going to ⁓ post a link to that book and I'm most certainly adding it to to my reading list. ⁓ Stefan, it was a great pleasure you having you on our podcast. Thank you so much for your time. and hopefully ⁓ we're going to have a chance to talk in one of the episodes in the future.
Stefan Kuehn: Absolutely. Thanks a lot, Cooper. And yeah, I hope I could share some interesting insights, at least in my personal journey. just as a reminder, everyone's journey is very personal and special. So don't worry, you are, fingers crossed.
Kuba Lang: Thank you.
Stefan Kuehn: Thank you, bye.