Hey everyone, Drew with GeoWarm and I am back to talk to you about the 2GIG edge and how to learn the 2GIG-FT6E-345 in as a freeze detection device. So at this at this point what it's going to be doing is the temperature will monitor for less than 41 degrees for three minutes and at that point if it does reach that time limit it'll send a transmission to the central station indicating of a low-temper report. So this is the device it is even though it's called a flood detector, it does heat, cold and flood. So at this point let's learn it in. Go ahead and hit the gear in the bottom right-hand corner and then enter your installer code. Mine is 1561. Scroll down to where it says installer toolbox. Once you're in installer toolbox hit panel programming. Once you're in panel programming hit wireless zones. Now you would find the first available wireless zone that you have. In my case this is a blank panel. So I am going to be using zone one. So we will go ahead and highlight equipment code. The equipment code on this one should be 2065 to match its its actual equipment type which is the flood detector. So once you find 2065 you just choose that. Let's get that found here. E-Series flood sensor. Hit the down arrow. Now it's going to ask for the sensor type. I'm going to set this as a 24-hour auxiliary to monitor for the temperature. Hit the down arrow. It's going to ask for the equipment type. At this point we are monitoring for a freeze. So choose the freeze. Hit the down arrow. Now this is where we learn in the serial number. There's three gold probes on the bottom of this device. Go ahead and hit learn and then press those three probes down and you should get the TX ID into the panel. Hit accept. Make sure that serial number sticks. Hit the down arrow. And then we're going to choose the loop number. Now for a freeze detection device you're going to choose loop three. Once that's been chose go ahead and press the down arrow. Edit voice descriptor. So we're going to go ahead and call this basement. Freeze. Okay, once those entries have been made you can name it whatever you want. I named it basement freeze, but whatever you want to call it. Press the down arrow. We don't want a sensor chime on this. This isn't one of the sensors that you would really need a chime for. Hit the down arrow. This is where you would partition it. In my case I'm only using one partition. So S1 would be the choice for me. Hit the down arrow. Transmission delay. Now I don't I don't like transmission delays because it adds another delay on top of whatever delay is already programmed in there. So I always disable that. So I'll choose disable and then press the down arrow. Sensor reports. This is telling this device that it needs to report back to the central station in the event of anything happening. Hit the down arrow. Sensor supervised. This means that the system itself is looking for this device. Constantly checking it in and if something's wrong the system will know about it immediately. So I always leave that enabled. Once this device has been programmed like that you hit the back arrow all the way out of programming and it is learned in and ready for mounting. If you guys have any questions or any comments, please leave them below. Other than that take care and have a great day. Make sure to subscribe to our YouTube page and click the show more tab underneath the video where you can view valuable links pertaining to this product, similar how-to videos and our low-cost no-contract alarm monitoring services.


