 What should be live? I'm not able to this trimming to LinkedIn as well Yes Yeah, the worst platform to stream on is LinkedIn Can't see this streaming stream somewhere on to LinkedIn and streaming in to U.S is Central the same Yeah, this will be doesn't work and like to a good live Like a minute or so started yes yet Connecting to right seem to be doing something right so we are live on LinkedIn as well Yeah, LinkedIn is the worst platform to live stream on What is some music that would not be copyrighted? Because we made the musical instrument if you make the instrument Music should be yours in theory. I don't know is someone having copyright to notes musical It's called note Notation so hello hello start in a sec. This this is another tool that will eventually appear on That way on body chaos.com. It's actually there already so you can try it out so on body chaos.com slash gesture groove, but it haven't been released properly. Oops was there test Or it that was a test for it Yes, 30 FPS a YouTube Twitch and LinkedIn as well, so that it should be working. Okay And this one quickly covered it already so many times. We had a different version for it But I like this one better the new version meant to also play a different number of notes depending on how many extended fingers you show but Actually like this one better. It will do volume up and down Well, it should be very intuitive and we'll do short notes if you depending on the distance between the thumb and the index finger finger and you have two scales for the Oops, touch the microphone. I'll edit it out in the video. I have to remember They have two scales for the two more annoying than that And it's all in JavaScript, so you can put them together. This might be too loud Keep your hands low. So it's good for exercising when you forget to move at your desk Could be a reminder to exercise. So I'll mute this and again, this is all working in JavaScript so it should all be available on the front a On the web page. So what is not recording anything? Yeah, probably have to restart page But then my camera will disappear. So I'm using it. Yeah, so now I muted it so you shouldn't hear any Any noise, but I'm using the camera of it as well And yeah, if we if anyone wants music, we can Turn it back on Developing in a second Doing the fuzzy logic stuff for the last couple of streams for a week or so But we might just take a different approach and combine a few few of those things together So now if you remember We had this game That will show ECG waveforms and you have to click on on it When the ECG is abnormal will give you a hit When the ECG is normal as such and you click on it it will give you a false alarm So you detected a false false detected then abnormal e.g. Now will should give me a correct rejection This is another normal. Yes. Give me now correct rejection if I do not click on it If I do click on it, it gives me a false alarm because that's a false detection. It was normally ECG, but We clicked on it Misses yeah, and when we had an abnormal ECG like this and we didn't click on it So we should have another miss and we'll give you an overall score It should be another hit and so on so forth as you can see videos from earlier with I can Well, I'm biased because I made it, but I can reach a score about 1000 or so Have to double check And Essentially for a very long time keeping it with no false alarms or misses and Then what we want to try out So as you Know just open this in the new tab. We have this fuzzy logic in neural network We want those to play the game essentially what we want to do is have some sort of algorithm that is playing the game by itself just by looking at at At the signal a potentially no, it won't be an image you will feel the actual that points so time series data into a Fuzzy logic or neural network algorithm or it to be able to essentially play the game itself and Be able to detect if the in this case if the ECG is abnormal or not That's what we would that's a hard one to detect because it didn't have that little notch after the peak And I missed that one Yeah, it's an abnormal one as well. So it's essentially Yeah, I want to train an algorithm fuzzy logic or neural network to play the game essentially be And gamified cardiologist that detects the abnormal ECG So how shall we go about it? We will use Basically, we have to do it for us I just Just checking the chat. So if you have anything Any questions about body kills that go more anything else? Please do pop them in the chat. Whatever You watching this from so we have it's quickly They go for it So that's the whole close All quickly so we have a fuzzy logic Instead of fuzzy logic because that should be easy. It's like an explainer should be like an explainable AI thing We have this main JavaScript a main thing about it is that We should have those I Don't see it why We should have those regions. So we're looking at the certain we're extracting certain A parameters certain features from the signal. I can't picture the frequency In this case, we could go for the number number of peaks up and down peaks. That would be a good one Should be highly successful. So we can do a I'm sure frequency and the number of A peaks and that one can be split into Up and down as well GP but what I'm looking for in this code Fetching a G that are normalizing it displaying Artifact risk. Oh This is a okay. So this one has a Python code as well, right? So it does have a back-end Yeah, ideally Yeah, we'll ask a chpd or if you have any ideas about it, please do let me know but we essentially want to Do as much as possible in the front end So we don't have a load my Server, but if necessary, yeah, we happy to to do back-end calculations as well like in this case where Yeah, all the calculations are made the Back end using Python So you have this membership function. So I'm scrolling through this thing too much, but I'm looking for a specific Yeah, so I'm looking for this membership function. So it's essentially for every For every feature a This is assuming normalize. That's what was the problem. Why things didn't work in the previous live streams is That we weren't normalizing properly, but essentially this means that you will have the number of Parameters features that we're extracting from the signal in this case amplitude and frequency and then we split it into three ranges low, medium, and high and then we decide for the output in What case The output which is indicating the likelihood of an artifact in that case was the e.g But doesn't matter can be easy G as well in which case it's low medium and high as well and you have those a fuzzy rules that essentially say if the option frequencies low the artifact well, it says risk, but it really should be Artifact the probability is low if the amplitude is medium frequencies medium the artifact probabilities medium and by the same a Logic if amplitude is high frequencies hide the artifact the probabilities high as well So obviously like a simplistic thing that actually didn't work because The output of an option frequency was not properly normalized between zero and one so we could ever fix this which Could be nice Or start from scratch. Let me know what you think. What do you think? What do you think we should do? Start from scratch or continue fixing Stuff so let me know in the comments wherever you're watching this from Just checking the chat. There's nothing to chat so we can continue So close that for a second. So what about a set if we starting from scratch way? We also want to include an option to do the same using a neural neural neural network a algorithm a Fuzzy logic and we could apply it apply it onto this is a G game so that's that prompting Because I have this what is that limit of 40 messages per three hours Hopefully one reach So we are live streaming And it's a development session We would like to make a flask application preferably most of the Development will be in JavaScript and only if necessary we do things in the back and We would like to combine a few things on by chaos.com so Currently fuzzy logic and neural net network tools do not work We would like to do something from scratch We would like to combine them with the ECG game So essentially the algorithms playing the game themselves trying to detect abnormal ECG a waveform button Probably looking at amplitude frequency and the number of positive and negative peaks We will start with the fuzzy logic algorithm first and I'll provide you with the code that we currently have Alternatively you could just Generate prompts for me to use in GitHub co-pilot co-pilot what That's unfortunate this happened. I Am locked in and everything did I not pay? Oh Otherwise we just use a github co-pilot. Let's use a github co-pilot straight away So we don't waste time Precious time always trying keep trying to use this workspace feature that meant to be looking at my At other files as well that never worked Collecting works workspace structure double check what happened to github co-pilot Yeah, and I was get this array buffer location fail pretty sure same videos of people using it successfully on Windows so it must be not working on Linux Which is a shame that we have to deal with it Just deal with it Let's check Okay, so let's try the same prompt, but then we need to select a Code we'll try it anyway Yes, it's using Where currently have the cursor it's giving me a boilerplate a template for a flask application That's okay Yeah, I'll start from the code For the ECG game Because yeah, this one is giving me generic generic stuff Close the chest your group. Let's close them all from now And we need a ECG game was called Cardio quest. Yeah, it's like silly names That I give stuff and then I forget And what it's actually called Yes, we have card your quest. Yeah, a lot To it which Python do we use? Do some bit of a messy project look into Index HTML we're using To Javascripts They should be Right, I don't know why they're not in a sub folder, but okay You have the game logic and we have the Right, we have the waveforms those are the waveforms and what else do we have? And we have the Python this one's having a lint lint error It got locked Locked out That's weird Sounds like we'll have to be using a GitHub co-pilot for this session. Okay. I'm locked in now. Hey, where was the prompt? This was the prompt Yeah, so the change of tea is getting more better Responses generally. Yeah, it's great now Developing a flask application to integrate fuzzy logic and neural network tools with an ECG game is an exciting project Since you're focusing on Javascript for front-end development, you like to use flask as a back-end API server The idea of algorithms playing the game analyzing ECG waveforms based on amplitude frequency and peak counts is fascinating For the fuzzy logic part you need to define rules to interpret ECG data This can involve setting thresholds for amplitude frequency and peak count to classify the waveform Yeah, once you provide the current code we can start refining or building upon it as For GitHub co-pilot, I can certainly help generate prompts These prompts can guide co-pilot to generate specific code snippets or functionalities you need For instance, if you need a function to analyze ECG waveforms A prompt could be write a Javascript function to analyze an ECG waveform Taking an array of data points as input and returning an object with amplitude frequency and peak count Remember integration of these components will be key Ensure that your flask back-end can efficiently handle requests from the front-end and process them through your fuzzy logic and neural network algorithms Also, consider how the game interface will display the ECG analysis results Let's start with the fuzzy logic algorithm Share the current code and we can work on generating specific prompts or refining the algorithm as needed Yeah, so we have the current code Have the game rules and everything Yeah, we'll be a quite odd Integrating all these things Yeah, the code is pretty much just Just a canvas for the game just the canvas for the game There's not much in HTML. Okay, I might be doing more prompts for a GitHub co-pilot at this stage. I can provide some images of how the game looks like Yeah, because the GitHub co-pilot doesn't have that option Yep, sure if you provide images of how the ECG game currently looks I can help you create detailed prompts for GitHub co-pilot These prompts will be designed to guide co-pilot in developing specific functionalities or UI elements for your game Please go ahead and share the images. This is what This is what the normal ECG looks like Yep, and this is an example of a abnormal That's a good starting point Based on your image of the ECG game interface here are some prompts you could use with GitHub co-pilot to enhance the game Create a JavaScript function that randomly generates ECG waveforms with predefined normal and abnormal parameters and displays them on a canvas element Develop a scoring system in JavaScript for an ECG game where points are given for correctly identifying abnormal ECG patterns and deducted for full identifications Write a JavaScript algorithm that can detect the number of peaks in an ECG waveform to differentiate between normal and abnormal patterns Implement a JavaScript function to update game statistics such as hits false alarms great rejections and misses based on the user's interactions with the ECG waveforms Remember to clarify the requirements and constraints within your prompts to get the most accurate code generation from co-pilot Understood. That's an abnormal ECG example To work with GitHub co-pilot for your project you might consider prompts like Write a JavaScript function that compares a given ECG waveform against normal and abnormal criteria and decides if the pattern is abnormal Develop a JavaScript class that represents an ECG game Including methods for scoring tracking statistics like hits false alarms and misses and rendering both normal and abnormal ECG waveforms Create a function that uses canvas to animate an ECG waveform transition from normal to abnormal to simulate real-time monitoring in the game Each prompt should be as specific as possible including parameters expected outcomes and any edge cases you want to handle This will help GitHub co-pilot generate the most useful code snippets for your project. Right. Let's quickly try Workspace again And that's about the project structure. I think I know what the problem is I think it's because we have like too many files to look Through I don't know why is it not just looking? Yeah, so it's giving me this red buff allocation error Yeah, this clear works in the same way like that button. That's okay Okay, there's a bit of a misunderstanding the current application already works current and we want to make a Different version of it which will include an algorithm that could Play the game by itself using Fuzzy logic on neural network will will focus on fuzzy logic first Yep Got it. You're aiming to automate the game using a fuzzy logic based algorithm that can analyze ECG patterns and decide which are abnormal without human input Here are some GitHub co-pilot prompts that consist in developing such a feature Design a fuzzy logic algorithm in JavaScript that can analyze ECG waveforms and identify abnormal patterns based on criteria such as amplitude variations Or regular frequencies and unusual peak counts Implement a fuzzy logic system that evaluates ECG data and makes decisions with a degree of uncertainty Allowing the game to simulate decision-making similar to that of a human expert Code a simulation loop in JavaScript where a fuzzy logic algorithm receives continuous ECG waveform data Analyzes it and autonomously makes decisions to identify abnormal patterns as part of an ECG game Make sure to set clear parameters for what constitutes a normal and an abnormal ECG within the context of your game So the fuzzy logic can be tailored accordingly Okay, let's read this quickly Just primarily after or not read this because it's too long. I know what we know what it's doing Overall question is Is there a use of a Python script? If so Explain, it's taking every time now. I'm confused. Oh, I'm Confused pilot Explain this I'm pretty sure the thing is running as a flask application. I know it because Yeah, because this would not run the Application will run if we run the biting code. Yeah, this is not running Well, that's must be because Actually using a different all then it kind of quest to see game logic The game logic pie right this one Is there a logic game logic pie is what's actually running the thing Stead run this. Okay, this is running Python itself Which is not cool. I meant to be the app app by The flask that one is not running Getting a 4044 script. Yes called again She called it Python All the Python files if they are flask applications or not. This was not Game logic is Not That's only pie Okay, this is a problem because this is the one we have deployed. It's working on the side and that work script. Yes The three of oh, okay, not modified. Why do I need to know it's not modified? It's loaded in under two seconds, which is quite a lot still. I know why I know why it's not running It will not run locally, that's why because there's a check For if we are running locally or not Yeah, it's always this technical problems that prevent us from progressing And it's quite Unfortunate actually, I don't know. Why is it? Having trouble with the rest of the files We can ask about it and one function that is not defined at all Since I potentially this is not what we have deployed Yeah, we might not have much time to fix it today I'll do it in our time. I'm just thinking git potentially old and earlier version of this thing and potentially that's why I'm not seeing the new code Check it out. We had some problem with git. Yeah, we generally don't mind committing on the whole project It just will be very messy There are some git ignore Functions that we use a files that we defined Hey, that's okay Then some of the commits do not work because we have some issues with the logging credentials, so we're really But looking at this Changes It's an untracked file. I actually like to remove this one. Yeah, this is all the Git commands They're quite Confusing quickly check quickly check it and then yes, okay, you quest updated two weeks ago a Cardio quest app to say this generate You wait from segment. Oh, it's imported from static Okay, that's commented Okay, how do I what's blame? Can you go to that point? Yeah, I don't know why that is commented out. It's actually wrong Yeah, that's commented again, but Then we're actually trying to use it so That doesn't make sense. I'll blame git Was stuffing it up. It's also all that we Yeah, we have as I said, we haven't kindly deployed there, but it's not working. Yeah, might do another stream today So to join in and I'll see you in a bit