Recent comments in /f/explainlikeimfive

piszkavas t1_ixq263n wrote

I have seen people sobered up after an incident ( we were at a party, chillin drinking and suddenly a 600lbs concrete plate slided onto the leg of one of the guests.

They were sitting on top of it and it moved towards left,as the weight on one side was too much, they could jump into safety but one was not fast enough, the plate landed on his leg, below the kneecap.

All the other guests 20+ have sobered up in 3 seconds, they lifted the plate and the guy was taken to the hospital. His fibula bone was shattered to three pieces

2

fiendishrabbit t1_ixq0364 wrote

X-rays work because to x-rays your bones have a very different reflective quality compared to muscles, skin and tendons.

While you can see any damage to bones, or any sort of misalignment of bones (which is something that can happen if the tendons that fix the bone into place are damaged) you can't see the tendons themselves.

In cases where doctors do need to see tendons&ligaments they use Magnetic Resonance Imaging (MRI), but they tend to avoid that as MRI machines are super expensive to buy and use (although it's becoming more common, especially with hand, feet and knee injuries).

2

Pocok5 t1_ixpxqo9 wrote

A GPU can do a shitton of data-parallel stuff. If you find yourself doing the same operation over a ton of data points, it's worth thinking about whether you can do it all at the same time. Since you are doing python, check Numba https://carpentries-incubator.github.io/lesson-gpu-programming/03-numba/index.html

https://numba.readthedocs.io/en/stable/cuda/cudapysupported.html

2

blry2468 OP t1_ixpvkpt wrote

Unfortunately my code is not running the same operation over again but with changes at each time it loops for graph plotting of different points. The code also draws from multiple other code files not just an array and so idt it can be converted to be gpu utalised?

1

Pocok5 t1_ixpumno wrote

> It is completely conventional python code.

So, you're not doing any GPU compute at all? Only CPU? See if your algorithm can be parallelized on a GPU (a good sign that you can do so is doing the same operation over elements of huge arrays where computing the result depends only on the input array - a convolution is such, trying to do fill a vector with a fibonacci sequence is not).

3

Fluffy-Jackfruit-930 t1_ixprlit wrote

X-ray images are shadows of the tissue. Bones are really opaque so show up really clearly. Soft tissues, including cartilage, muscles, ligaments, fat and skin are almost totally transparent, so only show up super faintly.

The actual ligament itself only shows up the same as muscle - so when the two are next to each other, they just blur into each other because you can't see an edge where there is a difference.

However, you can sometimes see hints of a sprain. There may be swelling of the tissue around the ligament. While you might not be able to see any detail, you could see that things are swollen under the skin. Sometimes a sprain also damages the bone by pulling a small flake of bone off where the ligament attaches to the bone. The bone flake can be easily seen in many cases. The bones of the joint might have moved out of position of the ligaments holding them together have been damaged.

3

PartTimeBomoh t1_ixpr0t2 wrote

X-rays see bones not ligaments which are what get injured in a sprain. Ligaments are soft tissues like the rest of your skin and such and hence may not show up well on the x-ray.

There can be some indirect signs but these don’t always occur, for example: A ligament tear that tears off a piece of bone with it Widening of the joint space reflecting instability of the joint as a result of a ligament tear

8

a4mula t1_ixppup5 wrote

Have you researched loopless coding at all? If nothing else, are you practicing sound early exit strategies?

If it's not proprietary code, or if you can slap together a pseudo version that's okay for public consumption you might paste it up to something like stackoverflow.

Nested loops are standard practice, on small datasets.

This is not that.

I'd take a peek at this wiki on nested optimization to get an idea how how you might get around it.

If not, again stackoverflow is a great resource full of expertise in things like optimization.

1

blry2468 OP t1_ixpouh4 wrote

The program is running a radar simulation and signal processing algo which runs many loops to generate an ROC graph to check efficiency of radar detection method. The base code of simulation and detection takes 30s to run and there are multiple for loops around it to generate the data points for a graph with axises of probability of detection, probability of false alarm and Signal to noise ratio varying. This means 3 for loops, each within each other, one with 25 repetitions, one with 30 and one with 10. This sums the time to 42 hours.

1

a4mula t1_ixpoeud wrote

Have you stopped to consider that perhaps there's an alternative approach to more effective algorithms?

Unless you're doing something along the lines of SQL calls to the world's largest async database, your code probably shouldn't require 42 hours to complete.

Not that there isn't code like that. But those aren't being run on either local pcs or colab.

Can you explain in two sentences or less what the gist of this program is?

3

pdpi t1_ixpnt1z wrote

Imagine I show you a box of chocolates. I ask you “what do you think is inside the box?”, and presumably you answer “chocolate”. I open the box, and show you that I’ve replaced the chocolates with marbles. Now, your friend comes inside the room, and I ask you “what does your friend think is inside the box?”

Young kids will say “marbles”, because they know there’s marbles inside. Older kids will answer “chocolates” because they understand that their friend sees a box of chocolates and has no way of knowing it’s actually filled with marbles. This is called a “theory of mind” — you have a mental model (“theory”) for how people have separate minds with separate knowledge.

One of the difficulties that come with autism is precisely around developing that theory of mind.

8

Phage0070 t1_ixpmyjb wrote

Your submission has been removed for the following reason(s):

Loaded questions, or ones based on a false premise, are not allowed on ELI5 (Rule 6).

If you would like this removal reviewed, please read the detailed rules first. If you believe this was removed erroneously, please use this form first. If you believe this was removed erroneously, please use this form and we will review your submission.

1