Hey, man, so keep your place there in Luke chapter 2. Merry Christmas, everybody. So this morning, we're going to look at the true meaning of Christmas. I'm going to explain to you what that is and what it isn't from Luke chapter 2 this evening. So you're going to keep your place there. And we're going to look at that in just a few minutes. But the true meaning of Christmas, I'm pretty sure that most people don't know what the true meaning of Christmas is this morning. I was looking at the news this morning after finishing writing up my morning sermon here. And I was looking at the, and I saw a news article that was talking about Christmas movies and what people are debating about what Christmas movies are, meaning movies that have been made that capture the meaning of Christmas. And the big debate from this article was whether or not Die Hard was a Christmas movie. All right? And this was, of course, an action movie with just violence and killing and swearing from the 80s. And people in the article were like, of course, it's a Christmas movie because it captures the true meaning of Christmas. And I'm just like, what has happened in this country? So I'm going to tell you from Luke chapter 2 from the Bible this morning what the true meaning of Christmas actually is this morning. And it's not anything that Hollywood has produced. I'll just give you that tip up front. Look down at Luke chapter 2 and look at verse number eight is where we'll start this morning. And there was in the same country shepherds abiding in the field keeping watch over their flock by night. And lo, an angel of the Lord came upon them and the glory of the Lord shone round about them and they were sore afraid. So I want to just capture what the angel of the Lord talks about here and tells these shepherds because basically the angel of the Lord gives the meaning of Christmas to us here in these next few verses. So the angel said unto them, fear not for behold, I bring you good tidings of great joy which shall be to all people. So the angel is saying I've got good news for you and he's about to tell them what the meaning of that good news is for unto you is born this day in the city of David a savior which is Christ the Lord. And this shall be a sign unto you. He shall find the babe wrapped in swaddling clothes lying in a manger. And suddenly there was an angel with a multitude of the heavenly hosts praising God and saying. So the angel first of all tells these shepherds that this child has been born. He tells them where this child is gonna be. And then he says this child is a savior. Okay, now look at verse number 14 which is really gonna be our focus this morning. He says glory to God. This is what the angels, the heavenly host and these angels are saying. They're basically telling you what the meaning of Christmas is in verse number 14. It says glory to God in the highest and on earth peace, goodwill towards men. So the title of the sermon this morning is peace on earth. That's the title of the sermon this morning. I heard somebody quote this last week some another media figure that doesn't understand what Christmas is talking about. And they said this, they said the overwhelming message of the New Testament is peace on earth. And I'm just like, okay, you know, this is somebody who clearly doesn't understand the Bible. But you'll notice in verse number 14 the heavenly host is saying glory to God in the highest and on earth peace, goodwill towards men. They did not say peace on earth. They did not say that peace on earth is what is happening here. Turn to Matthew chapter 10. So what does verse number 14 mean? What is verse number 14 that these angels are singing, saying and on earth peace, goodwill towards men, what are we talking about? You know, look, if it meant peace on earth in verse number 14, this must be a false Bible prophecy. Because since this time of Jesus being born, literally hundreds of millions of people have been killed through war and all kinds of other conflicts in the world. So clearly that Jesus did not actually bring peace on earth. If that was the goal, it failed. But that is not the goal. As a matter of fact, the quote that you see on Christmas ornaments, I mean you see this on decorations, on Christmas race, peace on earth. It's all over, it's quite a tagline. But the term peace on earth is actually in the Bible a couple times and Jesus is actually talking about it. Look at Matthew chapter 10, but he says something very different. So we need to reconcile Matthew chapter 10 and another verse that I'm gonna read for you with. Luke chapter 2 in verse number 14. Look at Matthew chapter 10 verse 32. Whosoever there shall confess me before men, him will I confess before my father which is in heaven. But whosoever shall deny me before men, him will I also deny before my father which is in heaven. This is Jesus talking of course. Verse 34, I think not that I have come to send peace on earth. I came not to send peace but a sword. You see what Jesus says here? Jesus said he did not come to bring peace on earth. Look at verse number 35. For I've come to set a man at variance against his father and daughter against her mother and daughter-in-law against her mother-in-law and a man's foes shall be they of his own household. He that loveth father or mother more than me is not worthy of me. He that loveth son or daughter more than me is not worthy of me.  This is exactly what Jesus is talking about. He's saying if you love those things more than me, you're not for me. And he takeeth not his cross and followeth after me is not worthy of me. He that findeth his life shall lose it and he that loveth his life for my sake shall find it. So the meaning of Christmas, look, I mean, this is what, you know, people will tell you out in the world today is oh, the meaning of Christmas is family and that the exact, that's the exact opposite of what Jesus is saying. Jesus is saying that, you know, I come to not bring, I didn't come to bring peace on earth, I could set you at odds with your family. I could set you at odds with the people in your own. That's the kind, that's the complete, that's the completeness of the division that I bring is what Jesus is saying. Is that it could divide even the strongest family bonds that you have in your life is what Jesus is saying. I did not come to bring peace on earth. It's a super popular phrase though. And it's what people like to say Christmas is all about. Oh, what's Christmas all about? Peace on earth. Let's have a Christmas ornament that says peace on earth and I'll hang that in my living room and it's just, it's a nice thought. And people like it, but the only time that exact, turn to Luke chapter 12. The only time that exact phrase is, the only times it's used in the Bible is when Jesus is literally saying this is not what I came for. This is the opposite of what I came for. Look at verse number 51 of Luke chapter 12. Look at verse number 51 of Luke chapter 12. Again, Jesus says, suppose ye that I am calm to give peace on earth. So I guess the exact opposite of the New Testament is peace on earth is what Jesus is saying. So anybody that says well, the overwhelming message of the New Testament is peace on earth, they have it exactly wrong. Jesus is saying, suppose ye that I am calm to give peace on earth, I tell you nay, but rather division. For from henceforth, there shall be five in one house divided three against two, two against three. Again, he goes into just how, and the reason he uses the household and the division there is because Jesus says that it's no bond should be stronger than the bond that you have with him. So if that division is necessary, then it must be necessary. I mean, we're coming up here against 2024, which is unfortunately a presidential election season. And you're gonna hear a lot of talk like this, but here's a speech that you won't hear. Here's a speech that you won't hear in the coming year, in the coming months. We need more division today. We need to be more divided as a nation. We need to divide. You'll never hear that today. But that's exactly what Jesus is saying. Jesus is saying, I came to divide. Because the truth is that if you are with Jesus in Luke chapter 12 and Matthew chapter 10 and other places where Jesus talks, you know, God says you're either for me or you're against me. There's no gray in the middle area with God. He's saying if you're gonna be for me, you need to be divided from the godless. You need to be divided from the LGBT whatever else it is. You need to be divided from the secular humanists. You need to be divided from the public school system, public fool system. You need to be divided from all these corrupt worldly institutions that want to destroy you and your relationship with the Lord. You need to divide.  So what does Luke chapter two mean then? So what does Luke chapter two mean when it says, you know, peace on earth and good will, it doesn't say peace on earth. It says, you know, I bring you peace and good will towards men. Look at verse number, you actually go to Psalm chapter 40. So let's look at what Luke chapter two actually means. We know it doesn't mean peace on the earth amongst men. Look at verse number four of Luke chapter, Psalm chapter 40. Psalm right in the middle of your Bible, you'll find the book of Psalm. Look at Psalm chapter 40 and look at verse number four. This is a great set of verses right here in the Bible. Look at Psalm 40 in verse number four. The Bible says, blessed is the man that maketh the Lord his trust. There's a really nice picture of salvation in the Old Testament right there. You say, oh, is salvation different in the Old Testament? Yeah, it's the same as the New Testament. Trust in the Lord. That's salvation right there. So blessed is the man that maketh the Lord his trust. What happens when you make the Lord your trust? You are saved. And respect it not the proud, nor such as turn aside to lies. Now look at verse number five. The Bible says, many a Lord my God are thy wonderful works which thou has done. So we got a TH word here in the Bible, which is a singular subject. The U's and the Y's are plural. And the TH's, the these and the thou's and the thies are singular. So he is saying, many a Lord my God are thy wonderful works. So he is talking about the works of God here. And look at the rest of the verse. And thy thoughts. So he's talking about God's works and God's thoughts. What God thinks about and what God does. Now look at this. Which are two, what? U's word. What he is saying is that there's so many, let's read the rest of it, it says they cannot be reckoned up in order under thee. If I would declare and speak of them there, more than can be numbered. He's saying the thoughts and the works of God that are towards us cannot be numbered. Meaning what God does and what God thinks about is just towards us. It's like all the good things that God is pouring upon us cannot be numbered. But the point is it is from God, from God's mind, from God's works towards us. Now go back to Luke chapter two and see if we can make a little bit more sense of Luke chapter two in verse number 14. And I'll show you just how perfectly the Bible fits together here with Psalm chapter 40 and verse number five. So a good footnote in your Bible is Luke chapter two, verse 14, Psalm chapter 40 in verse number five. Because look at verse 14 now, let's read it again. Glory to God in the highest and on earth, peace, goodwill, toward men. Exactly what Psalm chapter 40 is saying. So God is the subject of verse 14. It's talking about glory to God and on earth, peace, goodwill, towards men. So it's talking about how God is giving something towards us. What is he giving? He's giving peace towards us and he's giving goodwill towards us through what? Through Jesus Christ, the birth of the Savior. So what we are seeing here in Luke chapter two in verse number 14 is that God's works and thoughts are towards us through Jesus and through Jesus we have peace with who? With God. Not with our brother, not with, look it'd be good to have peace with your brother but that is not what Luke chapter two in verse number 14 is talking about. It's talking about peace with God and God initiated that peace through the entire chapter of what Luke chapter two is about through the birth of a Savior of Jesus Christ. Turn to John chapter 16. This peace in Luke chapter two is talking about peace from God toward men, not peace amongst men. I'm not saying peace amongst men would be a bad thing. I'm saying that is not what Luke chapter two in verse number 14 is talking about. So when people say peace on earth and all these great thoughts, it's not what Luke chapter, that's not what Christmas is about. Christmas is about God's peace, his offering of peace towards us. And look, the reason that you say, well, you know, pastor, you're being kind of, you know, critical here, no, no, no. We're talking about the most important type of peace because peace amongst men without peace with God is worthless. Look at verse number, look at John chapter 16, look at verse 33. We're talking about the most important peace that an individual could have. That is the meaning of Christmas. Look at John chapter 16 verse 33. It says, these things have I spoken unto you, look at this, that in me ye might have peace in the world. So he's saying, how many times has God have to clarify it for us here? I'm not talking about peace in the world. He literally contrasts it with the next words saying, in the world ye shall have tribulation but be of good cheer, I have overcome the world. How did he do that? Through the birth of the Savior. He's saying, in me you have peace, in the world you're gonna have trouble. In the world you're gonna have persecution. Many times because of that peace that I offered you and you accepted. Turn to John chapter 14, just a couple verses back. So he says that in me, again, showing that the peace, the important peace is the peace in the Lord, the peace with God. Look at verse number 27 of John chapter 14.  Not as though, again, he makes sure, he's clarifying every single time so we don't misunderstand this.   Let not your heart be troubled, neither let it be afraid. Notice how he says again, in John 16, he said that in me you might have peace and again in John 14 he says my peace. He's talking about the most important peace and he clarifies in both cases this is not talking about peace within the world in both cases. Turn to Daniel chapter nine. You say, why preach this? Because it is a huge difference and the Bible actually tells us that somebody is going to come along that is going to promise peace on earth.  Look at Daniel chapter nine in verse number 27. So it's important that we understand the difference between peace with God and peace in the world, peace on earth. Peace on earth will be promised. Look at verse number 27. And you know what? To everyone that thinks the meaning of Christmas is peace on earth, that'll sound pretty good. If somebody can actually make a deal and stop wars and make deals and give what looks like peace on earth, that sounds pretty good. And people will be like, wait, that's a great thing. But the most important piece that God is talking about, sending Jesus is peace with him. And peace on earth will be promised. And look at verse 27, it says, and he shall confirm the covenant with many for one week. And in the midst of the week, he shall cause the sacrifice and oblation to cease. And for the over spreading of abominations, he shall make it desolate, even unto the consummation and that determined shall be poured upon the desolate. This is the antichrist that is gonna come and forge some sort of peace. But what he's gonna bring is listed in Revelation chapter six and verse number eight. He's gonna bring war.  Look at verse eight of Revelation chapter six, just real quickly. Let's look at a few verses here, turn to Revelation chapter six. So this is why we need to understand the difference between peace on earth and peace that is with God. That is the peace that we were delivered when Jesus Christ was born. Look at Revelation chapter six and verse number eight. This is the peace that the antichrist will promise and what he will actually deliver. It says, So the antichrist will come and he will promise peace on earth. There will be terrible wars. Christians will be hunted and killed. He will bring the exact opposite. Turn to Isaiah chapter 11. Peace on earth will be achieved by the way. Peace on earth will be achieved, but it will only be achieved, as the Bible tells us, by the same person that gave us peace with God. Look at Isaiah chapter 11 and look at verse number six. This is why Bible prophecy is important. So we can know, you say, what's the proper perspective? What good is it to watch? What good is it to watch and pray as we talked about last week? If you watch and pray, you will know who's lying to you. If you watch and pray, you will know who the antichrist is. You will know who a antichrist is when people are promising false things. Look at Isaiah chapter 11 and look at verse number six, because Jesus is gonna come back and rule and reign one day. He's gonna rule and reign for a thousand years and he's gonna show us how peace on earth works. It's not like it was kept a secret by the way. In Isaiah chapter 11, it tells us what that's gonna look like, but it also tells us how he's going to achieve it, which by the way, we could do at any time. We just won't. We just won't listen to the word of God. Look at verse number six of Isaiah chapter 11. The wolf also shall dwell with the lamb and the leopard shall lie down with the kid. And the calf and the young lion and the fatling together and a little child shall lead them, talking about the Messiah. And a cow and the bear shall feed, their young ones shall lie down together and the lion shall eat straw like an ox. Even the animals are going to be at peace with one another. And the suckling child shall play on the whole of the asp and the weaned child shall put his hand on the cockatrice's den. And look at verse number nine. This is your peace on earth right here. This is a prophecy of actual peace on earth. They shall not hurt nor destroy in my holy mountain for the earth shall be full of the knowledge of the Lord as the waters cover the sea. So we're seeing here in Isaiah chapter 11 a prophecy of the millennial reign of Jesus Christ, but we're also seeing how Jesus Christ is gonna achieve that. This is why, and man just won't do this. Man just won't do it. Look, nations have done it. The nation of Israel did it for a period of time. You know, and when nations do follow the Lord, they do have peace, but the entire world has never done this together. But Jesus is going to lead this. So the point of the sermon is this. The true meaning of Christmas in Luke chapter two is not family. It's not harmony. It's not peace on earth. It's God's peace given to us through Jesus. That is the meaning of Christmas. And there is only one path. This is where the division comes in. There's only one path to peace with God. Now that's a divisive statement right there. There is no path to peace with God for the Muslim. There is no path to peace with God for the Jehovah's Witness or the Mormon or the Jew or the Catholic or any of these false religions. There is only peace with God offered by what? By trust in the Lord Jesus Christ. That is the only way. And that divides us from a lot of people. We say, you know, well, is somebody promising peace on earth? Isn't that, I mean, that sure sounds good. Isn't that a good thing? Turn to James chapter four. I mean, that's why people say it because it sounds good. Turn to James chapter four. You say, pastor, why aren't you for peace on earth? First of all, I am. I am, I am, but I believe the Bible. And I know that peace on earth will only come through knowledge of the Lord. And that is going to take division and not convergence. See, we're being told today that everyone needs to become the same. Everyone needs to put aside their differences. Everyone needs to become diverse and converge together. Everything's converging. What we need is division, though, because that is what the knowledge of the Lord says. And I know that there will never be peace on earth as long as these things exist. Look at verse number one of James chapter four. It says, from whence come wars and fighting's among you? Come they not, hence, even of your lust that war in your members? He lust and you have not. He kill and he desire to have. That's covetousness right there. When you are wanting something that is not yours and you desire to have and cannot obtain, you fight in war and yet you have not because he asks not. See, as long as men lust, as long as men lust, as long as men want things that aren't theirs, there will always be war. It's not God's fault. It's just as long as men desire what other men have. There will always be war. I mean, it's very simple. War comes from some person, some leader, some group, some alliance, whatever it is, just saying, hey, I want what that guy has. Hey, I want what those folks have. And it could be anything. It could be, I mean, of course it could be land. It could be resources. It could be influence. It could be power. But as long as there is a desire in a single man's heart to covet what somebody else has, even somebody that gets upset when somebody else is successful, you think covetousness is not a big deal? Covetousness is a huge deal. It is the cause of all war is because men covet what other men have. I mean, true peace, true peace, it could be achieved. The Bible says it's not gonna be achieved. But in theory, it could be achieved with exactly the way Jesus is going to achieve it. Through what? If we just had a leader or we had a group, if we would have to have all nations have leaders with a knowledge of the Lord or have one worldly king with knowledge of the Lord. And they would have to push division, not compromise. They would have to push dividing from evil. Look, every single person, this is the mechanics of it. Every single person in the world doesn't have to be good and want the knowledge of the Lord for there to be peace on earth. Just the people in charge. Why do you think Jesus is gonna need a rod of iron? Jesus is gonna need a rod of iron because there's gonna be certain people that don't wanna go along with the knowledge of the Lord. Rod of iron, whack. As long as the people in charge had the knowledge of the Lord, we could have peace on earth. But the Bible clearly says that just not gonna happen until Jesus Christ comes back and shows us. Yeah, I think that leaders today, they just don't want the knowledge of the Lord, but even if they did, they would lack the faith to say, you know what, we need division and not convergence. They would lack the faith, but Jesus is gonna, that's, this is my opinion, but I believe that's the point of the millennial reign. I believe that is the point, is for finally Jesus after this thing has been going on for thousands of years and men fall on their face again and again and again and continually kill tens of millions, hundreds of millions, yay, billions of people eventually at the end that Jesus is gonna come back and say, look, it didn't have to be this way. You could have just done it the way I told you, like this. And he's gonna rule with the knowledge of the Lord. He is the knowledge of the Lord.  Turn to John chapter three. You say, I want peace though. I want peace. Well, the only piece available now is the peace with God. Turn to John chapter three. And look at verse number 36. And this is the only piece that, you know, we should be pushing today. I mean, that this is the only piece we should know that this is the only piece that is available to the individual today. That any individual at any time can have this peace. Look, it's not up to any individual whether they're stuck in some country that's at war because their leaders are wicked, don't want to have the knowledge of the Lord. Their leaders are lusting against each other and signing up thousands of them to kill each other. I mean, that's the irony of it. The irony of it is, is that as you have these lustful, covetous leaders and organizations, they take all the individuals that normally, I mean, would not be rolling around on the ground fighting. Two individuals that probably, you know what they probably want to do? They probably want to raise a family, have children, love their wife. This guy probably wants to have children, love his wife, you know, have a family. But these wicked leaders can take these two individuals and make them kill each other. To the tune of millions of people. And it's just a story that keeps repeating, repeating, repeating. But the true peace, the best peace is available to each of those individuals. To any individual. Look at verse number 36, it says, he that believeth on the sun, hath everlasting life. And he that believeth not the sun, shall not see life, but the wrath of God abideth on him. Believe on the sun and you have the peace of God, which is the opposite of the wrath of God on you. Turn to Philippians chapter four. And the Bible tells us that this peace, look, you can't control what all wicked leaders do. But this peace that we can control, this peace that any individual can have is better. Is better than any peace that could exist on earth between men. Look at verse number four of Philippians chapter four. Rejoice in the Lord always. And again, I say rejoice. Notice it's not saying rejoice in the Lord when things are going pretty good. It says rejoice in the Lord always. That's talking about during the good times and during the bad times. That's talking about, maybe you're being persecuted. Maybe you're having health problems. Maybe you're having, maybe the church flooded or whatever. This saying rejoice in the Lord, which is such a tiny, tiny thing by the way. It's a nothing burger compared to things that could actually go wrong. It's saying rejoice in the Lord always. Why? Because you have this peace. Look at verse number five. Let your moderation be known to all men. The Lord is at hand. Be careful for nothing, but in everything by prayer and supplication. With thanksgiving, let your requests be made known unto God. And look at this. And the peace of what? Is that say peace on earth? It's not the peace of God. The peace of God, which passeth all understanding, shall keep your hearts and minds through Christ Jesus. No matter this.  And thank God, we're so removed from all of that. But whether you're in a country that is war-torn or not, this is the peace that is available to every person. Now, the peace of God is available to you. And it is a peace that passes all the other forms of peace. It is a peace that will keep you no matter what is going on in your life, no matter what happens on earth. This peace is the only piece that really matters. And it's an eternal peace. It's a peace that once you have it by believing on this Messiah that God sent us in Luke chapter two, once you have it, it is sealed. You will always have that everlasting peace with God. Look, turn to Hebrews chapter 10. The only person that can even damage your peaceful relationship with God is you, by the way. God will never take away the eternal peace from you. That's the peace that passeth all understanding. But once you're saved, only you can diminish that peace that is on you. Only you can turn away from God and walk away from your Christian life.  Look at Hebrews chapter 10. No other person, that's the beautiful thing about this peace. No other person could diminish that peace except you. Look at verse 26 of Hebrews chapter 10. It says, but if we sin willfully after we've received the knowledge of the truth, there remaineth no more sacrifice for sins, but a certain fearful looking for judgment and fiery indignation which shall devour the adversaries. This is just talking about how, go back to James chapter four. This is just talking about how you can sin willfully and you can diminish the effects of God's eternal peace upon your life on this earth and God will punish you on this earth. God will chastise you on this earth. Look at James chapter four and verse number four. James chapter four and verse number four. Just through friendship with the world that could never offer us the type of peace that God has already freely given us. Look at verse number four of James four. It says, he adulterers and adulteresses. You know not that friendship of the world is enmity with God? Whosoever there will be a friend of the world is the enemy of God.  Only you can take away the effects of God's peace on your life. And look, you'll never be able to take away the ultimate peace of your salvation, God's ultimate peace towards you. But you know you can cause these earthly skirmishes. Just look at it that way. You can cause all these earthly skirmishes and rebel against him. Why would you ever want to do that? And you can rebel against him by simply not dividing from the forces that are against him. It is what the Bible is saying. Not separating from the world that hates him. Not separating from the sin. Think about this. Not separating from the sin. You can diminish God's peace on your life by not separating from the sin that wants to destroy you. What sense does that make?  And you side with the sin instead of the Lord. You side with the drugs and the alcohol and all these things that they may give you pleasure for a season, the fornication. Basically all these lusts of the flesh that are against you personally. That are against your family. That are against your children.  Look, you could be a saved believer and turn your life into a mess that doesn't look like it has a lot of peace in it.  All these lusts of the flesh and you have just put away the knowledge of the Lord from your life. They aren't good for you anyway. But it destroys your relationship with the God that gave you the ultimate peace. Those pleasures of sin for a season, they'll destroy you in the long run.  And that's the one thing that people never seem to think about. They always seem to think, you know what I can just go off into this sin for a while but they never think about the long lasting effects and the long lasting damage that it does to people around them the next generation of their family. So this day, Christmas, Luke chapter two is the Christmas story. It's talking about the peace of God, not peace on earth. And it is the peace of God that passes all understanding because it is the way that God has provided. Luke chapter two is the way that God has provided for each individual person regardless of their circumstances, regardless of who their parents were to pass from this place of God's wrath upon them to God's peace upon them. Regardless of the works or beliefs or the thoughts of any other man. This is why and I've said this before but Christianity, true Christianity, the true gospel is the only thing that is number one fair and is number two that makes any sense at all. If you just think about it, if you just think about it, this idea that regardless of your sins, this idea that regardless of your sins, God sent his son. It was his works and his thoughts, remember. He sent his son to save you.  And all you have to do is take your belief and your trust, not what your parents believed, not what anybody else told you what you believe as an individual. It is the only thing that is completely yours is what you believe and what you trust in. It's completely yours. And no matter how powerful someone is in your life, no matter how powerful some government or some king is upon me, no one could ever make me or you believe anything. That's mine. And that I have full responsibility over. They could beat me and punish me and make me sign things, make me say things, but they could never make me believe something. This is why the gospel is the only thing that makes sense. Because it's yours. And if you take that trust and you put it on yourself, even a little bit, in that day, this is also why everybody that goes to hell, no matter whether you think it's nice or not, deserves it because they took that belief and they believed in themselves or they believed in a false God or they believed in anything else out there besides Jesus and that was theirs. Nobody else's. Nobody else shares responsibility for that. And yet they had the total, total freedom. You say, what if I grew up in 1918 Russia? There was no freedom.  No matter what government, what time in history, it's the only thing that makes any sense. It's the only thing that is true justice.  You always, every single person that has ever lived has had that freedom.  They've had that total freedom and that's what God is telling us in Luke chapter two. They've had that total freedom to realize what God is telling them here and to put their trust in that Messiah, in that Savior or not. And look, as for peace on earth, this is why God says without faith it's impossible to please Him. It's saying without trust, you have to trust on me or you don't get the peace. Well, I trust a little bit myself and I trust on Jesus, no peace. The Bible is super clear about that. The Bible has verse after verse after verse and chapter after chapter after chapter talking about it is all faith or nothing. It can't be 1% you. Well, look, as for peace on earth, when everybody thinks that Christmas is about they must just think it's failed Christmas every single year. As for, look, we could have it if all men or even the men in charge would just embrace the knowledge of the Lord. But the Bible says that that will only happen globally when Jesus Christ comes back to rule. And I mean, define irony that it's through Jesus Christ and our individual trust in Him that we have peace with God. It will only be through Jesus Christ that this earth ever has peace on it. So I'll take the peace offered now and I'll push the peace offered now. So I'll talk to people who are wrapped up in politics and wrapped up if we could just elect this guy and we could just get this person in and we could just do this, then everything will be fine. No, no, no, I'll push the only piece that the Bible says is available to every single person right now. And it's sad that somebody would get so wrapped up in all these things of the world that they wouldn't even accept that peace that's offered right now. Oh, we can just fix all these problems. If we had knowledge of the Lord, everything would be fixed. So I'll push that peace and we're to push that peace on every single individual. It's a, hey man, you know, all this stuff, it doesn't matter. All these things that are gonna happen in 2024 or not gonna happen in 2024, they don't matter. We have this peace though. We're showing you what God has available for you. Peace with him right now. It's this peace that's better than every other peace. It's this peace that it passes all understanding. It's a peace that can't even compare to peace amongst men. It's peace with the Lord who gave you breath. Wouldn't you like that? Instead you'll choose wrath? No, the peace is here. You have to do nothing to get it. Just trust in who he sent for you. Just trust in this gift that he wants to give you. And you can have that in peace right now. There's not too much else to worry about when you think about it that way. And that is the meaning of Christmas. It's peace with God, period. And everybody has it available to them. Let's bow our heads and have a word of prayer.


