Simplest machine learning algorithm – linear regression with excel

Some may say that linear regression is a more statistical problem. And this is true at some level. But when the problem is solved from a machine learning perspective, things gets more accessible, especially when moving towards more complex problems. First of all, let’s understand few essential terms. We can start with regression. When speaking of linear regression we try to find a best-fitting line through given points. In other words, we need to find an optimal linear equation to fit given data points. This is a supervised learning problem when we have set of data pairs that can be plotted on x-y axis. I understand theory is a boring thing, even for me, so let’s move to practical examples and learn by solving some problems. In order to work with some examples we need sample data. There are many data sources available on the internet. For instance, a great source is college Cengage, that have several sets with data pairs meant for linear regression problems. For our example, we are going to use Cricket Chirps Vs. Temperature data where each data point consists of chirps/sec and temperature in degrees Fahrenheit. You can send data in three formats: excel, mtp and…

Continue reading

6 Frugal Tips to Help Pay Down Debt

paying down debt tips

Debt. Ugh, what a horrible word. Can we just erase this word from the dictionary completely? If you carry around debt with you, then you know exactly how the sound of that word feels. It is stressful, it causes frustration, and it makes you want to curl up and not face reality. But before you panic, consider these strategies (especially for college students) to help you start paying down your debt, whether it is from student loans, personal missteps, or both. 1. Don’t Just Pay the Minimum Whether you are paying your student loan or a credit card bill, do not simply just pay the minimum. Of course, if you are short one month, the minimum is all that is required to keep your account in good standing, but the more you pay, the quicker you can pay down your debt. To ensure financial efficiency, try to send in additional money that you have instead of pulling from your savings account or your other funds. For example, if you plan to spend $200 on groceries, but you only spend $150, then send the extra $50 to your debt.

Continue reading

Electrical signal power and energy calculations by example

In electronics and signal processing, you have to deal with electrical signals. In many cases, you may need to calculate signal power and energy. Power and energy for DC In a standard situation, when DC power supply is applied to a known resistor or another device like an LED motor you can calculate its power very easy by applying Ohms law: If we run this device for time T then we can calculate total energy used: In some cases, you may not know the resistance of your circuit. In this case, you can measure the current flow. So your power formula can be transformed by using same Ohms law:

Continue reading

Echolocation with HC-SR04 ultrasonic distance sensor

Ultrasonic echolocation is common practice in many areas, including nature itself. We all know how bats or dolphins navigate – they emit ultrasonic waves, and depending on the time delay of reflected echoes, they can determine the distance from obstacles or catch. From an engineering perspective, it is relatively easy to measure distances with ultrasound – all you need to know is sound speed in the air and time delay between sent and received pulses. L is the measured distance; CAIR – ultrasound speed; t – the time between transmitted and received pulses. The accuracy of measured distance mainly depends on air temperature. The following formula can calculate sound speed in the air approximately : For instance, at 25ºC, the speed of sound in dry air CAIR = 346.13 m/s. If you want greater accuracy, you should also measure temperature to adjust sound speed.

Continue reading

Ultrasound wave propagation and parameters

Ultrasound waves are acoustic pressure waves that interact with propagation media. Ultrasound visualization is typically based on wave reflectance from regions with different acoustic properties. When a wave meets different acoustic media, part of it transmits further while others reflect. This happens due to different acoustic impedance. The ration between reflected and transmitted energy purely depends on the difference in acoustic impedance in both regions. As you can see each material can be characterized by its acoustic impedance Z which is equal to ultrasound speed v and material density r.

Continue reading

Testing NEO-6M GPS receiver module

If your project requires a global positioning feature, then you should use one of many GSP modules. There are many receiver modules and expansion boards available for your choice. They vary in PCB size, functionality, antennas used, and price. In most cases, you are probably looking for a simple, small-in-one solution where GPS receiver and antenna would be on the same package. Recently I have picked one that might fit most needs – GPS receiver NEO-6M module with ceramic antenna and TTL serial interface. It is a very compact GPS module with the most needed features:

Continue reading

Using wavelet transform in biomedical engineering – heart signal analysis

In previous post, we cleared out that wavelet transform is used to analyze short-time and non-stationary signals. Since base wavelet function has to parameters – translation and scaling, it is possible to achieve good time and frequency localization. In other words, we can equally analyze the slow signal and fast signal structures without losing resolution and so evaluate signal frequency characteristics and time dynamics. Heart signal analysis is one of the most common problems in biomedical engineering. Practically every part of ECG signal carries some sort of information about heart conditions, possible pathologies, and diseases. So equally, frequency and timing characteristics of ECG signal is essential. As you know standard ECG signal consists of several typical waveforms like P-QRS-T, where in P and T waves low frequency component dominates, and in QRS, mid and high. The common condition of hear is myocardial ischemia when blood flow through coronary arteries to the heart is reduced, what prevents receiving enough oxygen. This can damage the heart muscle and lead to a heart attack. In order to notice this pathology it is we need to analyze S-T segment of ECG waveform. Insignificant changes in the signal can indicate ischemia. In order to find…

Continue reading

Fixing Renault Scenic II fan controller block

Renault Scenic II fan fails quite often. In some cases, you may notice that not all speeds selected from the dashboard works or works occasionally. But most often fan stops working at all. Of course, the first step to check fuses. If fuses seem to be OK, then the only way to look is at the fan speed controller (sometimes called fan resistor). The easiest and most expensive way is to call service and leave them to do repairs. But if you have some engineering blood, you can do it yourself by spending less than an hour of your time and probably only a couple of bucks.

Continue reading

Ultrasound waves and propagation

It has been more than 100 years since ultrasound has been used for analyzing materials and echolocation. A bit later, it was adapted for medical diagnostics. Ultrasound became popular and widespread due to the number of benefits. Probably one of the essential features is that it is non-destructive. The other is simplicity and precision. Of course, when we talk about price and simplicity we have X-ray or tomography in mind. Ultrasound can be used in many areas and environments. You can measure geometrical properties of internal structures and physical properties like density and tension. In medicine, ultrasound visualization is mainly used as a non-invasive medical imaging technique using high-frequency sound waves to produce images of internal body structures. It is commonly used to view and diagnose conditions related to pregnancy, the abdomen, and the heart. The images are created by transmitting sound waves into the body, which bounce off internal structures and are detected by a transducer, then processed by a computer to create real-time images. Ultrasound is generally considered safe and painless and does not involve ionizing radiation.

Continue reading

5 Creative Voice Tech Applications

Applications using voice technology are increasingly becoming popular in the modern-day society. Developers are working hard to make technological innovations meant to improve people’s everyday lives. Using voice technology today, you can learn about your community, send an email, buy movie tickets, and much more tasks through speaking to your smartphone. The following are some of the most creative apps of voice technology. Siri Assistant App The app runs on iOS mobile operating system and was developed by Apple. It works as a personal assistant app for knowledge and navigation. The most innovative feature of the app is that it uses natural language user interface to perform various tasks such as making recommendations, searching the web, answering questions, and making phone calls. The creative use of natural language ensures the user doesn’t have to remember particular keywords and phrases. In addition, Apple assured its users that the app uses a cloud-based voice recognition technology to analyze commands, process and interpret voice collected from the cloud.

Continue reading