Latest / Talk Python To Me / #289: Discovering exoplanets with Python
Transcript
- 0:00When I saw the headline, Machine Learning Algorithm Confirms 50 New Exoplanets in Historic First,
- 0:05I knew that Python must be operating somewhere in the background, and that the story must be told.
- 0:10That's how this episode was born. Join David Armstrong and Jeff Gamper as they tell us how
- 0:16they use Python machine learning to discover not one, but 50 new exoplanets in pre-existing
- 0:22Kepler satellite data. This is Talk Python To Me, episode 289, recorded September 29th, 2020.
- 0:28Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries, the ecosystem,
- 0:48and the personalities. This is your host, Michael Kennedy. Follow me on Twitter where I'm @mkennedy.
- 0:53Keep up with the show and listen to past episodes at talkpython.fm, and follow the show on Twitter
- 0:58via at talkpython. This episode is brought to you by brilliant.org and us. David, Jeff,
- 1:05welcome to Talk Python To Me. Yeah, thanks for having us. Yeah, thanks for having us.
- 1:09Yeah, it's good to have you guys here. You know, when I saw this article, its title was something like,
- 1:15Machine Learning Algorithm Confirms 50 New Exoplanets, a Historic First. It didn't say
- 1:21anything about Python, but I'm like, I got to contact these guys and find out the story because I bet you
- 1:25Python has evolved. And oh my gosh, what an amazing discovery.
- 1:29And Python's all over astrophysics at the moment. I mean, almost everyone uses it.
- 1:33So good chance, I think.
- 1:34Yeah, exactly. I thought, okay, machine learning and astrophysics combined. This has to be Python.
- 1:39So I reached out to you guys and I'm really excited to have you on the show to talk about the research
- 1:44that you're doing, some of the discoveries that you've made. And it sounds also like this is kind
- 1:50of the beginning of the stories where things are going. Yeah. So this was really a test case we
- 1:54wanted to put together to build up for a load of big missions that are coming online soon. I mean,
- 1:58you might've heard of the Kepler satellite before, but it's been around for a while,
- 2:01but it's the biggest data set we have for these exoplanet sort of transits, I guess we'll talk
- 2:05about in a bit, but it's a perfect test case to work with.
- 2:08Yeah, that's awesome. And it's, it's so amazing. You found all these planets as a small test case,
- 2:12but Kepler starting to near the end of its life, right?
- 2:15Kepler stopped recording already. So the main mission stopped in 2013 and it had an extension
- 2:19called K2 that went on for a bit longer than that. Yeah. But the data is still full of things to
- 2:24discover, as you can see. Amazing. All right, before we get too far into the topics though,
- 2:28let's just set the stage really quickly with each of your stories. How'd you get into programming in
- 2:32Python? Would you like to start David or should I go ahead? Sure. I mean, I got into programming
- 2:37with God, it's, it's like college education here, what you call an A-level in computer science
- 2:41with learning Pascal, if you believe it. Yeah. So it's going back a fair way, right?
- 2:46But now I got into Python while I was doing my undergrad degree. And then mostly when I started
- 2:51doing a PhD in astrophysics, because back then it was kind of either Python or IDL. You basically
- 2:55picked one when you started. I think Python's won the war now, but yeah, I think so as well. I mean,
- 3:00I haven't done any IDO, but there was this sort of domain specific programming language for astronomy
- 3:04called IDO, right? Yeah, but it's proprietary and you have to pay a fee for it. And I think that's
- 3:08what killed it in the end, but it's not killed. There's still people that use it, but the numbers
- 3:11are shrinking. Yeah. Yeah, for sure. Jeff, how about you? So I also got started with Python during my
- 3:16undergrad. At that time, I was very much interested in quantitative finance and qualitative trading.
- 3:22Not interested in that anymore for a long time and wrote my undergrad thesis with Python and R.
- 3:29And then I came to Warwick to do my master's, met David and Theo. Theo is another co-author on the
- 3:36paper. And there was this master's project to do exoplanet detection and validation with Python and
- 3:43machine learning. So I just jumped on it and got started. And that was kind of the second project
- 3:48with Python. Yeah, that sounds really fun. I got into programming as programming in general,
- 3:52into C++, because I had to learn enough programming for a math research project. And it's funny how these
- 3:58things sort of take you down paths that you don't necessarily expect them to take you. Like,
- 4:02oh, I'm kind of interested in this project. I guess I got to learn that. Wait, now that's my job or
- 4:05that's my specialty. How'd that happen? Yeah, exactly. I mean, that has been the case for me. It's been
- 4:10quantitative trading, then astronomy, and then PhD in medical imaging, which is all Python.
- 4:16Yeah, absolutely. Especially the ML side of the medical imaging analysis, for sure. So how about
- 4:22what you're up to day to day? What do you do these days?
- 4:25So nowadays, I'm towards the end of my PhD in medical imaging, which mostly involves all things
- 4:31Python, PyTorch, deep learning, computer vision, networks, all these sort of things. And I also
- 4:37work as a senior scientist at a startup in London, where mostly we work with climate models, but also
- 4:43remote sensing. So there's quite a bit of machine learning there as well, where computer vision on
- 4:48remote sensing images and also fitting neural nets to climate data. So that's the stuff today.
- 4:54How interesting. I think one of the cool takeaways, or it seems like you could infer from that is
- 4:59you're using this skill you have with Python to do all these different things, right? Like
- 5:04quantitative trading, climatology, and astrophysics. Like those are not typically a common skill set.
- 5:11I mean, the common things in all those things, it's programming, being able to code. And Python is
- 5:17a good language to start for everyone and has very kind of big community around it, where most of the
- 5:23tools that you will need on your day to day basis for day to day tasks are already well developed and
- 5:28well maintained. So that's really kind of what makes Python really cool for that.
- 5:32Absolutely. David, how about you?
- 5:34Well, Stack Overflow, of course.
- 5:36Of course. You can always copy and paste that little segment to make it do something.
- 5:40Who knows what?
- 5:41Yeah, I mean, so I'm a lecturer at the University of Warwick in the physics department. So most of my
- 5:45days, well, bits of research and teaching, writing grant proposals, supervising students,
- 5:50this kind of thing. I mean, there's more and more of the later ones and less and less of the research,
- 5:54but I think that's how it goes.
- 5:55Yeah, absolutely. That is how it goes. Cool. Cool, cool. I think being in academics is just
- 5:59really fun. You get to explore so many amazing ideas and you're not rushed, right? It's not like
- 6:04you've got a six week sprint to write this code and then move on to the next thing.
- 6:08Yeah, you can really think things through and try and work out what you're doing. I mean,
- 6:11there's always something to do, right? It's a different kind of rush,
- 6:13but nothing like industry, I think. Yeah. Yeah. Well, as a PhD student, I'd like to speak here.
- 6:20Well, sometimes you do have to rush if you have a deadline and your supervisor is behind you telling
- 6:24you, no, you got to do this. You got to submit your paper there. So yeah. Yeah. I was in grad school
- 6:30for a while and there's this guy, he was just, everybody knew him. He was working on his PhD and
- 6:35he had been around for nine years in the PhD program. And he just, you could tell he was just
- 6:41meant to be at a university. Wonderful guy, but he had no, it was just no urgency for him to finish
- 6:47his degree and get going until they said, you know, there's a 10 year limit in this program. And if you
- 6:52don't finish within 10 years, you don't get your PhD. He's like, oh my gosh, he was done in six months.
- 6:56Well, 10 years as well. That's a lot of time.
- 6:59Yeah. He just chilled. He just loved it. Like, I don't know. It was easy living, I guess.
- 7:04All right. So let's talk about astronomy and Python. Now in this article, there's the official
- 7:09research paper that you guys put out. And then there was top side type articles. And in that one,
- 7:14the one from, I think it was the tech Republic, it said now astronomers are using machine learning
- 7:20algorithms to search for planets beyond our solar system, formerly known as exoplanets. Is there a
- 7:25different name? Am I missing something or are they off here? There are still planets, but we just call
- 7:30planets outside the solar system, extrasolar planets, kind of just an exoplanets for short.
- 7:33Extra solar. Yeah. Okay. I don't know if it's a formal name in the same way,
- 7:38but exoplanets is what they've been called in the literature for a few years now. So.
- 7:41Yeah. Okay. That's what I thought too. You know, they're not wrong. They're not wrong.
- 7:44Super. All right. So when was the first exoplanet discovered?
- 7:49There's a bit of a argument about some of the details, but it's roughly 20 years ago,
- 7:531995, I think for some of the first discoveries. I mean, there's been, there were a few candidates
- 7:58before them, but it was back and forth in the literature for a while.
- 8:00Right. I feel like this was done by a couple of astronomers in the observatory in Hawaii.
- 8:06And so this was a ground-based discovery originally, right?
- 8:09Yeah. The two astronomers were based in Geneva, actually. It was Michelle Mayor and Didier Kelo.
- 8:13Okay.
- 8:14And they got the Nobel prize for it last year. Right. And then.
- 8:17Oh, wow. Okay.
- 8:17Yeah. So that was the first one discovered. I mean, since then we've gone up over about 4,000
- 8:22now and it goes up every day. I mean, it's just been accelerating rapidly.
- 8:25Yeah. So we've always thought solar system setup that we have, this cannot be unique,
- 8:31but we didn't have any proof of it. And so now, like you said, we do. And a lot of the data that
- 8:36people are analyzing must be coming from Kepler these days, right? So maybe tell us,
- 8:40maybe we start with the story of Kepler.
- 8:41So Kepler launched in 2009. It was active in the, what we call the primary mission for four years.
- 8:46And it just stared at one patch of the sky, like a fairly large bit, but still just one
- 8:50patch for those straight four years, taking measurements of how bright the stars were every
- 8:53half an hour, about 200,000 stars. And that's what really revolutionized the field in terms
- 8:58of the statistics. I mean, we went from having sort of hundreds of planets that we knew about
- 9:01to having thousands. And it was the first one that could really find planets that were a bit
- 9:05closer to being like the earth, even if they were usually much hotter than the earth.
- 9:08Right.
- 9:08The ones we found.
- 9:09Right. Because a lot of the discoveries early had to do with planets that were both very close
- 9:15to the stars. So the pulsing was frequent and very large because, so it was extreme,
- 9:19right? Like a hot Jupyter type of thing.
- 9:22Yeah, that's right. And those hot Jupyters were fascinating at the time. I mean, no one expected
- 9:26them to exist at all until they started finding them.
- 9:28Yeah.
- 9:28Really interesting stuff. But of course you want to find planets that are closer to the earth,
- 9:32right? That's what everyone's got in their mind. So you're always trying to push that boundary
- 9:35out of it.
- 9:35Yeah. Yeah, absolutely. So we had Kepler and you said that shut down in 2013 and other ones must be coming
- 9:42in a line. Yeah. So Kepler, they actually...
- 9:44The excitement around this can't have gone down, right? With the discoveries being made.
- 9:48No, no, of course not. Like, so Kepler, they actually, what happened is it had these reaction
- 9:52wheels in the satellite and too many of them broke. So they ended up not being able to stabilize it very
- 9:57well. And they sort of repurposed it by this very clever technique of kind of balancing it off the
- 10:01wind from the sun. But I don't want to go into that. But it was called K2 for a bit longer and
- 10:05carried on for a bit. But that's finished now as well. Eventually it ran out of fuel. But now the one
- 10:09that's active that everyone's looking at is called TESS. There's another NASA mission that's,
- 10:13again, observing stars, trying to look for planets transiting, like measuring the brightness of the
- 10:17stars, but doing it in a very different way. So it looks at almost the entire sky. And that's been up
- 10:21for about two years now and it's still going on.
- 10:23Wow. Okay. Maybe give us a little background on how this works. So it's not visual, right? They don't
- 10:31see the planets.
- 10:32No, much as we'd like to.
- 10:33They measure... Wouldn't that be amazing? You're like, oh, look, it's a water world.
- 10:37No, it's measuring the effects of a planet on the star, right?
- 10:42Yeah. So the way we were looking at it is called the transit method. It's found most of the planets
- 10:46to date so far, though that might change going forward. I mean, it's when, if you imagine a
- 10:50planet going around the star, if everything lines up absolutely perfectly, sometimes the planet passes
- 10:55between us and the star or between the telescope and the star. And that's going to block out a tiny
- 10:59little bit of the light from the planet, from the star.
- 11:00Like a little, almost like an eclipse.
- 11:02Yeah, it is an eclipse. I mean, we call them transits because they're planets, but it's called
- 11:05eclipses if you have a star instead. And it's a very small fraction. I mean, those hot Jupyters
- 11:09we talked about drop out about a percent of the star's light, but something like the Earth,
- 11:13it's more very small fractions of a percent. Parts per million we usually end up talking about.
- 11:17And so we're trying to measure the brightness of the stars and look for these dips in the light.
- 11:20And if you see them in a sort of regular pattern with the right kind of shape and lots of other
- 11:24things, you can say it's a planet.
- 11:25Yeah. There was also the wobble method.
- 11:27Yeah. Do you want to do it yet?
- 11:29Yeah, go ahead. Yeah. I mean, with the wobbler effect, it's mostly, again, it's an indirect
- 11:34observation method for detecting the planets orbiting the star. And it's mostly based on
- 11:39the sun or the star and the planet having the common center of mass and then kind of going
- 11:45in an orbit around that common center of mass. And that would make the star wobble. But most of the
- 11:51kind of the observation methods for the wobble effect are for the large planets, which we have
- 11:56been detecting before and for the smaller planets that might not necessarily work, especially for the
- 12:00earth-like planets. So that's why transit photometry that is used by the Kepler is a bit better,
- 12:05is a lot better to detect earth-like planets. And that's what we're interested in is quantifying
- 12:09the frequency of these earth-like planets.
- 12:11Yeah. Figuring out if anything lives there is one thing, but finding them is the first step,
- 12:15right? And the closer, the better.
- 12:17Yes. You got to start somewhere.
- 12:19Exactly. So this used to be done by hand or maybe studying one-off, like let's look at this one star.
- 12:26Maybe you guys give us the background on how this was done before and then some of the techniques that
- 12:31you brought in with Python here.
- 12:33So previously, people would still survey lots of stars. They'd try and observe loads of them and
- 12:37try and find the ones that had these transits around them. But you'd kind of identify candidates
- 12:41automatically. And then once you have those candidates, you'd have to look through the ball and
- 12:44basically say, okay, this one's false because it's clearly, you know, the telescopes jumped out here
- 12:49or something like that. And, you know, people would go through this and you'd have large teams of often
- 12:53PhD students looking at these candidates for a while. You know, it wasn't really a great use of people's
- 12:57time. You got very familiar with the data, right? And that's kind of okay. You know, that only works for
- 13:02so long. So yeah.
- 13:03Yeah. You study all the science, you go to school for seven, eight years with your undergrad, and you're
- 13:10just looking for variations, like common variations, right?
- 13:13I mean, there's a lot of science that's like that one way or another, right?
- 13:15I know. Yeah.
- 13:16I mean, I know people who sat in fields, basically watching swallows flying and measuring like how
- 13:22often they did it and when for days upon days upon days. And it's kind of nice to be outside,
- 13:26right? That one's not so bad. But, you know, there's a lot of data taking, right?
- 13:30Yeah.
- 13:30But anyway, the more we can automate that, the better, really. I mean, not only because you don't want
- 13:34people to have to spend all their time doing that kind of thing, but because if you're trying to do
- 13:38statistics with it, you really don't want human biases coming into it.
- 13:41Yeah, absolutely.
- 13:42Like some of the earliest things, I don't want to name any names or surveys here, but we could start,
- 13:46I think you could see a frequency in how often people flagged candidates as potential planets
- 13:50based on when the coffee breaks were. So there was a peak after coffee breaks and lunch, right?
- 13:54And, you know, that's fine if you find all of them.
- 13:57Exactly. And yeah, we talked about this previously. This is super interesting that human bias, not even
- 14:04bias in the traditional sense, but just like moods and stuff would affect it. You know, you've had your
- 14:09afternoon coffee and cake or cookies or whatever. And so now you're a little more focused, a little
- 14:16happier and, oh yeah, that probably is a planet. Yeah. You're a little less pessimistic. Yeah.
- 14:21Yeah. So you flag a few more things, right? Yeah.
- 14:23That actually becomes really important if you work in medical imaging, because there it's not just
- 14:29one PhD student looking at a particular light curve of a planet. Here you have multiple doctors looking
- 14:35at the same image and all of them have different idea of what is happening in that image. And then
- 14:40try to figure out what is the truth kind of thing.
- 14:42How interesting. And of course it has a way more serious consequences, right? If there's hundreds
- 14:46of thousands of planets out there and we miss one, well, yeah, maybe it'll even be found later.
- 14:50But if you're trying to determine, do you need treatment for cancer? Yes or no? And they're like,
- 14:54eh, no. Or yes, or whatever, right? That is a serious knock-on effect. All right. So you talked
- 15:00about this light curve. Yeah. Tell us, maybe describe the data that you're looking at, because if you're
- 15:05doing, say, this cancer research and having machines look at that, that's like a mammogram
- 15:09or something along those lines. But this is not a picture in the traditional sense that you're
- 15:14analyzing with this study, right? Yeah. So when I got started on this project as a master student,
- 15:18I've spent quite a bit of time with David, just asking him loads of questions to understand what
- 15:22is the data? What is it that I'm looking at? And how do I even work with it? What am I supposed
- 15:26to do with it? Because around the Kepler satellite itself, there's a massive data processing pipeline.
- 15:31First satellite itself naturally looks at the stars, records the brightness of a star over time.
- 15:37Then that data is transitioned to the research center where the data is processed along with the
- 15:43information of a kind of engineering information of what was happening on the satellite. And that
- 15:48together is being post-processed to determine, to kind of get the final light curve or brightness of a
- 15:54star. And then that brightness of a star over time is processed continuously to detect new planetary signals
- 16:00again and again and again and again. And from that, then there are parameters derived on what specific
- 16:07orbital period this planet might have, what might be the size of it, et cetera, et cetera, et cetera. And these become
- 16:12the features that we work with. And I probably missed a whole lot of things already. So David could probably add some
- 16:18more on that.
- 16:18I mean, I don't want to add too much detail in a big go, right? Fundamentally, though, it's the satellite measuring how bright
- 16:24these stars are over time and we have to take pictures with the satellite. So you have like a CCD image like you'd see on a normal
- 16:29camera, but they have to like identify the stars in that and work out where they are and how bright they are at each
- 16:34point and try and turn that into a long time series. But in the end, what we've got is lots of time series data.
- 16:39Right. Once you've narrowed it down to a single star, you're able to just say, what is the brightness of that star over time?
- 16:45Yeah. So I mean, and in Kepler's case, most of them, we'd have a measurement every 30 minutes and that would carry on
- 16:50almost continually for about four years. So you're talking around 60,000 data points for each star there.
- 16:55So it gets quite nice.
- 16:56Yeah, that's quite a bit of data. One thing is step back a little bit on the science side, I guess.
- 17:00One thing that just blows my mind about this is the timescale that you're working on here.
- 17:05If you've got, say, like Mercury or hot Jupyter going around and around really fast, like you get lots of measurements.
- 17:10But if you've got something far out from the star, it could be equivalent to a year, multiple years.
- 17:17Like that's just a couple of passes, right?
- 17:20Yeah. And so each pass, you get one transit, right? And if there's fewer than three, it starts to get
- 17:24very difficult to say for sure whether it's really a planet you're seeing.
- 17:26Yeah.
- 17:27And not just two random blips where the instrument got a bit hot or something.
- 17:30Yeah.
- 17:30So really, we kind of require that there's at least three in most cases before you'd really claim
- 17:35something was a planet. And even that's pushing it.
- 17:37Yeah.
- 17:37So ideally, you want more than that. And you can see you need to stare for four years just to start
- 17:41to get anything like a year.
- 17:42I know. It's great. Yeah. It's such a large timescale.
- 17:45In your planets. And this is why, you know, this is why most of the planets we know just
- 17:48aren't like the same sort of periods as the Earth. I mean, the vast majority of the planets we know
- 17:53actually have periods less than Mercury.
- 17:55Wow.
- 17:55So Mercury's, I forget off the top of my head, it's around 80 days, right? Close to that.
- 17:59Most of the planets we know are sort of sub-20-day periods, even, just because it's easier to find them.
- 18:03That's flying. Yeah, yeah. That's where you get all the measurements.
- 18:06But the other ones must be out there, right?
- 18:07Yeah. I mean, the indications we have are that planets are everywhere. Very, very common.
- 18:11And it's just a matter of getting the detection efficiency good enough to find the ones that
- 18:14are further out, really, I think.
- 18:15Yeah. David talked about this data, large data, you know, 60,000 measurements for a single star
- 18:21and hundreds of thousands of stars. You maybe want to talk about the data processing pipeline
- 18:25and how you took this data and worked through it, got it somewhere you guys could analyze?
- 18:31I mean, the big advantage was that most of the data is already public. So all of the parts of the
- 18:36data set, you can access it online on the associated Kepler websites and then do some of the processing
- 18:41steps to kind of derive the features that you're interested in. Okay.
- 18:44And also the confirmed planets and confirmed false positives as labels for machine learning are also
- 18:50available online. So kind of when I was working on the master's project back then, David pointed me in the
- 18:56right directions, where do I have to get the labels, where do I have to get the features, and then
- 19:00naturally pointed me and directed me in terms of what features are we supposed to derive from that,
- 19:04what kind of post-processing is supposed to happen.
- 19:06And that's where really the advantage of Python comes in and packages like scikit-learn, because
- 19:10most of these steps are already available in terms of normalizing the features and making the
- 19:16machine learning pipelines and making the hyperparameter optimization pipelines. So that's all been kind of
- 19:21easy to set up. In terms of the features for the data set, there were, I don't know how much into the
- 19:27details we want to get, but there are a few features that we computed on top of the features available
- 19:32with the Kepler satellite, Kepler data processing pipeline, and we naturally did some feature
- 19:37importance to determine what do we need, what we don't need.
- 19:40Yeah, yeah. Tell us about that.
- 19:42Feature importance. I wouldn't remember which features were important now. In fact, I don't.
- 19:46I can still remember a few. I've been looking at this more recently, I think, I guess.
- 19:49I mean, the one that always comes up at the top is the shape of the transit. So when the planet passes in front
- 19:54of the star, there's a sort of characteristic shape you get. It's very much like a U kind of shape.
- 19:57And that tells you a lot. I mean, a lot of the things that can cause kind of false positives.
- 20:01So what we're trying to do with all of this is work out when we see a candidate, whether it's a real
- 20:05planet or whether it comes from something else. Like quite often you get things called eclipsing
- 20:08binaries where it's basically just two stars over to each other and you see the eclipse of one of them.
- 20:12And that can give you a very similar signal that might look a bit like a planet, but isn't actually.
- 20:16And there's a few other things like that that can cause false positives.
- 20:19Right.
- 20:19And they tend to have these very slightly subtly different shapes. So sort of narrower eclipses that are a bit more
- 20:24V-shaped and so on and things like that. And that always helps us a lot, but it doesn't get every case,
- 20:28sadly enough.
- 20:29If my memory is not too wrong, David, was it also the case that some of the
- 20:33uncertainty measurements that were computed by the Kepler satellite pipeline were also computed as
- 20:38important features or am I wrong?
- 20:40I don't think we used them in the end.
- 20:41Okay.
- 20:42But they did go in to start with, but they didn't come out so important when you were doing those tests.
- 20:46Okay.
- 20:46Yeah. I was going to say, I'm no expert at image processing and with machine learning, but it seems to me that these models are very good at detecting small, minute changes that humans often miss.
- 20:58Right. Like it was so successful detecting breast cancer and mammogram scans that a lot of trained professionals actually missed.
- 21:05And these slight variations in like, oh, this is how it is when it's a star with a star rather than a planet and a star is subtle, but somehow machine learning seems to be able to find those and pull them out.
- 21:18This portion of talk Python to me is brought to you by brilliant.org.
- 21:21Brilliant has digestible courses in topics from the basics of scientific thinking all the way up to high end science like quantum computing.
- 21:29And while quantum computing may sound complicated, brilliant makes complex learning uncomplicated and fun.
- 21:34It's super easy to get started.
- 21:36And they've got so many science and math courses to choose from.
- 21:38I recently used brilliant to get into rocket science for an upcoming episode.
- 21:42And it was a blast.
- 21:44The interactive courses are presented in a clean and accessible way.
- 21:47And you could go from knowing nothing about a topic to having a deep understanding.
- 21:51Put your spare time to good use and hugely improve your critical thinking skills.
- 21:55Go to talkpython.fm/brilliant and sign up for free.
- 21:59The first 200 people that use that link get 20% off the premium subscription.
- 22:04That's talkpython.fm/brilliant.
- 22:06Or just click the link in the show notes.
- 22:09I think the best thing here is that like sometimes in the extreme cases, like someone looking at it who was awake and paying proper attention and everything would spot the difference.
- 22:18But what the machine can do is give you a nice sort of quantified boundary between the two.
- 22:22And so, you know, this is where you need to draw your line and stuff near it.
- 22:25Here it falls on this side or this side.
- 22:26And here's how confident you should be about it, given what we can see.
- 22:29And it can make all those quantified.
- 22:30And that's the real benefit, I think.
- 22:32You're not just relying on people sort of keeping themselves the same the whole way through, which no one does, of course.
- 22:37And one of the things I think is probably a challenge here is certainly a challenge in some places is as you look at more of these signals, you get better at identifying those things.
- 22:47But you weren't good at the first hundred you looked at or whatever, right?
- 22:51You've become trained in looking at these type of data.
- 22:54And so you bring on a new grad student, they go through that similar like learning curve as well.
- 22:58And you can try and mitigate all that by like getting multiple people to look at every candidate.
- 23:02But then you're just multiplying up the work hours, right?
- 23:04In machine learning, they often refer to it as graduate student descent, where you just have multiple graduate students and they iterate on each and every of them.
- 23:13Exactly.
- 23:13It's like a different form of deep learning.
- 23:15Right.
- 23:15They can probably still get the wrong minimum, right?
- 23:18The wrong optimization.
- 23:19So, Yav, one of the things about this I think it sounds like made it work is you talked about there's already these Kepler data where it's labeled, right?
- 23:29These are verified exoplanet signals.
- 23:31These are verified false positives and these are not exoplanets, right?
- 23:35So you were able to leverage that to teach the scikit-learn model?
- 23:38Yes.
- 23:39So we took some of the verified planets and some of the verified false positives, took the features, and essentially you create a Pandas data frame that you can feed into the scikit-learn machine learning models.
- 23:50Split them into your cross-validation folds and fit the hyperparameters and see what you get.
- 23:55All of the metrics to really evaluate the performance of these classifiers are already out there.
- 24:00It's more the question of how do you interpret them from the understanding of the model.
- 24:04So one interesting thing from what I remember was that the dataset itself seemed quite easy in terms of us getting very high accuracy metrics, but the slight difference between the different classifiers wasn't interesting.
- 24:19So linear discriminant analysis performed slightly better than quadratic discriminant analysis, which meant that the decision boundary between the false positives and the confirmed planets was actually way simpler.
- 24:31And you didn't need a quadratic function to describe what is the difference between them.
- 24:36So you needed to be careful of not trying to overfit to too many outliers, essentially.
- 24:41And the clearer the distinction, the better it is for you guys, right?
- 24:44Yeah.
- 24:45And just quantifying how confident we should be about that distinction.
- 24:48I mean, that was a big thing of the improvement we made is trying to get probabilistic output so we could really get a proper probability for whether something was a planet or not.
- 24:56Yeah.
- 24:56Versus just trying to rank the best ones, which is what people have tried to do before.
- 24:59I understand normal surveys, normal studies, where they have got very basic statistics, right?
- 25:06Like, how many standard deviations is this from the mean or various other standards, statistical analysis?
- 25:13What about this?
- 25:14Like, once you've fed that all through machine learning, what you get out the other side, like, how do you make sense of that?
- 25:19Oh, God.
- 25:20So probabilistic machine learning is a huge thing in itself, right?
- 25:23Beyond even that.
- 25:25But there's different ways.
- 25:26So, I mean, we used multiple different models.
- 25:27One of them that's naturally probabilistic is a Gaussian process classifier, which we built with GPFlow as a different package.
- 25:33And that actually took a GPU to run, which we thankfully got for free off NVIDIA.
- 25:37So I should probably say that, you know, they'll be happy.
- 25:39Awesome.
- 25:40Yeah, that's cool.
- 25:41So that sort of naturally gives you a probability of class membership.
- 25:44So you set it up with the whole training seven labels that you have, and it'll tell you what the actual probability that a new sample actually is a member of any one of those classes.
- 25:52Yeah.
- 25:52But all the other things we have to calibrate.
- 25:54So we get some sort of score out of the machine learning model, and then we have to take all of our examples and say, okay, well, we've got a score of 0.6, but actually 80% of these are really planets.
- 26:03So really, that needs to be 0.8.
- 26:05And you can kind of calibrate that way, sort of bootstrapping yourself.
- 26:08So do you have people go back through and basically reanalyze what the machine learning suggested, just focusing on those stars?
- 26:14What was the, once it says, you know, 67% likelihood, what happened?
- 26:19That's definitely where we had to actually work on calibrating the classifiers that were non-probabilistic.
- 26:25We also wanted to compare it against the probabilities produced by some of the previous methods, like VESPA, which was a physics-based model that evaluates the likelihood of different false positive scenarios and the planetary scenario.
- 26:39And that's where the things got interesting, because the probabilities that our machine learning classifiers were producing versus the probabilities produced by previous models were slightly different, particularly for false positives, if I'm not mistaken.
- 26:52More than slightly.
- 26:53I mean, they disagreed in something like 27% of the cases.
- 26:56Yeah.
- 26:56And this is VESPA, I should say, before we get deep into that, is a sort of field standard tool that's like a, it's an actual physical model.
- 27:03So you're fitting models of these different planet and false positive scenarios to the data and trying to say, how well does each model fit?
- 27:08Right.
- 27:08From what you understand, does it make sense with the way you think planets and gravity and all that works?
- 27:13Yeah.
- 27:13Yeah.
- 27:14Because we can sort of build up a fake system with a binary star and so on and say, okay, well, this is what that data looks like.
- 27:19And, you know, does it match?
- 27:20Does it not?
- 27:21And so on.
- 27:21And you can do that properly in a Bayesian way and get some good statistics out of it.
- 27:25The trouble is to make it run fast enough on a large number of samples, because to do this properly is very, very slow.
- 27:31And VESPA makes some approximations too, and it has a whole set of results.
- 27:34But till now, it's been the only thing that can run fast enough to really do this on large numbers of candidates.
- 27:38And so we were the first people to be able to compare against that.
- 27:41And we actually got some quite big discrepancies, which is kind of worrying, right?
- 27:44Oh, wow.
- 27:45Yeah.
- 27:45I mean, it's not that it...
- 27:47It's both exciting and worrying because somebody's got to change something, right?
- 27:51Or learn something.
- 27:52Yeah.
- 27:52Yeah.
- 27:53Well, it's important to do, you know.
- 27:54So we haven't really got to the root of that yet as to what's causing it.
- 27:58I mean, but when there was an independent label, it pretty much favored our classifier.
- 28:01So we're optimistic about that part, at least.
- 28:03Yeah, that is optimistic.
- 28:04Yev, do you want to tell us more about this GPFlow library?
- 28:08So GPFlow was something I briefly worked with when working on this project.
- 28:13At that time, I was quite interested in Gaussian process classifiers and Bayesian nonparametrics.
- 28:19But also how does it...
- 28:21The problem with Gaussian processes generally is that they're quite hard to scale because you need to do a matrix inversion to be able to kind of get the posterior.
- 28:30What GPFlow allows you to do is to formulate the whole problem or rather uses the methods that formulate the problem of kind of fitting your Gaussian processes to the problem by formulating this optimization problem.
- 28:43And that's where the GPUs come in.
- 28:45And GPFlow is naturally built on TensorFlow, which is built for optimizing parameters on the GPUs.
- 28:50And that's what GPFlow is, but for Gaussian process specifically.
- 28:53With a few kind of inference methods already pre-built into the package.
- 28:57And you can just define your Gaussian process, define your kernel, define the hyperparameters, give it your data, and it will do the work for you.
- 29:05That's what GPFlow essentially is.
- 29:07Yeah.
- 29:07It basically requires an NVIDIA graphics card underneath.
- 29:11Well, any decent GPU will help it speed up, right?
- 29:14But you can get away without it.
- 29:15It just takes forever.
- 29:15Yeah.
- 29:16Yeah.
- 29:17Nice.
- 29:18So how about the compute cluster?
- 29:21You know, I speak, I've had folks from like CERN, Large Hadron Collider.
- 29:25They've got like this incredible compute cluster that they can send their stuff out.
- 29:29The one kilometer array folks also had this huge amount of data they were processing in a big compute cluster.
- 29:35What about yours?
- 29:35So back when I started this project, I was doing it all on the laptop that they gave to us as part of the program.
- 29:41But as David mentioned later on, it was run on a GPU.
- 29:45So, yeah, it kind of progressed from a tiny laptop that I had to the GPU.
- 29:50Yeah.
- 29:50Though still, I mean, just one GPU.
- 29:52We never really got to big computing nodes and clusters.
- 29:54Like, it's not really a processing limited job, I think, at least at the scale we were running it at.
- 29:59Right.
- 30:00I think it's really interesting.
- 30:01And that's why I want to kind of tease that out, because it didn't take a huge amount of computing power to do this.
- 30:07All of the non-Gaussian process models, I mean, there's some random forests and multi-layer perceptron things and the like in there.
- 30:13All of them, even by the end when we're running sort of like publication level results, we're still running on a pretty standard iMac, just on a desktop computer.
- 30:21So it's just not using these big supercomputers, you know.
- 30:24Yeah.
- 30:24How much of the processing is happening in there?
- 30:26Is the, do you start from the brightness over time signal or do you start from the actual image of the whole sky, the image of the star?
- 30:34Like, where do you begin this analysis?
- 30:36Yeah.
- 30:36So this is the good question, right?
- 30:38So a lot of the quick analysis I've been talking about is all of the training, the models and so on.
- 30:42Like a lot of the features were pre-computed by NASA as part of the Kepler pipeline.
- 30:46And that saves us a lot of processing time.
- 30:48I mean, it really does.
- 30:49So you can't really understate.
- 30:51It's actually a bit more of a processing problem when you try and do that as well.
- 30:54Right.
- 30:54But it's already been sort of condensed down to you care about the star.
- 30:58Here's the data.
- 30:58Go look at it.
- 30:59Yeah.
- 30:59So here's a lot of metadata on it.
- 31:01And we'll still take the time series and we'll calculate some extra things from it, but not at the same level.
- 31:05So we don't have to start with the sort of real pixel level camera images.
- 31:08And that takes a long time to process.
- 31:10Yeah.
- 31:11You talked about Kepler being done, tests coming online.
- 31:15Maybe give us a sense for where this kind of research is going, where like additional projects, additional studies you all might be doing.
- 31:24What does the future look like with new telescopes, larger field of view, more data, so on?
- 31:29Well, I mean, with this one, we were really just trying to demonstrate the method on Kepler, but test is where you need it.
- 31:34I mean, so Kepler has maybe 8,000 candidates, I think, in the database.
- 31:38The yield estimates for tests kind of imply that we're going to find around 20,000 planets on top of several hundred thousand false positives.
- 31:46So you're already upping it by a couple of orders of magnitude anyway.
- 31:48Yeah.
- 31:49That's in a sample of around 20 million light curves.
- 31:51So it's a much bigger data set all by itself.
- 31:53And that hasn't really been done yet to this sort of scale.
- 31:56So really, the next thing we want to do is to generalize this model and apply it to tests.
- 31:59Yeah.
- 31:59And there's future missions coming on.
- 32:01So there's one called PLATO, the European Space Agency mission that's due to launch in a few years.
- 32:06And while various things coming online, it's a big interesting topic.
- 32:09So there's lots of stuff in the pipeline.
- 32:11How long will test run for?
- 32:12Will you be able to detect things that are further out, like Neptune type of things, or is it still short?
- 32:19So one of the trade-offs with tests was that it's observing the whole sky.
- 32:23But that means for most of the sky, it observes it for less time, just a month, actually, and for most stars to start with.
- 32:28I mean, the interesting thing about tests, though, is they built it so it has about 10 years of fuel, I think.
- 32:32Like a lot more fuel than it's currently funded to operate for.
- 32:35So optimistically, it could be going for the next decade.
- 32:38We'll figure it out.
- 32:38If we could get someone to pay attention in the next eight years, we'll just keep it running.
- 32:42You know, if you're doing well enough, eventually it just sort of pays.
- 32:45Yeah.
- 32:45It's like Hubble, I guess.
- 32:46Once you're doing well enough.
- 32:47Right.
- 32:48David, I've got a bit of a machine learning question.
- 32:51Like, how applicable are the models actually built on Kepler to the test satellite?
- 32:56Because from the test satellite, you won't have initial data to start with, right?
- 33:00Yeah.
- 33:00So this is one of the big challenges of building it for tests is we have to simulate a training set by making models of all the different scenarios and starting to inject them into the time series.
- 33:08Right.
- 33:09Because the measurement might be more sensitive.
- 33:11It might look slightly different.
- 33:12It's not the same instrument.
- 33:14And so...
- 33:15Different cadence, different noise.
- 33:16Yeah.
- 33:16All that stuff.
- 33:17Yeah.
- 33:17For sure.
- 33:18I mean, the advantage of that, though, is we can start to really build up the explainability of it because we can test how things perform on different scenarios and actually just increase the size of our training set hugely.
- 33:27So there's some advantages, too.
- 33:29But yeah, it's some work for sure.
- 33:30Yeah.
- 33:31You kind of got to go back to restart.
- 33:32You could go find the ones that are verified by Kepler and say, let's look at those, see what the curves look like, line it up.
- 33:39Yeah.
- 33:40Yeah.
- 33:40And it's a nice thing because you can look at the stars that Kepler observed and Tess observed and say, like, oh, well, we know there's not a planet there.
- 33:45So this is clearly some kind of noise.
- 33:47And use that in your training set and this kind of thing.
- 33:49Yeah.
- 33:50There's some nice little synergies to build in with it.
- 33:52Yeah, absolutely.
- 33:53Well, what about other fields?
- 33:55Can people take this idea of creating these machine learning models, studying the data that was already labeled, and automatically get insight into, I don't know, climate or weather or earthquakes, things like this?
- 34:09I mean, of course, machine learning is being used everywhere, right?
- 34:11Yeah.
- 34:12You must have a...
- 34:13I mean, I didn't quite understand the question.
- 34:14If you could repeat, what is it that...
- 34:16Well, I'm just thinking there must be some inspiration that other fields can take from this who are not yet using machine learning.
- 34:23Do you see any where it's being underutilized, I guess?
- 34:26Obviously, it's been utilized in a lot of places.
- 34:28Probably plenty of fields.
- 34:29Like, I can't think of many off the top of my head.
- 34:31But, I mean, one big field is remote sensing.
- 34:34There is just so much data observing the Earth's surface.
- 34:38And most of it just kind of is there unused.
- 34:41If you think about two satellites, Sentinel-1 and Sentinel-2, most of these satellites are not put to use at all.
- 34:47But yet they produce terabytes of data.
- 34:49And we've actually seen that in practice.
- 34:51But the problem there is that there is very few labels.
- 34:54But what you can learn is that actually it's okay to use labels that have been produced by other methods.
- 35:00So the same way that as some of the planets have been confirmed by multiple follow-up observations,
- 35:06there is still some likelihood that they could have been wrong.
- 35:09But ultimately, once you put all of that together into one big data set, there will be still some signal from which machine learning can learn what features to use to do the classification.
- 35:19And that way scale up once you have large data sets and slowly, slowly move towards some answer that you're looking for.
- 35:25Or you might not be looking for an answer.
- 35:27You just want to see what happens.
- 35:28Yeah.
- 35:29I guess if you start with sort of messy labels and you get a start-off classification, it can tell you which labels are most likely to be messy.
- 35:35And you can make your training set better, right?
- 35:37And start iterating.
- 35:37Yeah.
- 35:38What about using it for iteration?
- 35:41I don't know very much about this data, but we could label a few things, see what it detects, go back and pay attention to what it thinks is important and say,
- 35:48yo, you're right, no, you're wrong, let's retrain you, do it again, and so on.
- 35:53Yeah.
- 35:53So actually, there are quite a few publications in machine learning that look into these kind of problems.
- 35:58And you can think of it like intuitively, it sounds very much like expectation maximization.
- 36:02You move your parameters slightly, then you maximize over your data set.
- 36:06And especially Amazon has quite a bit of research on that because they have the Amazon Mechanical Turk and they have loads of people labeling different data sets.
- 36:14Yeah.
- 36:14And sometimes people will label them wrong and therefore you want to fit your model to some of the labels, see how that compares to other labels.
- 36:21And then kind of given that and for what are the possible kind of labeling noises and given that kind of optimize your model, et cetera, et cetera, and iterate on that continuously.
- 36:31Yeah.
- 36:31Yeah.
- 36:32Very cool.
- 36:32Well, this is such a neat project.
- 36:34And like I said, I think it really captures the imagination when people see what you guys have done here because there's so much data out there.
- 36:43And I think we're just scratching the surface on what we've learned, right?
- 36:47This stuff is so hard to detect that the more we can do these studies and the more we can learn about stuff outside the solar system is just amazing.
- 36:54Yeah.
- 36:55I mean, for sure.
- 36:56And we're keeping getting more and more data just coming in year on year with this.
- 36:59Yeah.
- 36:59Can you study anything from the ground?
- 37:01Is there anything accurate enough on ground-based telescopes to give you that level of information or has it got to be as?
- 37:07Yeah.
- 37:08So, I mean, we actually run a telescope in Chile called NGTS, the Next Generation Transit Survey, that surveys stars and regularly picks up these transits.
- 37:16What you can't do is get down really to the Earth-sized planets around sun-like stars.
- 37:21That's really tough.
- 37:21Yeah.
- 37:22But certainly for Neptune-sized planets and Jupyter-sized planets, we can definitely go from the ground.
- 37:26Yeah.
- 37:26And some of the first transits were found from the ground for sure.
- 37:29Oh, yeah.
- 37:29Awesome.
- 37:30Now, before we round out our conversation here, I do just want to ask you a couple of more sort of philosophical questions.
- 37:37First of all, it seems to me that there's just an incomprehensible level of stars out there, right?
- 37:44We've got how many stars in an average galaxy?
- 37:47A hundred billion.
- 37:48I don't know about the average, but that's about the Milky Way.
- 37:50A hundred billion?
- 37:50Yeah.
- 37:51Something like that.
- 37:52How many galaxies?
- 37:53I mean, uncountable, right?
- 37:54They keep going out to the edge of what we can see.
- 37:56Right.
- 37:57But it's millions of galaxies?
- 37:59Well, more.
- 37:59I mean, it's not a countable number.
- 38:01I mean, there's just...
- 38:02So, you've got to multiply those two numbers.
- 38:04And then you think each star may have a planet?
- 38:07Many stars have planets?
- 38:08Maybe multiple planets?
- 38:10They're certainly common.
- 38:10Yeah.
- 38:11Like, it's probably more common than not, at the very least.
- 38:13So, yes, there's definitely planets everywhere.
- 38:15It seems incomprehensible to me that life is only here, right?
- 38:19Yeah.
- 38:20And I think a lot of astronomers agree with that.
- 38:21Though, obviously, we can't detect that life yet.
- 38:24It seems remarkable that it wouldn't exist.
- 38:26Right.
- 38:26I mean, what it is hard to say is how often would intelligent life happen and this kind of
- 38:30thing.
- 38:30And there's all sorts of open questions there.
- 38:32Yeah.
- 38:32I think that's a really interesting thing to ponder.
- 38:34Just, you put those numbers together and the fact that you all just keep discovering more
- 38:38and more planets, so they must be fairly common.
- 38:41The chances that there's not something like what we have here in other places in the galaxy,
- 38:46it seems pretty small.
- 38:47The chance that we find it or ever interact with it may be zero, but the fact that it exists
- 38:52is already interesting to dream about.
- 38:55Wow.
- 38:55It would be incredible to prove that it exists, that's for sure.
- 38:58It sure would.
- 39:00What's even more interesting is that if we do kind of ponder about it, like you said, like
- 39:04other life forms to exist, the impact it might have on the society and the society's perception
- 39:11on itself.
- 39:12Like as previously when there were big astronomical discoveries that kind of changed our worldview,
- 39:16the society changes with that too.
- 39:18And what can be the impacts of, I don't know, if we observe sufficiently many exoplanets and
- 39:23we discover something new.
- 39:24Maybe that will change our thinking and the way kind of we operate with one another.
- 39:29I don't know.
- 39:30Yeah.
- 39:31That would be great.
- 39:31Or if it turns out that there really is life on Venus.
- 39:35Yes, that's a very new piece of news that they discovered.
- 39:38I forgot the gas, but some gas that is typically...
- 39:41Phosphine, wasn't it?
- 39:42Yeah.
- 39:42Yeah, it was phosphine.
- 39:43That's right.
- 39:43Amazing.
- 39:44So it feels to me like there must be life out there.
- 39:49And I think your work is tipping the scales and the likelihood of that, even if it has nothing
- 39:53to do with actually detecting or interacting the life itself.
- 39:56It's really cool.
- 39:56Like you said, you've got to find the planets to be able to look for life on them.
- 39:59That's right.
- 40:03Talk Python To Me is partially supported by our training courses.
- 40:06Python's async and parallel programming support is highly underrated.
- 40:10Have you shied away from the amazing new async and await keywords because you've heard it's
- 40:15way too complicated or that it's just not worth the effort?
- 40:18With the right workloads, a hundred times speed up is totally possible with minor changes to
- 40:23your code.
- 40:23But you do need to understand the internals.
- 40:26And that's why our course, Async Techniques and Examples in Python, show you how to write
- 40:31async code successfully as well as how it works.
- 40:34Get started with async and await today with our course at talkpython.fm/async.
- 40:40Then the other one, I'm a big fan of SpaceX in the sense that it's really pushed the boundaries
- 40:47of what we can do with space.
- 40:49Like when I saw those two rockets land side by side, you know, people thought it was fake
- 40:53because it was so synchronized.
- 40:55And so like, there's no way that it's going to look that good.
- 40:57That's just CGI, right?
- 40:59And so the stuff they're doing is so amazing.
- 41:01And yet they're not always positive for astronomy, right?
- 41:05Like for their internet satellite stuff, there's a big uproar about them messing up ground-based
- 41:10telescopes and stuff, right?
- 41:11Yeah.
- 41:11And I could find you some pictures where you see 50 of these satellites sort of streaking
- 41:15through the sky, right?
- 41:16Right.
- 41:16Exactly.
- 41:17It's not too bad now because there's not that many, but I think they have plans to
- 41:20hugely expand the numbers.
- 41:21Yeah.
- 41:22So I just wanted to ask you too, what you thought about that?
- 41:24I think some of their future generations are supposed to be designed to be a bit less kind
- 41:28of bright in the images we have, but there's still a big open question about what effect
- 41:32they're going to have.
- 41:32I think people aren't really sure yet.
- 41:34Yeah.
- 41:34It's certainly not exactly my field.
- 41:36I mean, I work with datasets from satellites, I should say.
- 41:38The reason I thought about it is those things passing in front of stars are going to mess
- 41:43up these light curves very much in the way that some other kind of transit would.
- 41:47Well, if the light curve is coming from a satellite that's already outside of the orbit of these
- 41:51ones, then it's okay, right?
- 41:52But all the ground-based stuff can be affected, yeah.
- 41:54Yeah.
- 41:54And sometimes, I mean, some of the stars we look at are relatively bright, but people study
- 41:58these very faint galaxies and things where the signal could be completely drowned out by
- 42:02a satellite like that passing.
- 42:04And that's what makes you worry.
- 42:05I mean, there's other examples of radio telescopes where the datasets became unusable because of people's
- 42:10mobile phones near them and things like that.
- 42:12Right.
- 42:13So you can see how some of the really sensitive measurements get affected by anything.
- 42:16And a big trail of bright satellites is going to be something.
- 42:18It is going to be something.
- 42:19The fact that you all can detect things from so far away and so faint, it still just blows
- 42:25my mind.
- 42:25Yeah.
- 42:26I mean, some of these, like the wobble method you were talking about earlier, like we can
- 42:30sometimes measure stars moving towards us at a sort of walking pace.
- 42:33Yeah.
- 42:33Like when they're orbiting.
- 42:34It's a whole star moving towards us at a few meters per second, like a brisk walk.
- 42:38And it's 10 million light years away or something insane, right?
- 42:42Or how far?
- 42:42Hundreds of light years for sure.
- 42:44Hundreds of light years.
- 42:45Yeah.
- 42:45Okay.
- 42:45Yeah.
- 42:46So many, many, many millions of miles, right?
- 42:48Very far away.
- 42:49And it's, yeah, like walking pace.
- 42:51Unbelievable.
- 42:52So I don't know.
- 42:53We'll see what happens.
- 42:54I guess, I mean, maybe there's things you could do if the, what you're measuring is like
- 42:58looking for a long time.
- 42:59You knew the satellite was coming.
- 43:01Just don't take that signal at that moment.
- 43:04have a little gap in the time.
- 43:05But if there's a continuous stream of them, I mean, what do you do?
- 43:07Yeah, I know.
- 43:08It's not good.
- 43:10And I think that is the end goal.
- 43:11I think.
- 43:11It's also that to me, the question that comes up with this project that SpaceX has with releasing
- 43:16these satellites, it's also like, why do we need that in the first place?
- 43:19Because to me, it's rather strange and it's kind of more of a symptom of the problems we
- 43:24have in our century overall is like the focus is growth, growth, growth.
- 43:28Yeah.
- 43:28So we can throw satellites in the sky.
- 43:30Let's just throw even more satellites.
- 43:31Maybe we don't need that.
- 43:33And maybe in the first place we need to think about, well, maybe we need to think about degrowth
- 43:37if we think about climate change, et cetera, et cetera.
- 43:39Yeah.
- 43:40Yeah.
- 43:40There is an argument for providing internet to a lot of places where you just can't get
- 43:43the connections to.
- 43:44And I think once you get into those sort of things, it's quite hard to decide like what's
- 43:48the best thing to do philosophically speaking.
- 43:50But if it's a for-profit thing, that's different.
- 43:52Yeah.
- 43:53I mean, the point there is that there are people and the specialists who study these kind of
- 43:57things like anthropologists, et cetera, et cetera, in terms of how much do we need of that
- 44:01stuff?
- 44:01And sometimes it's useful to consult them too.
- 44:03And maybe we should consult them too in these cases and not just look at it as a technical
- 44:08kind of thing.
- 44:08Will it hurt astronomers or will it not hurt astronomers, but look at it from a broader picture.
- 44:12Yeah.
- 44:13It's a good question.
- 44:13And I think we're going to leave it there for our main conversation.
- 44:16But let me ask you the final two questions before I let you all go.
- 44:20So yeah, we'll start with you.
- 44:22If you're going to write some Python code, what editor do you use?
- 44:24At the moment, for the most part, I'm using PyCharm and sometimes I'm using Atom and sometimes
- 44:30I'm using Veeam if I'm developing on a different machine that I'm connecting to remotely.
- 44:34All right.
- 44:34David?
- 44:35I've been using TextWrangler for years, which is probably not a very fancy option.
- 44:38I think it has to be BBEdit now.
- 44:40They forced me to upgrade.
- 44:42Perfect.
- 44:42And then a notable PyPI package, like some library out there that you've run across and
- 44:48you're like, this is really cool.
- 44:49It really helped with our project.
- 44:50Or maybe you don't know about, people should check this out.
- 44:54You guys got any that come to mind?
- 44:55I mean, the obvious one is GPFlow, which enabled a lot of the Gaussian process calculations.
- 45:00I mean, everyone knows about scikit-learn, I guess.
- 45:02Yeah, everyone definitely knows about scikit-learn.
- 45:04The one that was most useful to me recently was Rosterio, which is a package that allows you
- 45:09to work with georeferenced images and remote sensing images.
- 45:13So that was really useful for me.
- 45:15And PyTorch.
- 45:16I really like PyTorch.
- 45:17Big fun.
- 45:17If we want to get in a whole debate of Keras versus PyTorch, I'm definitely on the PyTorch side.
- 45:22Yeah, the PyTorch game.
- 45:23Awesome.
- 45:23All right.
- 45:23Yeah, I hadn't heard of that one for geospatial data.
- 45:26Very cool.
- 45:26All right.
- 45:27Final call to action.
- 45:28People are out there listening.
- 45:29They want to learn more about your study or maybe learn how they can take those ideas
- 45:33and apply them to their area of research.
- 45:35What do you say?
- 45:36Just reach out on Twitter.
- 45:37Yeah.
- 45:38I mean, if you don't want to read the actual paper, that's definitely the best thing to do.
- 45:41I mean, we're happy to answer questions.
- 45:42Okay, cool.
- 45:43I'll put your link to your ways to get in touch with you in the show notes.
- 45:46And of course, the article.
- 45:48Cool.
- 45:48Sounds good.
- 45:49Great.
- 45:49Thanks a lot.
- 45:50Yeah.
- 45:50All right.
- 45:51Thank you guys for being on the show.
- 45:52It was really fun to talk about your project.
- 45:54And congratulations on doing this work.
- 45:57It's very cool.
- 45:57Yeah.
- 45:57Thanks for inviting us.
- 45:58It's been great.
- 45:59Yeah.
- 45:59Thank you so much.
- 46:00Yep.
- 46:00Bye.
- 46:00Bye-bye.
- 46:01This has been another episode of Talk Python To Me.
- 46:04Our guests on this episode were David Armstrong and Jeff Gamper.
- 46:08And it's been brought to you by Brilliant.com.
- 46:10Brilliant.com.
- 46:11Brilliant.com encourages you to level up your analytical skills and knowledge.
- 46:15Visit talkpython.fm/brilliant and get Brilliant Premium to learn something new every
- 46:20day.
- 46:21Want to level up your Python?
- 46:23If you're just getting started, try my Python Jumpstart by Building 10 Apps course.
- 46:28Or if you're looking for something more advanced, check out our new Async course that digs into
- 46:33all the different types of Async programming you can do in Python.
- 46:36And of course, if you're interested in more than one of these, be sure to check out our
- 46:40Everything Bundle.
- 46:40It's like a subscription that never expires.
- 46:42Be sure to subscribe to the show.
- 46:44Open your favorite podcatcher and search for Python.
- 46:47We should be right at the top.
- 46:48You can also find the iTunes feed at /itunes, the Google Play feed at /play,
- 46:53and the direct RSS feed at /rss on talkpython.fm.
- 46:57This is your host, Michael Kennedy.
- 46:59Thanks so much for listening.
- 47:01I really appreciate it.
- 47:02Now get out there and write some Python code.
- 47:03I'll see you next time.
- 47:24Thank you.