r/AskComputerScience • • Apr 11 '19

Can someone explain why it takes so much data to image a black hole?

Post image
270 Upvotes

27 comments sorted by

24

u/CobaltBlue Apr 11 '19

She explains what she and her team did here if you want to watch: https://www.ted.com/talks/katie_bouman_what_does_a_black_hole_look_like

The short version is that it is so far away that a single-lens telescope would have to be roughly the size of the earth to have enough resolution to see it. Instead they have a variety of telescopes all over the world taking photos at various times, which when pieced together, still~ do not cover anywhere near enough to fully render the picture, so some AI is used to generate the rest.

2

u/NormalClicheUsername Apr 11 '19

Awesome thanks u/CobaltBlue

Edit: spelling

4

u/ThaiJohnnyDepp Apr 11 '19

a single-lens telescope would have to be roughly the size of the earth to have enough resolution to see it

Sounds like Randall Munroe's Final Telescope

88

u/Amablue Apr 11 '19 edited Apr 11 '19

This is just an educated guess:

The black hole is very, very far away, and the amount of light that reaches Earth is miniscule. And it's not a steady stream of photons, it's probabilistic. Being so far away and so dim, those photons are going to be competing with other random noise in the background.

So you have to point your instruments at the sky in just the right place and collect lots and lots of data. The more data your get, the better you'll be able to filter out the noise and determine which photons you collected actually belonged to the black hole. I'm sure that takes a lot of fancy physics on it's own. And they need to compare their resultant image against other models to ensure they're doing everything right and getting the same result.

18

u/PUSH_AX Apr 11 '19

Photons infer traditional photography, catching light on a sensor. The EHT records the interference pattern of radio waves, using a technique called very-long-baseline interferometry. It's just a lot of data, and the more telescopes you have the more data you get and need to correlate.

7

u/[deleted] Apr 11 '19

It's just a lot of data

However, to be fair, that data was specifically the detection of photons at 1.3mm wavelength.

3

u/IrishJoe Apr 16 '19

Radio waves are radiation in the electromagnetic spectrum (just like visible light) comprised of photons (just at a lower frequency), so @Amablue's comment is correct.

7

u/themeaningofhaste Apr 11 '19 edited Apr 14 '19

I'm a radio astronomer so hopefully I can help. Interferometry is inherently tricky because you have to be able to record the electromagnetic phases of the light in order to coherently combine them, schematically looking something like this. There is a time delay between the two telescopes, which if you know the positions of the telescopes relative to one another really well, is easy to calculate in principle. There are other effects on the electromagnetic phase of radio waves so it's, as you might expect, a lot trickier.

If you have an interferometer where you can hook up cables that will transmit the signals to one computer ("correlator"), then instead of recording all of the data and saving them, you can combine the data, process them in real time, and then save a far smaller data set. An example of such an interferometer is the Very Large Array, there shown in a rather compact configuration actually; sometimes the dishes are placed much farther apart. Anyway, you can imagine it's "easy" to connect cables up between them, add the voltage information so that the phases coherently add, and save your data. The VLA correlator is one of (maybe not true recently, not sure) the most powerful computers in the world.

For the Event Horizon Telescope which spanned the entire world, you can't hook up the telescopes. So you have to save Nyquist-sampled complex voltages to disk and then combine them after the fact. So from all of the telescopes, they had to collect the data, then ship them by air (internet would never handle it). And fun fact, the Event Horizon Telescope also used facilities like ALMA, which itself is an interferometer. And I don't believe they were able to combine the data on site as they normally would, I'm pretty sure they would have had to save the data from each of the 66 dishes independently, I'm about 90% sure on that.

EDIT: I'm at the American Physical Society April Meeting and it sounds like I was wrong on that last point. They phased up all of ALMA at once, so they'd have to store "only" that information as one effective telescope.

26

u/actualsnek Apr 11 '19

I read the paper and it seems like their algorithm is actually more of a generator/reconstructor. They didn't just put the data together to create a coherent image, they plugged in various data points to this CHIRP algorithm and it spit out something that it estimates would match all that data the most closely. So it isn't really "a picture of a black hole".

17

u/Catalyst93 Apr 11 '19

This is the same idea behind techniques in medical imaging. In this type of imaging you get data from an array of sensors observing some object and you need to statistically estimate what object "best fits" the data under some function/transformation. Here we use the transformation to model the process that generated the data we collected about the object. So I would say that the image we see is as much an image of a blackhole as an MRI, X-ray, or CT scan is an image of something in your body.

4

u/slimjim_belushi Apr 15 '19

*it isn't really a "photograph" of a black hole (since photograph implies photons/visible light was used), but it is a picture of a black hole.

6

u/IronException Apr 11 '19

As far as I know they didnt just save the data from the black holes direction. They also got an image of a smaller but closer black hole. So what we see is just a very small part of the image. (There is actually also an image showing an strong magnetic field out of the poles of the black hole)