Let's do some Python on hardware. All right, Python on hardware this week. In our top secret section later, I'm going to show one of the stories. So you don't have to worry about that now. This is the ISP32 programming in Circuit Python web workflow, which is super cool. So we'll go over that. Circuit Python Day is what I want to talk about. And yeah. So we have panels that we're doing, Q&A. We have Paul, who does the Circuit Python show, will be there. We have a chat with Catney, Jeff, and Dan. They'll be going over all the things that they've been up to. This is a third year in a row. Special guests for Circuit Python Day, show and tell, will be Liz, she'll be doing a show and tell. Scott will be talking about all the changes in Circuit Python 8. So we have a full calendar. I'm chatting with Catney on Friday. We have some other odds and ends that we're going to do. So it'll be a fun, exciting day. We're giving away those tablets, the hack tablets. And here's another thing that's going on, just great timing. Blue's Wireless is doing a webinar, re-imagining IoT deployments with Circuit Python. Check that out. And then we have a kind of an unending newsletter of just projects. It goes on and on. And this is all Python on hardware. And this is all stuff that you can make and build and share. And the projects are from keyboards to things in space to e-ing to absolutely everything. It's happening right now. Paul, who does the Circuit Python show, is interviewing Joshua Lowe, who does edu-blocks. And so please check that out, as well. The Circuit Python show is pretty amazing. Check out the show list. And there's probably something that you didn't know or you didn't hear or you heard about, or it's like, oh, this is cool, a block editor for Circuit Python or other Python projects that you want to make. And you're at the beginning of this really big community of people doing Python on hardware. And good work, Paul. It's one of my weekend podcasts that I like to listen to when I'm walking around. You can sign up for the newsletter. We deliver to you every single week for your daily.  Paul's in the chat. If there was a guest or anyone that you want to see on the Python on hardware, you know, it'd be cool. If we can keep this Python on hardware thing, maybe we can get Guido the creator of Python because I would love to hear, like, hey, look at this thing you started and now, like, it's a full-blown, like, operating system on a little tiny microcontroller that you can get for, like, five bucks. It's incredible. Yeah. It's amazing. So, anyways, maybe we'll make some suggestions and maybe we'll reach out to Guido at some point. That'd be kind of cool.


