Government Fund Tracking System Using BlockchainLast Updated on May 3, 2021
The main idea behind the project is to track the funds hierarchically i.e from central government to the common man including in this chain. We have considered four hierarchical components which are: Central government, state government, Contractor, resource provider/dealer. In the beginning, the budgets which would get finalized in the house will be uploaded according to their respective category. After funds allocation state government will instigate the required projects by documenting them and will send the document to the central government. Now the Central government will verify the project details and if satisfied, they will grant the project funds to the state government else they can reject the project. After receiving funds from the central government, the state government will open the tenders for the contractor and by proper bidding system the contractor will be chosen for the specific project. As bidding and tender allocation will be carried out by an automation bidding system with no human intervention involved, it would reduce corruption. Government committee will check the amount of work done synchronously and will mark every progress by submitting a brief report to the hierarchical officer, who will add it to the blockchain. In this report the progress can be portrayed in the form of images, videos, written plan of the building or structure, etc. To get the payment the contractor will have to submit a form of his total spendings with proper distribution over the duration. This form details will then be checked by the respective authority of the state government and then will initiate the payment to the contractor. In this way doing work over a period gets paid, this process will repeat until a particular work is being done completely.
Social Distance Monitoring System(Python And Opencv)Last Updated on May 3, 2021
Social distancing is one of the community mitigation measures that may be recommended during Covid-19 pandemics. Social distancing can reduce virus transmission by increasing physical distance or reducing frequency of congregation in socially dense community settings, such as ATM,Airport Or market place .
Covid-19 pandemics have demonstrated that we cannot expect to contain geographically the next influenza pandemic in the location it emerges, nor can we expect to prevent international spread of infection for more than a short period. Vaccines are not expected to be available during the early stage of the next pandemic (1), a Therefore, we came up with this system to limit the spread of COVID via ensuring social distancing among people. It will use cctv camera feed to identify social distancing violations
We are first going to apply object detection using a YOLOv3 model trained on a coco dataset that has 80 classes. YOLO uses darknet frameworks to process incoming feed frame by frame. It returns the detections with their IDs, centroids, corner coordinates and the confidences in the form of multidimensional ndarrays. We receive that information and remove the IDs that are not a “person”. We will draw bounding boxes to highlight the detections in frames. Then we use centroids to calculate the euclidean distance between people in pixels. Then we will check if the distance between two centroids is less than the configured value then the system will throw an alert with a beeping sound and will turn the bounding boxes of violators to red.
Telecom Churn PredictionLast Updated on May 3, 2021
This case requires trainees to develop a model for predicting customer churn at a fictitious wireless telecom company and use insights from the model to develop an incentive plan for enticing would-be churners to remain with company. Data for the case are available in csv format. The data are a scaled down version of the full database generously donated by an anonymous wireless telephone company. There are still 7043 customers in the database, and 20 potential predictors. Candidates can use whatever method they wish to develop their machine learning model. The data are available in one data file with 7043 rows that combines the calibration and validation customers. “calibration” database consisting of 4000 customers and a “validation” database consisting of 3043 customers. Each database contained (1) a “churn” variable signifying whether the customer had left the company two months after observation, and (2) a set of 20 potential predictor variables that could be used in a predictive churn model. Following usual model development procedures, the model would be estimated on the calibration data and tested on the validation data. This case requires both statistical analysis and creativity/judgment. I recommend you pend much time on both fine-tuning and interpreting results of your machine learning model.
Tictactoe-AiLast Updated on May 3, 2021
The game is the traditional TicTacToe game in which a player has to make a pattern of 3 symbols which can be horizontal , vertical or diagonal. It can be played in the terminal or powershell in windows. It has 3 types of game play:
- with another human player.
- with random computer player in which you can win.
- with smart computer player in which you can never win.
The smart computer player is written using minimax algorithm which is used in AI.
Minimax is a decision rule used in artificial intelligence, decision theory, game theory, statistics, and philosophy for minimizing the possible loss for a worst case scenario. When dealing with gains, it is referred to as "maximin"—to maximize the minimum gain.
Minimax is a kind of Backtracking algorithm that is used in decision making and game theory to find the optimal move for a player, assuming that your opponent also plays optimally. It is widely used in two player turn-based games such as Tic-Tac-Toe, Backgammon, Mancala, Chess, etc.
In Minimax the two players are called maximizer and minimizer. The maximizer tries to get the highest score possible while the minimizer tries to do the opposite and get the lowest score possible.
Every board state has a value associated with it. In a given state if the maximizer has upper hand then, the score of the board will tend to be some positive value. If the minimizer has the upper hand in that board state then it will tend to be some negative value. The values of the board are calculated by some heuristics which are unique for every type of game.
The random player chooses his move randomly using the random library in python.
My Rewards - Alexa SkillLast Updated on May 3, 2021
An Alexa skill to reward kids for good behavior.
After building http://eFamilyBoard.com I decided to purchase an Alexa Show (2nd gen) for comparison. eFamilyBoard has a few nicer features but over all the Alexa is much more powerful and scalable. One heavily used feature was the sticker board on eFamilyBoard that didn't have a comparable skill on Alexa. As a result, I decided to build My Rewards skill to replace it.
What it does
It allows families and teachers to reward kids for good behavior. The user ultimately decides what to do with the rewards. Personally, our kids earn $5 after they've earned 10 total rewards, then they start over. The user can add recipients and give multiple rewards at a time. For example, "Alexa give John 5 stickers" or "Alexa take away 2 stickers from John". And if you don't know what reward type of reward to give or take away you can always simply say "rewards" in the place of the type of reward (e.g. football, sticker, heart, unicorn, truck, cookie, doughnut, etc).
How I built it
I built it with the ASK CLI and Visual Studio Code. I started with the sample hello world app and refactored it to utilize typescript, express, and ngrok to run locally. I also used mocha with chai for unit tests that run and must pass before I can deploy to AWS.
Challenges I ran into
I learned to get stated by taking a course on Udemy but they didn't use typescript and deployed to AWS for every change. That would take FOREVER to debug and build efficiently. I setup a simple express app and use ngrok to route calls to my local machine. This allows me to talk to my Alexa and debug by stepping through the code in VS Code.
Accomplishments that I'm proud of
Project setup, local debugging with typescript, and tests with 90%+ code coverage. Not only does it work for voice but it also supports display templates to show the user what rewards each participant has earned. I was going to add ISP down the road but decided to do it from the start and it ended up being easier than expected. For being my first Alexa app I think the app works extremely well and my kids started to utilize it with no learning curve.
What I learned
Being my first Alexa app I learned a TON. From how to simply use Alexa (still learning tricks) to how to interact with voice commands. I've also never used DynamoDB but the Alexa SDK made that super easy.
What's next for My Rewards
Add support for more languages. My family has been using it for development but exited to see what others think of it.