2

u/Vesk123 Apr 11 '19

I honestly expected quite a bit more than 5 petabytes

2

u/GrimalKin_Seamless Apr 11 '19

it wasn't a picture, it was data that when plugged into the algorithm it would plot points and those points would come out as the picture

2

u/[deleted] Apr 11 '19

They didn't take 1 photo, they took hundreds of thousands of photos of the same space and stuck them together like a puzzle...

So there's a pretty big chance they could still be wrong, but that's the closest humans have got so far. :)

1

u/NeoMarxismIsEvil Apr 12 '19

In addition to other things that have been mentioned, keep in mind that this wasn't captured like a still image camera of the sort that's in your phone.

The earth was used like the scanning head on a flatbed scanner and each radio telescope site was like a single pixel sensor element in that scanning head. So the data had to be recorded "all day" (from the time it came over one side of the horizon to the time it went over the other, where "day" is defined by the location of the target, not the sun).

Furthermore the sample rate is probably ridiculously high, as the bandwidth being sampled is quite wide (I read it was something like 40-350GHz, part of of the EHF and FIR ranges but I don't remember the exact numbers) meaning each sample will be large. Furthermore, they also needed phase and polarization data which probably required recording the same thing from multiple receivers in the same array.

So the situation is more like you setting your phone down and starting a video recording that runs all day. Except do that with several phones or video cameras, and get a bunch of other people to do the same thing.

To get a better idea of how this sort of stuff works, well I don't know of a good guide but ask r/rtlsdr or maybe see this https://aaronscher.com/wireless_com_SDR/RTL_SDR_AM_spectrum_demod.html However though it's similar that's a very narrow bandwidth recorded with a $20 USB dongle.

Then multiply all that by the number of telescope sites etc. the amount of data adds up fast, and that's just with an incomplete "scanning head" with lots of pixels missing.

Also they may have used more than one day of recorded data.

1

u/[deleted] Apr 11 '19

Probably used to store training data? Either way, would have been better to use S3 or similar :).

2

u/Chandon Apr 11 '19

S3 is useful when 1.) you're working mostly with S3 and 2.) you may need to scale quickly.

For an application like this S3 is a terrible idea. You need fast access to the data for local machines and you have a good estimate of how much data you'll have.

2

u/[deleted] Apr 12 '19

I’m just messing around with my comment. But I disagree with your statement. There are many ways to easily run fast + efficient machine learning algorithms off of data in S3. Especially if that data is compressed well and stored in formats like Parquet. You can work with EMR for instance and load your data directly from S3 to process it with Spark. You can deploy a cluster of a crap ton of instances in no time and process the data elastically as needed. S3 allows you the freedom to scale up or down as needed with unstructured data and removes the need to manage hardware. It’s probably a lot cheaper than managing that hardware too.

2

u/Chandon Apr 12 '19

How do you get 5 petabytes of data into S3? How do you get it back out if you need to?

Cloud services like Amazon are great for some applications. But there are good reasons why people still build local compute and storage clusters for HPC.

1

u/[deleted] Apr 12 '19

Well I assume they didn't get all of that data at once and it was a gradual collection..but if they did want to transfer it all at once into S3, they could do it with AWS services like Snowball.

Getting data into and out of S3 is fairly easy. There are many ways. You can use the API and multipart upload to upload up to 5tb of data with a single call. This integrates well with most modern languages to access S3 programmatically. You can also use AWS managed services like Kinesis or other open source ones like Apache Kafka for piping in near real time streaming data. Processing data already in S3 at scale is super easy with Spark on EMR clusters which you can launch on demand. You can even avoid S3 altogether and have Kinesis streams pipe data into HDFS on EMR if you need to have that data more readily available for processing.

Anyway, there's some more info on why they needed dedicated HDDs here: https://www.eso.org/public/usa/outreach/first-picture-of-a-black-hole/blog/.

1

u/[deleted] Apr 11 '19

Hey Bouman nice work there, dropbox me the dataset so I can run it

1

u/[deleted] Apr 12 '19

lol I don't know sh*t about image processing or anything like that but I am a data engineer for a living. Seeing those stacks of drives brings back horrible memories of managing Hadoop clusters. Just messing around :p.

-6

u/[deleted] Apr 11 '19

Big object big mass big data obviously.

4

u/confused-as-heck Apr 11 '19

Good question dumb answer

1

u/[deleted] Apr 11 '19

I thought it would be obvious that my answer was sarcasm with the fact that no one on the Earth who has the ability to use a computer thinks the mass of an object somehow determines the size of the picture. This is why people on reddit have to use /s all the time.

1

u/obogzch Apr 11 '19

I stand by my brethren, I also wanted to say that black holes are humongous and because of that you need a lot of space for a picture, similar to photographing any close friend's mom.