Moving north to Section 8A, Red Lake County Central visiting Blackduck. Early in the first set, Drake's leading. Matty Cease takes the set from Keely Brands and delivers the big spike for the kill. But the Mustangs wouldn't go away easy.  But Blackduck would answer right back. Mikayla Sparby drops in the shot between the Mustang defense. As the Drake's take the one point lead, but RLCC would score three unanswered, capped by the Ashley Longton ace for the set winner. They take set one 30-28 and RLCC ends Blackduck season three to nothing.


Live Microphone should be working while checking Monitoring the sound as well, but do let me know If my sound isn't working and jump straight into it and then do all the formalities Yes, we have this index oops HTML Cardi- uh, cardi-quest? Yeah, cardi-quest, but this is the bot, cardi-quest bot Yeah, I'll have to change this Pretty sure ChangedGPT will be doing a better job at describing What's going on, but we do need the GPT-4 for this. Yeah, I wish there was a quick and easy way of switching between the two So if you haven't checked minicast.com, please So there's lots of Tools for you to play with and let me know what you think currently with the way we're combining a Fuzzy logic later potentially neural networks as well With the ECG game, yeah, and we can then apply it on to EEG as well So that's the overall plan More quickly, so we are developing in the live stream. I'll share Some code with you. So we'll have an idea the code. It's a HTML code at the bottom. It has a description of what's What the the application meant to do, but we currently adding a machine learning fuzzy logic Options to it be sharing more code Hopefully I don't hit The limit the 40 what is it 40 messages per Three hours think limit All right, let's break this down Your html code presents a pretty clear picture of what you're working on an interactive web based ecg electrocardiogram Scoring game named cardio quest It's designed to test and improve the ability to identify abnormal ecg patterns You're using a combination of html css and javascript the front end Your idea of integrating a machine learning fuzzy logic system is fascinating Fuzzy logic would add a nuanced approach to analyzing ecg patterns offering a more sophisticated analysis than traditional binary systems This could be particularly useful in distinguishing between slightly abnormal and critically abnormal ecg patterns enhancing the educational value of your game Here are a few things to consider with your integration Data handling and processing ensure your system can efficiently handle and process the ecg data Fuzzy logic systems require specific data structuring for optimal performance Algorithm design your fuzzy logic algorithm should be tailored to recognize specific ecg abnormalities This means defining the fuzzy sets and rules that accurately reflect the variations in ecg patterns User interface updates since you're adding a new feature consider how the analysis results will be displayed to the user It should be intuitive and educational Backend integration if the fuzzy logic processing is done server side ensure seamless communication between your front end and back end This might require ajax calls or web socket communication Performance optimization machine learning models can be resource intensive Optimize for performance to ensure smooth gameplay, especially if the game is to be used on devices with limited computing power Testing and validation before fully integrating the fuzzy logic component Regresely tested to ensure it accurately identifies ecg patterns This might require collaboration with medical professionals for validation Feel free to share more code if you need specific advice on integrating fuzzy logic into your existing setup And don't worry about the message limit. We can handle long conversations just fine That's interesting. It said that considering We do hit the gpt4 message limit quite often So I also have access to hit up co-pilot If it's a beta For you to generate prompts That I can use with co-pilot to actually modify the code The problem with that that you wouldn't know How the code was modified. So if you prefer Generating the code yourself That's perfectly fine Also, can you keep responses as short as possible? Don't mind you trying to be funny at times Following is the waveforms jas I'll be sharing the game logic javascript and the python Application script next Got it. The waveforms js script you've shared generates various ecg waveforms including normal and abnormal patterns This script is crucial for simulating different ecg scenarios in your game The approach you're using with different functions for each waveform variation Is effective for creating a diverse set of ecg patterns For integrating fuzzy logic you might consider the following Fuzzy logic for waveform analysis instead of just selecting waveforms randomly You could use fuzzy logic to analyze the waveforms characteristics like amplitude frequency, etc and decide how likely they are to be abnormal This can make the game more realistic Dynamic difficulty adjustment use fuzzy logic to adjust the game's difficulty based on the player's performance Okay, okay. If they're doing well the game will be more challenging subtly abnormal Okay, I didn't ask you to respond. I said keep responses as short as possible Also, do not use emojis as in ever The idea the general idea is that The front end will be generating the waveforms, but the back end which I'll share with you next is used to Do the fuzzy logic machine learning algorithm so they should not Know of each other so essentially the The machine learning fuzzy logic will be playing the ecg scoring game Without knowing what the waveforms are So here is the game logic and here is the python script Back end Flask application To know how long the prompts can be all right looking at your game logic and back end flask application. Here's a quick breakdown Canvas and waveform rendering you're drawing waveforms on a canvas and handling user interactions Score management the score updates based on user actions hits misses, etc Waveform generation it generates different waveforms and sends them to the back end for analysis Display analysis result fetches and displays the analysis result from the back end Waveform analysis endpoint receives waveform data and processes it Fuzzy logic analysis uses sk fuzzy to analyze the waveform data Data normalization and processing handles the conversion of raw data into a format suitable for fuzzy logic analysis Response generation sends back the analysis results including the calculated abnormality score and membership values The front end sends waveform data to the back end for analysis The back end uses fuzzy logic to determine the abnormality of each waveform and sends the results back to front end The fuzzy logic system in the back end is sophisticated utilizing various parameters like frequency amplitude and peak cancer assess abnormality Ensure the communication between the front end and back end is robust and handles any network or processing delays gracefully Consider how the fuzzy logic results are displayed and interpreted on the front end The goal is educational so providing clear understandable feedback to the user is key This setup looks well structured for an educational ecg analysis game The use of fuzzy logic in the back end adds a layer of complexity that can make the game both challenging and informative Keep me posted on further developments or if you need specific coding help Well, yes, I will need specific specific coding help Also again, just to be clear the fuzzy logic meant to be playing the ecg scoring game independently from the game itself, so it's just Getting the waveform displayed on the screen extracting pitches Which you can explain which Pitches we are currently looking at based on the code I provided And then making a decision as to the likelihood of abnormal ecg Yep Understood you want the fuzzy logic system in the back end to analyze the ecg waveforms independently and assess their abnormality Let's dive into the features being extracted and analyzed based on your provided code Dominant frequency the primary frequency component of the ecg waveform It's calculated using fast Fourier transform fft and normalized against the highest observed frequency so far This feature can indicate the regularity or irregularity of heart rhythms Positive peaks the count of peaks where the waveform goes above a baseline This reflects the number of upward spikes in ecg waveform which can be indicative of certain cardiac events Negative peaks the count of peaks where the waveform goes below the baseline Similar to positive peaks but for downward spikes Amplitude the difference between the highest and lowest points of the waveform This can indicate the strength or intensity of the heart's electrical activity The back end uses these features to assess the likelihood of abnormal ecg Fuzzy sets and rules are defined for each feature which helps in evaluating the overall abnormality The system calculates a score that represents the likelihood of the waveform being abnormal The system works independently of the game's user interface It receives a waveform processes the features applies fuzzy logic and returns an assessment This assessment is the independent decision about the waveform's abnormality Integration with front end ensure that the waveform data is correctly sent from the front end to the back end for analysis Improving feature extraction you may refine how features are extracted or add new features for more accurate analysis Tuning fuzzy logic rules adjust the fuzzy sets and rules based on real ecg data or expert input to improve the accuracy of the abnormality assessment Feedback mechanism decide how to present the analysis results to the user if needed or use the results for further game development If you need specific code adjustments or additions feel free to share more details I can help with coding snippets or suggestions for implementation The normalized amplitude is missing Also, can we make sure the raw positive and negative peaks are Correct There is a potential issue with a dc offset of this signal. Can you check? It might be Can you check what the dc offset is? Yep, I think it might be three. Let's address the two issues you mentioned Missing normalized amplitude the normalized The normalized amplitude is calculated using the normalized function in your python script If it's missing in the analysis results, it might be due to the calculation not being performed correctly or a problem in the data transmission The raw positive and negative peaks are calculated using skippy signal find underscore peaks for positive and negative peaks respectively If there's a concern about their accuracy, it might be related to how the ecg waveform data is structured or processed The detection of peaks can be affected by noise baseline wonder or other signal artifacts dc offset in a signal can affect the analysis of the waveform It's a constant value added to the actual signal shifting it vertically on the graph You can calculate the dc offset by averaging the signal values If your ecg data is centered around a value other than zero that value is your dc offset To remove the dc offset subtract the calculated average from each point in your waveform data Let's write a python function to calculate the dc offset and adjust your waveform data accordingly Add this function in your flask application and call it within process underscore data to remove the dc offset before analyzing the waveform If you're still experiencing issues with the normalized amplitude or peaks Let's dig deeper into the specific part of the code where these are processed It could be a matter of tweaking the algorithm or the way data is passed between functions This and the quickly We're sure it's just sitting at 300 for whatever reason Um, yeah, I don't know why is it Doing that From this line Does it mean the dc offset is 300? She will just subtract 300 when doing the analysis You're correct The line return 300 p wave plus qrs plus s wave plus d wave Asterisk minus 100 in your javascript code to suggest a dc offset of 300 in your ecg waveform data This is because the waveform is being shifted upwards by 300 units To adjust for this dc offset in your analysis You should indeed subtract 300 from your waveform data in the back end before processing it This adjustment would center your waveform around zero, which is typically what you'd expect for ecg data analysis In your pattern back end, you can just waveform Okay So we're already doing it. That's fine So for the normalized amplitude Can we use this As a prompt for co-pilot It's taking 367 lines of code Giving me general examples why You have a normalized function This one Like how this is working because Essentially things should be normalized differently In different places Can we do just that one? That's all All was fine Yeah, when we're using it for the amplitude Yeah, don't like how everything is a function Remove say this function. We don't really need it to remove Yes, we're not just trying to remove it. We're trying to remove the use of it as well Yeah, trying to restructure the whole thing so essentially Yeah, the global amplitude. Well, it's not working correctly. Uh, Wait, maybe this So when we have 349 as the raw amplitude of the signal has been normalized to 1 if it's 288 it's been normalized to about 0.6 Yeah, when it's 199 The normalized amplitude is not returning anything Which is not right Code is a bit Complicated too complicated. It's always looks correct So if the 3 49 turns into 1 There was a 300 as well that turning into 0.8 or something and we have the measure of abnormality Which is actually the opposite it goes the higher the number the number is the more normal the ECG complex check It we already have that So we we do correct for the DC offset in the A Original waveform By sub subtracting 300 now Okay, there's a couple of things so from the back and We receive all the Features and the settings All the feature calculations and the settings of the fuzzy logic Algorithm Can you list them because we want to display them somehow on the front end? Certainly, let's list out the features calculated in your back end and the settings of the fuzzy logic algorithm These details could be displayed on the front end for educational or debugging purposes Dominant frequency raw frequency calcule Calculated using fft fast Fourier transform Normalized version of the dominant frequency scaled against the highest observed frequency to date Positive peaks raw positive peaks Count of peaks where the waveform exceeds a baseline Calculated using skippy signal find underscore peaks count of downward peaks below the baseline Also calculated using skippy signal find underscore peaks Difference between the highest and lowest points in the waveform Indicates the strength or intensity of the heart's electrical activity Scale version of the raw amplitude Normalized against the range of observed amplitude values Fuzzy variables and their ranges frequency Frequency defined over a range e.g. 0 to 1 Amplitude defined over a range e.g. 0 to 1 Positive peaks defined over a range e.g. 0 to 5 Negative peaks defined over a range e.g. 0 to 4 For frequency, amplitude, positive peaks, negative peaks, defined as low, medium, and high, or similar categorizations For abnormality, defined as unlikely, possible, likely Fuzzy rules Defined to assess the likelihood of abnormality based on combinations of the frequency, amplitude, and peaks Example, a rule might state that a high frequency and high amplitude indicator, likely, abnormality Combines all rules into a control system to assess e.g. waveform abnormality Membership values for each feature After analysis, membership values for each feature in their respective sets, e.g. how much a frequency value is, low, medium, or high Displaying these features and fuzzy logic settings can be educational, helping users understand how the system analyzes e.g. waveforms It can also aid in debugging and fine-tuning the system If you need assistance with code snippets for transmitting this data to the front end or displaying it, feel free to ask Can you keep responses short? Also, don't mind you to be funny at times But definitely no emojis Now the row negative peak Doesn't seem to be correct Row positive peak is fine, but the row negative peak Is uh displaying two instead of one most of the time Can you look at the code? Provided above Yep, sure. Let's dive straight in and check why the row negative peak count might be off From your back end code, both positive and negative peaks are detected using skippy signal find underscore peaks For the negative peaks the method find underscore peaks np underscore data is used which essentially inverts the waveform to detect the values as peaks Here's a quick refresher on your code snippet for peak detection If you're consistently getting more positive peaks than negative It could be due to the nature of the e.g. waveform itself or how the find underscore peaks function is interpreting it The e.g waveforms can have varying peak and trough patterns and it's not unusual for the number of positive and negative peaks to differ However, if the negative peak count is consistently and incorrectly low like always showing two instead of the expected count consider these possibilities Signal characteristics ensure the waveform is not being inadvertently altered before peak detection Function parameters find underscore peaks has parameters like height threshold distance etc that influence peak detection Adjusting these might yield more accurate results Data quality check if the data fed into the function is of good quality and representative of the actual ecg waveform A quick debug tip plot the waveform data both original and inverted To visually inspect where the peaks and troughs for negative peaks are and whether they're lying with your expectations If needed you can tweak the parameters in find underscore peaks for more precise detection or revisit how the waveform data is prepared before peak analysis Hope that helps get to the heart of the matter Steph, let's go about with trend I said no emojis And quick responses And white kid up copilot. It's not working. Plotlib is fine Over here can we lot x and o trough backslash to Moment Well, that's wrong. Is that okay now I get it and let's print screen this quickly Again this image Okay, check out the image the negative peaks Should the not be negative peaks if the peak as Is at the zero y axis value Yep Let's see if it can Correct the code From the image you've provided it appears that there is indeed one clear negative peak the valley Which is where the waveform dips below the baseline zero y axis value If your algorithm is consistently reporting two negative peaks instead of one It suggests there might be an issue with the peak detection algorithm sensitivity or the parameters being used When using skippy signal find underscore peaks several parameters can adjust the sensitivity of peak detection such as height threshold distance and prominence Tweaking these parameters can help to ensure that the function is accurately identifying the peaks you're interested in For example, if the negative peaks are not being detected correctly You may need to adjust the height parameter to include negative values or the prominence parameter to ensure smaller peaks are not considered Here's an example of how you might adjust the parameters In the case of negative peaks make sure that the height parameter is set such that it identifies values as peaks in the inverted data If you provide the parameters you're using for peak detection, I come for more precise advice Right. I think those this height should be Whatever say one and minus one or something so it doesn't detect the zeros. Is it? So that the pink should be one minus one Right, so that one negative peak That's wrong. It should be zero. Okay. How the height works again Maybe it should be zero Is it originally suggested? No, so we obviously have The positive peaks are working. Okay. There are three the negative peaks are two Yeah, I think it means Understood What I want they're both Right because that's uh inverted negative data. So it should be both one This should work right zero. Yep And three that's correct One negative peak. Yes, that's right one That's correct two and one That's right the next one three and one one two three And one negative peak. That's right Just checking the waiting for this zero. It's just double check. Yeah, they randomly I think they are 60 40. I think it's the ratio of Abnormal to normal right so that one zero Now the abnormality score is 0.6 the Okay, okay, so that works Really well That works really well with both heights being one moving on Can we double check that and confirm? I suspect the abnormalities score Is essentially reversed. So the higher the number is The more normal The signal The ecg waveform is Can we confirm that? Also, can we confirm? Yeah, so that's wrong. I'm getting a zero 0.5 For a normal ecg So that's not quite right. We need to fix that A longer term on the front panel. We want to be able to display All the details About how the fuzzy logic algorithm is making the decision That will include all the membership functions the activation function And the rules so all the fuzzy vacation And the fuzzy vacation process Yep Let's see if it gets those last two words Because obviously the text to speech is not getting it Fuzzy rules the rules should reflect the logic that a combination of certain features Like a very high frequency or very low amplitude should result in a higher abnormality score Output variable abnormality the consequent membership functions should be set so that likely abnormality corresponds to higher scores Regarding the issue with a 0.5 score for a normal ecg This could be due to the midpoint of the possible abnormality membership function being set at 0.5 Which might be the default output if the inputs do not strongly activate any rules You may need to adjust the membership function or add more specific rules to correctly classify normal ecgs For displaying the fuzzy logic decision-making process Membership functions you can visualize these functions to show how each input variable is classified Activation of rules show which rules are activated based on the input features Aggregation process demonstrate how the activated rules contribute to the final output Defuzzification explain how the crisp output abnormality score is derived from the fuzzy output set Implementing a detailed display of the fuzzy logic process on the front end will require sending all the relevant data from the back end to the front end You might also consider using a javascript library that can handle fuzzy logic to replicate the back end process in a more visual manner on the front end For now review your fuzzy logic system to ensure it reflects the correct interpretation of normal and abnormal ecg characteristics If you need assistance with adjusting the fuzzy logic rules or outputs or with visualizing the process on the front end Let me know i'm here to help We obviously do need help, but yes, let's go over The membership functions And so ideally we would have a graphical display for essentially designing a fuzzy logic system Not sure how difficult that will be So currently we have those fuzzy variables We need to check So we're looking at the frequency amplitude Let's rearrange that So we're looking at frequency amplitude positive peaks negative peaks and the output is normality It's using a centroid I think they're all using centroid method. That's a default It's wrong. Yeah kiddo kappa doesn't Doesn't really understand What's what she's a bit of a shame So we have the membership functions Where positive peaks we have Start stop step Okay, we have zero two Five and steps of a one Can you explain The fuzzy logic analysis Part of the code code Make it as specific to the code as possible Keep it brief You can make jokes if you like But no emojis emojis All right, let's zero in on the fuzzy logic analysis part of your code The essence of your fuzzy logic system is to take crisp inputs like frequency and peak counts Fuzzify them using membership functions apply fuzzy rules and then defuzzify the result to get a crisp output Which is the abnormality score Here's a quick run through with a twist of humor as per your request, but no emojis. I promise not even a smiley winking face Think of these like bounces at the club doors of too few normal and too many They decide how much each input is allowed to party in each category Positive peaks you've set up three categories using fuzz trimf which is like saying if you've got this many peaks Here's how you fit into the club scene Frequency and amplitude similar setup with low medium and high categories Each input value gets to mingle in these categories based on how they score with the membership functions These are the club rules that decide what behavior is considered abnormal If you see too few or too many positive peaks, that's likely abnormal If the negative peaks are too few or too many, mark it as likely abnormal And so on with combinations of frequency and amplitude Finally after all the partying in the fuzzy sets, it's time to sober up and get a single number that represents the level of abnormality This is where the centroid method comes in It's like finding the center of gravity of all the tipsy values to get one number that sums up the party In your code, after setting up the rules, you create a control system and then a control system simulation which you feed the crisp inputs into It processes these through the rules and then defuzzifies the output to get the abnormality score Your fuzzy system is like a nightclub for data points It's all about where they fit in, how they interact with the rules, and what score they leave with Now, if the output is acting tipsy and saying, normal, when it's not, you might need to have a word with the bounces, membership functions, or check the club rules, fuzzy rules Let's make sure the club is giving the right vibes, accurate abnormality scores If we need to retrain the bounces or rewrite the rules, just say the word and I'll be your bouncer trainer or the club manager Let's get that fuzzy logic party under control headphone bar graph When I said no emojis, I meant it like Just don't use any emojis whatsoever So for normal signal, normal ECG I get the following analysis result How to And we get the The most important feature is the number of peaks number of positive and negative peaks So we need to get those membership functions absolutely correct and the frequency And the amplitude Okay, frequency Doesn't seem to do much at all It's really just changing between three and five I'm thinking dropping Or replacing That feature with Cortosis or what was the other option now the Amplitude is important in a sense that for example If we have three peaks Three positive peaks Then the second one should be Much higher than the first and the third Right, but then we could be Missing the first or the third So this might not help much What do you think? Yep It sounds like you're prioritizing the positive and negative peaks as key indicators of ECG abnormality Which makes sense because the number and pattern of peaks are critical in ECG analysis For instance in a typical ECG you'd expect a certain rhythm and height sequence in the PQRST Complex and deviations from this can be indicative of various cardiac issues If the frequency feature isn't providing much discriminative power between normal and abnormal ECGs it might indeed be worth considering dropping it or replacing it with a more informative feature Cortosis measures the tailedness of the signal distribution It could be a useful feature for ECG analysis as a normal ECG signal has a predictable distribution While an abnormal one might have a different ketosis due to arrhythmia for instance Regarding amplitude as you've suggested not just the raw or normalized amplitude But the relative amplitude of consecutive peaks like the r peaks in a QRS complex could be more Informative if the second peak isn't notably higher than the first and third as expected This could be a sign of an abnormal ECG For the positive and negative peaks The membership functions should be tailored to reflect what's considered normal Too few or too many in the context of an ECG If three positive peaks are normal the normal category for positive peaks should be centered Around this value The same goes for negative peaks Here's what to focus on Review and adjust membership functions Ensure they accurately reflect the medical reality of ECG peaks Consider new features ketosis or other statistical features might give better Discrimination between normal and abnormal waveforms Relative amplitude analysis instead of just looking at raw or amplitude Analyze the relative heights of consecutive peaks If you decide to incorporate ketosis or another feature like variability in peak heights You'll need to adjust your python back end to calculate these new features And then update your fuzzy logic system to use them in its analysis Would you like to proceed with adjusting the membership functions for peaks Or do you need a snippet to calculate ketosis or relative peak heights Just give me the nod and I'll craft the code Yeah, I might use GitHub, GPT-4 I'm just afraid we also might be hitting the 40 messages per 3-hour limit Currently It's one thing I'm trying to understand if abnormality Is meant to be between 0 and 1, steps of 0.1 That's fine How come? Already have that line, that's not needed The other thing with frequency is Normal is 0.5 So this one actually does go low Which is interesting So it's essentially 0.5 is normal Like this one And then anything else is abnormal But yeah, so we have the membership functions for peaks Yeah, so we have the membership functions for Abnormality, unlikely possible, likely Yeah, so that's wrong Pretty sure GitHub Copilot will not be able to deal with this Right, so the rules Let's go over the rules I have too many rules Well, in general, and in this code Too many rules Problem So Positive peaks I have too few Too many Yeah, one thing Okay, can you look at the code as well? When we have a line like this And what does it mean for the abnormality value? Because currently It's Pretty I'm pretty certain That 0.5 Abnormality value is normal Waveform And anything else Is abnormal Can we go over this bit of the code? Keep it short Make it funny if you want All right Let's crack the code on that rule like it's a safe and a heist movie But instead of gold We're after the truth of ECGs So, that line of code is a fuzzy rule One of the big bosses of the fuzzy logic world Here's what it's whispering This line is basically saying Look, if you're seeing too few positive peaks Like someone forgot to invite enough guests for party Or too many, like the party's so crowded nobody can dance Then it's likely that we're at an abnormal ECG bash In the fuzzy universe, likely, is a label attached to a certain range on the abnormality scale If this rule gets triggered, it pushes the scale's needle towards the likely zone But here's the kicker The, likely, zone could be at the high end, the low end, or smack in the middle of the scale Depending on how you set up the membership function for abnormality If your abnormality is sitting pretty at 0.5 for a normal ECG It sounds like the needle's just chilling in the middle Unsure if it's at a boring event or the party of the century You'd want, likely, to be leaning more towards the high end for abnormal ECGs Make sure the, likely, membership function for abnormality is more towards the higher end of the scale Check the other rules and membership functions to ensure they're all RSV pinged to the same logic party If you find that, likely, means normal in your setup You might want to rename it to something like, abnormal, for clarity And adjust the membership function to reflect the high values of bad news in the ECG club So, let's tweak the DJ's playlist, the membership functions, and make sure the dance floor, The fuzzy rules, is popping for the right reasons Okay, maybe that was too funny And the abnormality things, that's the IDE Obviously, should have it in the fuzzy logic Showing data abnormality We have abnormality mentioned 30 times Where's the return? We have two returns I don't even know why One in fuzzy logic analysis And another in process data So, in the transcript Should have bottom somewhere We have analyzed waveform Post request FH Yeah, I'm not even sure how the thing works But let's go back What's important is those rules That's in fuzzy That's nice And the structure of the thing I never realized it's actually there That's how little I know Well, in this case, Visual Studio Code This will show you All this structure Don't like those global Variables Make some of them But that's then also why They are defined twice Okay, and frequency, by the way, is not Again, not giving me anything useful Might keep it and add kurtosis As an addition Or just keep it simple Right, we're going over the rules In, don't know what they are As logic analysis Yeah, these rules So we have seven of them Yeah, this abnormality Control shifts See So abnormality analysis compute Computes the fuzzy system Produces an output Called abnormality And she would go over the whole project Quickly Should we get the GPT-4 to do it? I mean, we could get the GitHub compiler to do it But it's normally hopeless Can we explain Abnormality analysis Variable copilot In these Okay, the abnormality analysis is the name of the code referred to variable That code, why code? I'm asking for like specific stuff Yeah, copilot Hopeless Can you explain this line in the Python code? And generally the abnormality analysis variable and how it's being used Don't mind you trying to be funny But keep it short and know emojis Yep, I think it's joking when I say no emojis All right, let's dive in like a detective solving a mystery But instead of fingerprints, we're dusting for data points Abnormality underscore analysis compute Is like the big red button in a game show It gets things moving When you press it or well run it It takes all the evidence you've gathered Your input variables and their fuzzy values Runs it through the labyrinth of your fuzzy rules And comes out with a verdict on how abnormal the ECG is The abnormality underscore analysis variable Is like your fuzzy logic detective It's been briefed with the case details The rules you've set up in your fuzzy control system And it's raring to go When you call compute You're telling it to go solve the case After the compute call the detective comes back and says Based on what I've seen is the score of abnormality It's taken all the fuzzy inputs applied the rules And defuzzified the mess into a crisp value That tells you how normal or party animal like your ECG is So in short abnormality underscore analysis Compute is where all the fuzzy magic happens Turning your inputs into a definitive output That's ready for the ECG horn of fame or not Yeah or not Sorry I wasn't actually listening to it Getting distracted by all the stats on YouTube and all the socials Twitch is horrible at it It's like the worst I understand it's for gamers so everything's gamified But it's like it's like buttons everywhere And all this rolling displays and what's not LinkedIn is pretty good in general And most of my customers are on LinkedIn But then the video stuff is Specifically the video and streaming is horrible On LinkedIn for example I cannot just start screaming Screaming With the Freudian slip Starts streaming with the press of a button I have to change settings in my streaming software and stuff So abnormality analysis Computers like a really big red show button Red button Game show button Gets things moving When you press text the evidence you're covering Your input the variables and fuzzy values Runs through a labyrinth fuzzy rules and comes with a Very cool how abnormal the ECG So currently So this output being Yeah I'm getting confused by it So this line here I understand It's giving me the result of the fuzzy logic analysis What I don't understand for example Is why it's returning 0.5 When the ECG signal is normal The line abnormality underscore analysis Output abnormality gives you the crisp result from the fuzzy logic system after it has been defuzzified If you're getting a consistent output of 0.5 for a normal ECG signal It could be because of a few reasons Middle ground the value of zero The fifth of may indicate that the system is finding a balance between normal and abnormal states This could happen if the inputs are not activating the rules strongly enough in either direction So the system settles on the midpoint Defuzzification default If the rules or membership functions are not set up to clearly distinguish between Normal and abnormal Or if there is an equal amount of membership in both normal and abnormal ranges The centroid defuzzification method will often return the center value of the output universe Which might be 0.5 if you're scared Now the centroid should be fine as the defuzzification method Can you explain these rules one by one? Yep Sure, let's break these rules down like the steps of a dance routine in a fuzzy logic disco Rule one, if the positive peaks are too few or too many The ECG is likely throwing abnormal shapes on the dance floor This rule flags any ECG with an unusual number of positive peaks as probably abnormal Rule two, too few or too many negative peaks That ECG is moving weirdly, likely abnormal too Similar to rule one, but for negative peaks Rule three, positive peaks are normal but negative peaks are playing hide and seek That's a bit sketchy, could be possibly abnormal Here, if the positive peaks are normal but the negative peaks are too few, there's a possibility of abnormality Rule four, positive and negative peaks both normal The eggs got smooth moves, unlikely to be abnormal This one is your go-to for a normal ECG where both peaks are within expected ranges Rule five, if the frequency is high or the amplitudes cranked up, the ECG is parting too hard, likely abnormal This rule considers high frequency or amplitude as indicators of potential issues Rule six, low frequency and low amplitude The eggs chilling out, unlikely to be abnormal This is when both key features are low, suggesting everything is calm and likely normal Rule seven, frequency and amplitude both hanging out in the middle Could swing either way, so let's call it possibly abnormal Here, if both are in the medium range, it's uncertain, so it's flagged as potentially abnormal The grand finale of this dance is when all these moves come together, the fuzzy logic system shakes it all up And out pops the abnormality score, telling you if the ECG is doing the char char slide into the abnormal zone or waltzing smoothly in normal territory I still don't understand why this normal abnormality is sitting at 0.5 Considering, we need to adjust some of those That's obviously abnormal, the frequency there goes to 5 So it's normally 3 at 0.6, so that's Okay, that's missing That beat Right, so this is the, no Okay, so this is the normal ECG And let's just pop it in Into the chat This is an example of normal ECG The As analysis result Is it okay to have an abnormality score of 0.5 for a normal Waveform, what do you think? Based on the example of a normal ECG waveform, you're provided and the analysis results if the system consistently gives an abnormality score of 0.5 for normal waveforms It may be a sign that the fuzzy logic rules or the membership function ranges for the output variable abnormality need adjusting In fuzzy logic the output value in this case the abnormality score is determined by the degree to which the input variables Like positive peaks negative peaks amplitude etc match the conditions specified in the rules If the normal ECG waveform activates the rules for both normal and abnormal conditions to a similar degree, the system might indeed return a value in the middle, like 0.5 However, for a normal ECG waveform, you might expect the abnormality score to be closer to 0, reflecting a higher confidence in the normalcy of the waveform An abnormality score of 0.5 can indicate that the system is uncertain or that the waveform is exactly on the threshold between what it considers normal and abnormal Review the ranges and shapes of the membership functions for your input variables Ensure they match the expected patterns for a normal ECG Adjust the membership functions for the output variable abnormality so that the system is more confident in identifying a normal waveform as normal Look at the activation levels of your rules for a normal waveform and see if they're being triggered as expected So should you accept a score of 0.5 for a normal ECG? If I were a dj spinning tracks at the fuzzy club I'd say we need to remix those rules and membership functions until the system is grooving to the beat of normalcy without missing a step Okay, can you regenerate this function? adjusting the membership functions the frequency seemed to be 0.6 For normal So can we change it so that the frequency membership function around 0.6 is considered normal and anything else is likely to be abnormal for positive peaks Make sure that the number of three is normal below or above that should be considered abnormal for the number of negative peaks one is normal Anything else is abnormal If the number of negative peaks is zero It is highly likely to be abnormal and if the number of positive peaks is one or less than one It's also likely highly likely to be abnormal Here is what I currently have for the code Just in case you don't already have it I can you suggest the modifications Or even better generate the regenerate the whole function To fine-tune your fuzzy logic to better match normal ECG characteristics We'll adjust the membership functions for the frequency positive peaks and negative peaks based on your specifications Here's the modified fuzzy underscore logic underscore analysis function with updated membership functions and rules Hey, forget the amplitude Get staff Have amplitude as well And removed one rule why? Let's go over frequency So normal Yeah, I like that Don't like the positive negative peaks the number being increased. It's it's already high high enough At the five and four that should be fine don't expect Normandy will already have that line somewhere So let's go over it one by one That's okay positive peaks Positive peaks change it from zero to six I don't expect the It to be that high And let's go with it and we have abnormality We already have that line. What do we? Yes, we do Okay, remove it from there So we have abnormality then we have okay, let's do frequency next It's updated Just see what Right. So as we said around there, it should be around 0.6 is normal So those names would be important Yeah, positive peaks too few normal too many In zero and two positive peaks too few Yeah, that sounds legit Yeah, it should be yeah between Two and three is normal and two and four Yeah, four five five is the end of the membership function that makes sense Then negative peaks so two of you point five in point five and one point five actually Should actually be two but Should be two Yeah, three four is way too many But two should be normal Yeah, we have a problem with amplitude now abnormality Unlikely possible likely now the rules might not have any rules for amplitude just to Trick the system. I think that's what it removed it in it. It was updated rules and see amplitude It is tempting to remove amplitude for now kept positive peaks too few too many frequency normal frequency low high Normality possible should be likely As those will be old rules, but we also need one two three four five six seven frequency Need the amplitude Yeah, we need this As rules seven If the frequency is high But should as low that out for now Yes, we have the abnormality analysis is the same Yeah, we're doing that scale check. We don't actually need to do it Yeah, we don't have that problem anymore And shift Yeah, we have an amplitude normalized computer printing the result We are actually returning all this stuff Shall not sure why Check it in a bit Okay Having an error a 500 error the options It's like the medium Not using medium gets how we name things using medium instead of low normal high Don't actually see medium Is it frequency? Yeah, we're using low normal high oops Not running the app to run it again Okay, we have to fix it next time And then and we'll be testing And next time as well probably tomorrow. So I'll see you Let me know if there is any questions. Please pop them in the chat now or later doesn't really matter Do go check out by any cares.com Because this is what we are running these streams for is so You can provide Feedback on any of the tools that are currently there. See you next time. Bye


Alhamdulillah, there is nothing better that we can feed our souls than these beautiful words that we have been reciting and singing and listening to. These are the things that will cure our hearts, these are the things that will cure our homes, these are the words that will cure the situations that we are going through in this place right here, in this Masjid and in this community and in the entire world. And it is by the Barakah and the Noor of these types of gatherings that tribulations on the other side of the world are averted. Tribulations in the lives of other Muslims and other that we don't even realize are happening are averted because of the blessings that are descending upon us right now in this place. And likewise, their gatherings are benefiting us and we are all together benefiting each other because we are one Ummah under one Prophet Muhammad SAW and it is the Barakah of what he taught us and to the extents to which we connect ourselves to what he taught us will be the Barakah in our lives and be in the Barakah of our children. And it is part and parcel of these gatherings that we are aiming through them to invigorate our hearts and instill in our hearts an increased love for the Messenger SAW that will not only make us happy, joyful and blissful in this life and the next but also that will raise us to a level that we desire and yearn to follow him in every situation that we can, that we not only seek to learn his Deen SAW but we seek to find any situation in which he did something that we want to learn what he did in that situation so we could do it. And the people of Allah SAW are like this, that you see them mumbling something under their breath and you don't really equate what they did to what was going on but you realize oh there was some lightning storm or there was some thunder that came down and they were citing the dhikr, the sunnah of the Prophet SAW, the dua of the lightning or there was a cold day and they were citing the dua of the cold day or they were entering a house or they are leaving a house or they are putting on something or they looked at a mirror or whatever it may be and they are reciting these things because they want to follow the messenger SAW and these are the adhkhar, imagine the obligatory prayers and how they pray and seeking to make their outward and inward in line with the prophetic guidance SAW and it is this love that will allow us to reach the completeness of iman, the trueness of faith as the messenger SAW said that none of us truly, truly completely believe until we love him more than all of the creation and more than our parents, our children and all of humanity and that we love his guidance more than all other guidance and that our desires become in line with what he brought SAW so we ask Allah SWT by the blessing of what is happening in this gathering and by the blessing of the angels that are surrounding it and by the blessing of its connection back to the Prophet SAW to fill our hearts with such a love of the Prophet SAW that will drive us to follow him in our private moments and in our public moments in our speech and in our actions and in our beliefs and in our perceptions in our life it's in this life and in the next that we be grazed with him SAW and we ask Allah SWT for a good ending for all of us and all of our progeny and all of those who we love and to have real and to relieve the tribulations for the ummah and to give them ease and well-being and love of the messenger SAW