{"id":3379,"date":"2023-08-31T10:59:22","date_gmt":"2023-08-31T10:59:22","guid":{"rendered":"https:\/\/neuraldesigner.com\/blog\/crime-prevention\/"},"modified":"2025-09-29T16:30:58","modified_gmt":"2025-09-29T14:30:58","slug":"crime-prevention","status":"publish","type":"blog","link":"https:\/\/www.neuraldesigner.com\/blog\/crime-prevention\/","title":{"rendered":"Prevent urban crime using machine learning"},"content":{"rendered":"<p>The volume, variety, and velocity of information stored in security and crime prevention institutions have increased significantly.<\/p>\n<p>The intelligent analysis of all that data can substantially help those security forces adopt these techniques.<\/p>\n<p>This study applies predictive analytics in law enforcement and crime.<\/p>\n<p>Specifically, we develop a neural network to identify patterns of criminal behavior based on location and time variables.<\/p>\n<p>This predictive model will allow security forces to optimize their resources and prevent crimes before they happen.<\/p>\n<p>The developed algorithm can predict crime categories at a given date, time, and district.<\/p>\n<p>Moreover, we can plot the predictions as heat maps, which allows the development of new innovative city systems that could help in the fight against crime.<\/p>\n<section>\n<h3>Contents:<\/h3>\n<ol>\n<li><a href=\"#ApplicationType\">Introduction<\/a>.<\/li>\n<li><a href=\"#ApplicationType\">Application type<\/a>.<\/li>\n<li><a href=\"#DataSet\">Data set<\/a>.<\/li>\n<li><a href=\"#NeuralNetwork\">Neural network<\/a>.<\/li>\n<li><a href=\"#TrainingStrategy\">Training strategy<\/a>.<\/li>\n<li><a href=\"#TestingAnalysis\">Testing analysis<\/a>.<\/li>\n<li><a href=\"#ModelDeployment\">Model deployment<\/a>.<\/li>\n<\/ol>\n<\/section>\n<section id=\"Introduction\">\n<h2>1. Introduction<\/h2>\n<p>According to classical theories of criminality, recent literature has focused on the impact of socioeconomic and demographic variables on various types of crime.<\/p>\n<p>To date, the development of efficiency indicators has helped governments improve their efficiency.<\/p>\n<p>Additionally, it has facilitated police work in crime prevention, criminal investigation, apprehension, maintaining order, and providing citizen services.<\/p>\n<p>This work incorporates new methodologies based on machine learning and neural networks into the aforementioned traditional concepts.<\/p>\n<p>These new methods will enhance the allocation of resources to police departments worldwide in their efforts to combat crime.<\/p>\n<\/section>\n<section id=\"ApplicationType\">\n<h2>2. Application type<\/h2>\n<p>The variable to be predicted is the number of crimes (a count variable).\u00a0Therefore, this is an <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-networks-applications#Approximation\">approximation<\/a> project.<\/p>\n<p>This work aims to demonstrate the ability of neural networks to predict criminal activity in the City and County of San Francisco, based on spatial and temporal variables.<\/p>\n<p>We will explore how a predictive model can enhance the efficiency of a city&#8217;s security forces in resource allocation. We also include crime predictions for a given day at different times.<\/p>\n<\/section>\n<section id=\"DataSet\">\n<h2>3. Data set<\/h2>\n<p>The original\u00a0<span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\"><a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set\" target=\"_blank\" rel=\"noopener\">dataset<\/a> contains incidents derived from the San Francisco Police Department&#8217;s (SFPD<\/span>) Crime Incident Reporting System.<\/p>\n<p>The data ranges from 01\/01\/2003 to 05\/13\/2015. In particular, it includes 878,049 incident reports with the following variables: day, category, description, weekday, police district, resolution, address, X-coordinate, and Y-coordinate.<\/p>\n<p>The first step is to prepare the data set, which is the source of information for the approximation problem. The original dataset is unsuitable for building a criminality model, so it underwent detailed preprocessing.<\/p>\n<p>We have taken into account two types of variables:<\/p>\n<ul>\n<li>As inputs, we selected the <b>day<\/b>, <b>month<\/b>, <b>day of the week<\/b>, and <b>time<\/b>.<\/li>\n<li>As outputs, we have the <b>number of crimes for every section and police district<\/b> in four six-hour periods (00:00-6:00, 6:00-12:00, 12:00-18:00, and 18:00-24:00).<\/li>\n<\/ul>\n<p>The City of San Francisco has ten police districts. The following figure shows this division.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/crime-prevention-sf-police-districts.webp\" \/><\/p>\n<p>Based on the offenses listed in the San Francisco data set and the ICCS (International Classification of Crime for Statistical Purposes) classification, we conclude that the following types of reports could be grouped in the following sections:<\/p>\n<ul>\n<li>Section 1: No data available.<\/li>\n<li>Section 2: Driving under the influence of alcohol, extortion, and kidnapping.<\/li>\n<li>Section 3: Pornography\/obscenity, non-forcible sex offenses, and forcible sex offenses.<\/li>\n<li>Section 4: Assault, Robbery, and Stolen Property.<\/li>\n<li>Section 5: Vandalism, burglary, larceny\/theft, and vehicle theft.<\/li>\n<li>Section 6: Drugs\/Narcotics and Liquor Laws.<\/li>\n<li>Section 7: Bad checks, bribery, embezzlement, forgery\/counterfeiting, and fraud.<\/li>\n<li>Section 8: Disorderly conduct, drunkenness, prostitution, gambling, loitering, and runaway.<\/li>\n<li>Section 9: Weapons law.<\/li>\n<li>Section 10: Arson.<\/li>\n<li>Section 11: Fairly offenses, other offenses, and secondary codes.<\/li>\n<\/ul>\n<p><!--\n\nThe following table shows the first 5 cases of this data set. We can observe that some missing values are represented by \"NA\".\n\n\n<table>\n\n\n<tr>\n\n\n<th>DAY<\/th>\n\n\n\n\n<th>MONTH<\/th>\n\n\n\n\n<th>YEAR<\/th>\n\n\n\n\n<th>WEEKDAY<\/th>\n\n\n\n\n<th>BAYVIEW<\/th>\n\n\n\n\n<th>CENTRAL<\/th>\n\n\n\n\n<th>INGLESIDE<\/th>\n\n\n\n\n<th>MISSION<\/th>\n\n\n\n\n<th>NORTHERN<\/th>\n\n\n\n\n<th>PARK<\/th>\n\n\n\n\n<th>RICHMOND<\/th>\n\n\n\n\n<th>SOUTHERN<\/th>\n\n\n\n\n<th>TARAVAL<\/th>\n\n\n\n\n<th>TENDERLOIN<\/th>\n\n\n\n\n<th><\/th>\n\n\n<\/tr>\n\n\n<\/table>\n\n\n--><\/p>\n<p>Neural networks work with numerical values. However, some of the variables in the data set have categorical values.<br \/>\nTherefore, the first step is to assign numerical values to all categorical variables.<\/p>\n<ul>\n<li><b>DAY<\/b>: The day is a numerical value ranging from 1 to 31 for the days in a month.<\/li>\n<li><b>MONTH<\/b>: For the twelve months of the year (from January to December), we have assigned numbers from 1 to 12.<\/li>\n<li><b>YEAR<\/b>: The data we have goes from 2003 to 2015.<br \/>\nTherefore, the year is a numerical value that ranges from 2003 to 2015.<\/li>\n<li><span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\"><strong>WEEKDAY<\/strong>: For the seven days of the week (from Monday to Sunday), we have assigned numbers from 1 to 7.<\/span><\/li>\n<li><b>TIME<\/b>: We divided the 24 hours in a day into four time frames and assigned each time frame a number, as shown in the table below.<\/li>\n<\/ul>\n<table>\n<tbody>\n<tr>\n<th>TIME FRAME<\/th>\n<th>NUMBER ASSIGNED<\/th>\n<\/tr>\n<tr>\n<td>00:00-6:00<\/td>\n<td style=\"text-align: right;\">1<\/td>\n<\/tr>\n<tr>\n<td>6:00-12:00<\/td>\n<td style=\"text-align: right;\">2<\/td>\n<\/tr>\n<tr>\n<td>12:00-18:00<\/td>\n<td style=\"text-align: right;\">3<\/td>\n<\/tr>\n<tr>\n<td>18:00-24:00<\/td>\n<td style=\"text-align: right;\">4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li><b>NUMBER OF CRIMES PER POLICE DISTRICT<\/b>: We want to predict this variable. As shown in the figure of the distribution of police departments in the city of San Francisco, there are ten police districts in San Francisco:<br \/>\nBayview, Central, Ingleside, Mission, Northern, Park, Richmond, Southern, Taraval, and Tenderloin.<br \/>\nThe data set contains information about the number of crimes committed at a given time in one of these districts. This variable is numerical, so it doesn&#8217;t require any changes.<\/li>\n<\/ul>\n<p>The variables are of two types:<\/p>\n<ul>\n<li><b><a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set#InputVariables\">Input variables<\/a><\/b>: these are the predictors of the criminality model (day, month, year, weekday, and time).<\/li>\n<li><b><a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set#TargetVariables\">Target variables<\/a><\/b>: These are the variables to be predicted, specifically the crime count per police department within a given time frame for each section.<\/li>\n<\/ul>\n<p>On the other hand, cases can be of three types:<\/p>\n<ul>\n<li><b><a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set#TrainingSamples\">Training cases<\/a><\/b>\u00a0are used to build different criminality models with different topologies.<\/li>\n<li><b><a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set#SelectionSamples\">Selection cases<\/a><\/b>\u00a0are used to select the criminality model with the best predictive capabilities.<\/li>\n<li><b><a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set#TestingSamples\">Test cases<\/a><\/b>\u00a0are used to validate the performance of the criminality model.<\/li>\n<\/ul>\n<p>The following pie chart illustrates the uses of all cases in the dataset.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/cervix-cancer-pie-chart.webp\" \/><\/p>\n<p>The data is divided into training, selection, and testing subsets, comprising 60%, 20%, and 20% of the instances.<br \/>\nThis results in 11,302 cases for training, 3,676 for selection, and 3,676 for testing for each section.<\/p>\n<h3>Statistics<\/h3>\n<p>Basic statistics are valuable information when designing a model, as they provide important insights into our application.<\/p>\n<p>The total number of crimes in the data set is 674,656. They comprise the period from January 1, 2003, to May 13, 2015.<br \/>\nTherefore, the average number of crimes per day is 149.59. The following table shows that Richmond has the lowest number of offenses, while Southern has the highest.<\/p>\n<table>\n<tbody>\n<tr>\n<th><\/th>\n<th>Count<\/th>\n<th>Crimes\/day<\/th>\n<\/tr>\n<tr>\n<th>Bayview<\/th>\n<td style=\"text-align: right;\">72560<\/td>\n<td style=\"text-align: right;\">16.088<\/td>\n<\/tr>\n<tr>\n<th>Central<\/th>\n<td style=\"text-align: right;\">69252<\/td>\n<td style=\"text-align: right;\">15.355<\/td>\n<\/tr>\n<tr>\n<th>Ingleside<\/th>\n<td style=\"text-align: right;\">65140<\/td>\n<td style=\"text-align: right;\">14.443<\/td>\n<\/tr>\n<tr>\n<th>Mission<\/th>\n<td style=\"text-align: right;\">96218<\/td>\n<td style=\"text-align: right;\">21.334<\/td>\n<\/tr>\n<tr>\n<th>Northern<\/th>\n<td style=\"text-align: right;\">87380<\/td>\n<td style=\"text-align: right;\">19.374<\/td>\n<\/tr>\n<tr>\n<th>Park<\/th>\n<td style=\"text-align: right;\">37930<\/td>\n<td style=\"text-align: right;\">8.410<\/td>\n<\/tr>\n<tr>\n<th>Richmond<\/th>\n<th style=\"text-align: right;\">36860<\/th>\n<th style=\"text-align: right;\">8.172<\/th>\n<\/tr>\n<tr>\n<th>Southern<\/th>\n<th style=\"text-align: right;\">118323<\/th>\n<th style=\"text-align: right;\">26.235<\/th>\n<\/tr>\n<tr>\n<th>Taraval<\/th>\n<td style=\"text-align: right;\">52963<\/td>\n<td style=\"text-align: right;\">11.743<\/td>\n<\/tr>\n<tr>\n<th>Tenderloin<\/th>\n<td style=\"text-align: right;\">64829<\/td>\n<td style=\"text-align: right;\">14.374<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The most common crime types are those belonging to Section 5 (vandalism, burglary, larceny\/theft, and vehicle theft), totaling 310,160 offenses.<\/p>\n<p>On the other hand, Section 10 (arson) has the lowest rate, with a total of 1,513 crimes reported. The following table shows those statistics:<\/p>\n<table>\n<tbody>\n<tr>\n<th><\/th>\n<th>Count<\/th>\n<th>Crimes\/day<\/th>\n<\/tr>\n<tr>\n<th>Section 2<\/th>\n<td style=\"text-align: right;\">4865<\/td>\n<td style=\"text-align: right;\">1.078<\/td>\n<\/tr>\n<tr>\n<th>Section 3<\/th>\n<td style=\"text-align: right;\">4558<\/td>\n<td style=\"text-align: right;\">1.010<\/td>\n<\/tr>\n<tr>\n<th>Section 4<\/th>\n<td style=\"text-align: right;\">104415<\/td>\n<td style=\"text-align: right;\">23.151<\/td>\n<\/tr>\n<tr>\n<th>Section 5<\/th>\n<th style=\"text-align: right;\">310160<\/th>\n<th style=\"text-align: right;\">68.771<\/th>\n<\/tr>\n<tr>\n<th>Section 6<\/th>\n<td style=\"text-align: right;\">55874<\/td>\n<td style=\"text-align: right;\">12.388<\/td>\n<\/tr>\n<tr>\n<th>Section 7<\/th>\n<td style=\"text-align: right;\">29149<\/td>\n<td style=\"text-align: right;\">6.463<\/td>\n<\/tr>\n<tr>\n<th>Section 8<\/th>\n<td style=\"text-align: right;\">19401<\/td>\n<td style=\"text-align: right;\">4.301<\/td>\n<\/tr>\n<tr>\n<th>Section 9<\/th>\n<td style=\"text-align: right;\">8555<\/td>\n<td style=\"text-align: right;\">1.896<\/td>\n<\/tr>\n<tr>\n<th>Section 10<\/th>\n<th style=\"text-align: right;\">1513<\/th>\n<th style=\"text-align: right;\">0.335<\/th>\n<\/tr>\n<tr>\n<th>Section 11<\/th>\n<td style=\"text-align: right;\">136167<\/td>\n<td style=\"text-align: right;\">30.192<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Finally, if we calculate the statistics by type of crime and location, the combination of Southern and Section 5 has the highest number of crimes (57,961).<\/p>\n<p>On the other hand, the combination of Tenderloin and Section 10 has the lowest number (60). The following table shows all of the above.<\/p>\n<table>\n<tbody>\n<tr>\n<th><\/th>\n<th>Section 2<\/th>\n<th>Section 3<\/th>\n<th>Section 4<\/th>\n<th>Section 5<\/th>\n<th>Section 6<\/th>\n<th>Section 7<\/th>\n<th>Section 8<\/th>\n<th>Section 9<\/th>\n<th>Section 10<\/th>\n<th>Section 11<\/th>\n<\/tr>\n<tr>\n<th>Bayview<\/th>\n<td style=\"text-align: right;\">505<\/td>\n<td style=\"text-align: right;\">411<\/td>\n<td style=\"text-align: right;\">12969<\/td>\n<td style=\"text-align: right;\">26623<\/td>\n<td style=\"text-align: right;\">4612<\/td>\n<td style=\"text-align: right;\">1830<\/td>\n<td style=\"text-align: right;\">876<\/td>\n<td style=\"text-align: right;\">1647<\/td>\n<td style=\"text-align: right;\">393<\/td>\n<td style=\"text-align: right;\">18715<\/td>\n<\/tr>\n<tr>\n<th>Central<\/th>\n<td style=\"text-align: right;\">408<\/td>\n<td style=\"text-align: right;\">403<\/td>\n<td style=\"text-align: right;\">9486<\/td>\n<td style=\"text-align: right;\">38258<\/td>\n<td style=\"text-align: right;\">1946<\/td>\n<td style=\"text-align: right;\">3745<\/td>\n<td style=\"text-align: right;\">1933<\/td>\n<td style=\"text-align: right;\">487<\/td>\n<td style=\"text-align: right;\">111<\/td>\n<td style=\"text-align: right;\">9605<\/td>\n<\/tr>\n<tr>\n<th>Ingleside<\/th>\n<td style=\"text-align: right;\">583<\/td>\n<td style=\"text-align: right;\">526<\/td>\n<td style=\"text-align: right;\">11668<\/td>\n<td style=\"text-align: right;\">27901<\/td>\n<td style=\"text-align: right;\">2479<\/td>\n<td style=\"text-align: right;\">2353<\/td>\n<td style=\"text-align: right;\">577<\/td>\n<td style=\"text-align: right;\">1130<\/td>\n<td style=\"text-align: right;\">182<\/td>\n<td style=\"text-align: right;\">14503<\/td>\n<\/tr>\n<tr>\n<th>Mission<\/th>\n<td style=\"text-align: right;\">695<\/td>\n<td style=\"text-align: right;\">756<\/td>\n<td style=\"text-align: right;\">15408<\/td>\n<td style=\"text-align: right;\">34410<\/td>\n<td style=\"text-align: right;\">9252<\/td>\n<td style=\"text-align: right;\">3487<\/td>\n<td style=\"text-align: right;\">6017<\/td>\n<td style=\"text-align: right;\">1329<\/td>\n<td style=\"text-align: right;\">145<\/td>\n<td style=\"text-align: right;\">20769<\/td>\n<\/tr>\n<tr>\n<th>Northern<\/th>\n<td style=\"text-align: right;\">515<\/td>\n<td style=\"text-align: right;\">449<\/td>\n<td style=\"text-align: right;\">11658<\/td>\n<td style=\"text-align: right;\">46179<\/td>\n<td style=\"text-align: right;\">4635<\/td>\n<td style=\"text-align: right;\">3550<\/td>\n<td style=\"text-align: right;\">2942<\/td>\n<td style=\"text-align: right;\">789<\/td>\n<td style=\"text-align: right;\">149<\/td>\n<td style=\"text-align: right;\">13232<\/td>\n<\/tr>\n<tr>\n<th>Park<\/th>\n<td style=\"text-align: right;\">278<\/td>\n<td style=\"text-align: right;\">218<\/td>\n<td style=\"text-align: right;\">4647<\/td>\n<td style=\"text-align: right;\">18610<\/td>\n<td style=\"text-align: right;\">2722<\/td>\n<td style=\"text-align: right;\">1564<\/td>\n<td style=\"text-align: right;\">1159<\/td>\n<td style=\"text-align: right;\">357<\/td>\n<td style=\"text-align: right;\">65<\/td>\n<td style=\"text-align: right;\">6628<\/td>\n<\/tr>\n<tr>\n<th>Richmond<\/th>\n<td style=\"text-align: right;\">446<\/td>\n<td style=\"text-align: right;\">227<\/td>\n<td style=\"text-align: right;\">4195<\/td>\n<td style=\"text-align: right;\">19886<\/td>\n<td style=\"text-align: right;\">1080<\/td>\n<td style=\"text-align: right;\">1838<\/td>\n<td style=\"text-align: right;\">387<\/td>\n<td style=\"text-align: right;\">327<\/td>\n<td style=\"text-align: right;\">103<\/td>\n<td style=\"text-align: right;\">6157<\/td>\n<\/tr>\n<tr>\n<th>Southern<\/th>\n<td style=\"text-align: right;\">684<\/td>\n<td style=\"text-align: right;\">840<\/td>\n<td style=\"text-align: right;\">17068<\/td>\n<th style=\"text-align: right;\">57961<\/th>\n<td style=\"text-align: right;\">9613<\/td>\n<td style=\"text-align: right;\">6172<\/td>\n<td style=\"text-align: right;\">2159<\/td>\n<td style=\"text-align: right;\">1128<\/td>\n<td style=\"text-align: right;\">185<\/td>\n<td style=\"text-align: right;\">22513<\/td>\n<\/tr>\n<tr>\n<th>Taraval<\/th>\n<td style=\"text-align: right;\">429<\/td>\n<td style=\"text-align: right;\">402<\/td>\n<td style=\"text-align: right;\">7099<\/td>\n<td style=\"text-align: right;\">26319<\/td>\n<td style=\"text-align: right;\">1653<\/td>\n<td style=\"text-align: right;\">2793<\/td>\n<td style=\"text-align: right;\">953<\/td>\n<td style=\"text-align: right;\">567<\/td>\n<td style=\"text-align: right;\">120<\/td>\n<td style=\"text-align: right;\">9597<\/td>\n<\/tr>\n<tr>\n<th>Tenderloin<\/th>\n<td style=\"text-align: right;\">322<\/td>\n<td style=\"text-align: right;\">326<\/td>\n<td style=\"text-align: right;\">10217<\/td>\n<td style=\"text-align: right;\">14013<\/td>\n<td style=\"text-align: right;\">17882<\/td>\n<td style=\"text-align: right;\">1817<\/td>\n<td style=\"text-align: right;\">2398<\/td>\n<td style=\"text-align: right;\">794<\/td>\n<th style=\"text-align: right;\">60<\/th>\n<td style=\"text-align: right;\">14447<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The data set used to design the approximation model that predicts city crime contains the number of crimes for all sections and districts over a 4-hour period.<\/p>\n<p>For each section, we have a dataset of 18,385 instances and 15 variables (day, month, year, weekday, time, and the number of crimes for the police districts: Bayview, Central, Ingleside, Mission, Northern, Park, Richmond, Southern, Taraval, and Tenderloin). The total number of data is 275,775.<\/p>\n<p>The table below shows the minimums, maximums, means, and standard deviations of the data corresponding to Section 5 crimes (burglary, larceny\/theft, vandalism, and vehicle theft).<br \/>\nAs we can see, the district with the most crimes is the Southern.<\/p>\n<table>\n<tbody>\n<tr>\n<th><\/th>\n<th>Minimum<\/th>\n<th>Maximum<\/th>\n<th>Mean<\/th>\n<th>Deviation<\/th>\n<\/tr>\n<tr>\n<td>Day<\/td>\n<td style=\"text-align: right;\">1<\/td>\n<td style=\"text-align: right;\">31<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Month<\/td>\n<td style=\"text-align: right;\">1<\/td>\n<td style=\"text-align: right;\">12<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Year<\/td>\n<td style=\"text-align: right;\">2003<\/td>\n<td style=\"text-align: right;\">2015<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Weekday<\/td>\n<td style=\"text-align: right;\">1<\/td>\n<td style=\"text-align: right;\">7<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Time<\/td>\n<td style=\"text-align: right;\">1<\/td>\n<td style=\"text-align: right;\">4<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Bayview<\/td>\n<td style=\"text-align: right;\">0<\/td>\n<td style=\"text-align: right;\">19<\/td>\n<td style=\"text-align: right;\">2.960<\/td>\n<td style=\"text-align: right;\">1.644<\/td>\n<\/tr>\n<tr>\n<td>Central<\/td>\n<td style=\"text-align: right;\">0<\/td>\n<td style=\"text-align: right;\">22<\/td>\n<td style=\"text-align: right;\">4.254<\/td>\n<td style=\"text-align: right;\">2.121<\/td>\n<\/tr>\n<tr>\n<td>Ingleside<\/td>\n<td style=\"text-align: right;\">0<\/td>\n<td style=\"text-align: right;\">20<\/td>\n<td style=\"text-align: right;\">3.102<\/td>\n<td style=\"text-align: right;\">1.725<\/td>\n<\/tr>\n<tr>\n<td>Mission<\/td>\n<td style=\"text-align: right;\">0<\/td>\n<td style=\"text-align: right;\">22<\/td>\n<td style=\"text-align: right;\">3.826<\/td>\n<td style=\"text-align: right;\">1.992<\/td>\n<\/tr>\n<tr>\n<td>Northern<\/td>\n<td style=\"text-align: right;\">0<\/td>\n<td style=\"text-align: right;\">30<\/td>\n<td style=\"text-align: right;\">5.135<\/td>\n<td style=\"text-align: right;\">2.555<\/td>\n<\/tr>\n<tr>\n<td>Park<\/td>\n<td style=\"text-align: right;\">0<\/td>\n<td style=\"text-align: right;\">17<\/td>\n<td style=\"text-align: right;\">2.069<\/td>\n<td style=\"text-align: right;\">1.326<\/td>\n<\/tr>\n<tr>\n<td>Richmond<\/td>\n<td style=\"text-align: right;\">0<\/td>\n<td style=\"text-align: right;\">16<\/td>\n<td style=\"text-align: right;\">2.211<\/td>\n<td style=\"text-align: right;\">1.413<\/td>\n<\/tr>\n<tr>\n<td>Southern<\/td>\n<td style=\"text-align: right;\">0<\/td>\n<td style=\"text-align: right;\">38<\/td>\n<td style=\"text-align: right;\">6.445<\/td>\n<td style=\"text-align: right;\">3.095<\/td>\n<\/tr>\n<tr>\n<td>Taraval<\/td>\n<td style=\"text-align: right;\">0<\/td>\n<td style=\"text-align: right;\">20<\/td>\n<td style=\"text-align: right;\">2.926<\/td>\n<td style=\"text-align: right;\">1.662<\/td>\n<\/tr>\n<tr>\n<td>Tenderloin<\/td>\n<td style=\"text-align: right;\">0<\/td>\n<td style=\"text-align: right;\">15<\/td>\n<td style=\"text-align: right;\">1.558<\/td>\n<td style=\"text-align: right;\">1.089<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set#Distributions\"> Histograms<\/a> show the distribution of the data over its entire range. For example, the following figure is a histogram of Section 5 crimes in Southern.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/crime-prevention-histogram.webp\" \/><\/p>\n<p>This histogram has a normal distribution centered on 5.7 crimes per 4 hours.<\/p>\n<\/section>\n<section id=\"NeuralNetwork\">\n<h2>4. Neural network<\/h2>\n<\/section>\n<p>A <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network\">neural network<\/a> is a computational model inspired by the brain and built from interconnected artificial neurons.<\/p>\n<p>Its main strength is learning to perform tasks such as pattern recognition, relationship discovery, and trend forecasting.<\/p>\n<section id=\"NeuralNetwork\">In general, the learning problem of a neural network involves deriving a function from a dataset.The targets in the dataset specify the desired output responses that the neural network should produce from the inputs.In our specific problem, we aim to develop a crime prediction function that utilizes input data related to time and location.The crime model represents a <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network\">neural network<\/a> with a single hidden layer of\u00a0<a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network#HyperbolicTangentActivationFunction\">hyperbolic tangent<\/a>\u00a0neurons and a\u00a0<a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network#LinearActivationFunction\">linear<\/a> output layer.<\/p>\n<p>No more hidden layers are needed, for this is a class of universal approximators.<\/p>\n<p>For each section, the neural network has five <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set#InputVariables\">inputs<\/a> (day, month, year, weekday, and time) and ten output neurons (the number of crimes in that period for each district).<\/p>\n<\/section>\n<section id=\"TrainingStrategy\">The following figure shows the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network#NetworkArchitecture\">network architecture<\/a> resulting from this analysis.The yellow circles represent scaling neurons, the blue circles represent perceptron neurons, and the red circles represent unscaling neurons.<img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/crime-prevention-neural-network.webp\" \/><\/section>\n<section id=\"TrainingStrategy\">\n<h2>5. Training strategy<\/h2>\n<p>While the problem constrains the number of input and output neurons, the number of hidden neurons is a design variable that can be adjusted. Therefore, we conducted a detailed analysis of order selection to determine the optimal network architecture.<\/p>\n<p>The <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy#LossIndex\">loss index<\/a> chosen for this application is the\u00a0<a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy#NormalizedSquaredError\">normalized squared error<\/a> between the neural network&#8217;s outputs and the dataset&#8217;s targets.<\/p>\n<p>This error is a very standard loss index in data modeling. A regularization term is added to the loss expression to obtain smooth solutions.<\/p>\n<p>The selected training algorithm for solving the problem is a <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy#QuasiNewtonMethod\">quasi-Newton method<\/a> with BFGS training direction and Brent optimal training rate. This training algorithm is a standard method that performs well for both small and large problems.<\/p>\n<\/section>\n<section id=\"TestingAnalysis\">\n<h2>6. Testing analysis<\/h2>\n<p>We calculated the errors between the neural network outputs and their corresponding targets in the testing set to test the model&#8217;s predictive capabilities.<\/p>\n<p>The following table presents the results obtained from this testing analysis for each district.<\/p>\n<table>\n<tbody>\n<tr>\n<th><\/th>\n<th>Mean error (%)<\/th>\n<\/tr>\n<tr>\n<th>Bayview<\/th>\n<td style=\"text-align: right;\">8.902<\/td>\n<\/tr>\n<tr>\n<th>Central<\/th>\n<td style=\"text-align: right;\">7.818<\/td>\n<\/tr>\n<tr>\n<th>Ingleside<\/th>\n<td style=\"text-align: right;\">7.966<\/td>\n<\/tr>\n<tr>\n<th>Mission<\/th>\n<td style=\"text-align: right;\">8.371<\/td>\n<\/tr>\n<tr>\n<th>Northern<\/th>\n<td style=\"text-align: right;\">6.862<\/td>\n<\/tr>\n<tr>\n<th>Park<\/th>\n<td style=\"text-align: right;\">9.382<\/td>\n<\/tr>\n<tr>\n<th>Richmond<\/th>\n<td style=\"text-align: right;\">8.946<\/td>\n<\/tr>\n<tr>\n<th>Southern<\/th>\n<td style=\"text-align: right;\">6.041<\/td>\n<\/tr>\n<tr>\n<th>Taraval<\/th>\n<td style=\"text-align: right;\">7.394<\/td>\n<\/tr>\n<tr>\n<th>Tenderloin<\/th>\n<td style=\"text-align: right;\">7.875<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Here, the mean errors lie in the range of 5-10%, which are good numbers for this kind of problem.<\/p>\n<p>From the table above, we can see that the neural network predicts crime rates with reasonable accuracy.<\/p>\n<p>The neural network is now ready to move to the production phase.<\/p>\n<\/section>\n<section id=\"ModelDeployment\">\n<h2>7. Model deployment<\/h2>\n<p>The following figure shows the crime predictions for Section 5 on Thanksgiving Day (Thursday, November 23rd) from 00:00 to 06:00.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/crime-prevention-model-deployment-1.webp\" \/><\/p>\n<p>As can be seen, most districts have low rates, but Southern has a medium rate.<\/p>\n<p>Similarly, the following figure shows the exact predictions for the 06:00-12:00 period.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/crime-prevention-model-deployment-2.webp\" \/><\/p>\n<p>The increase continues, with Southern, Northern, and Central showing the highest crime levels, while Tenderloin shows the lowest, and the rest of the districts fall in between.<\/p>\n<p>As the day progresses, between 12:00 and 18:00, the Southern District will reach a high worrying ratio. The Central and Northern districts will also be at risk. The Tenderloin, Richmond, and Park districts will no longer be as secure as earlier, and the Bayview, Ingleside, Mission, and Taraval districts will be at intermediate risk.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/crime-prevention-model-deployment-3.webp\" \/><\/p>\n<p>The highest ratios will occur late evening (18:00-24:00), especially in Southern, Central, and Northern districts. The ratios will be intermediate in Bayview, Ingleside, Mission, and Taraval districts (also in Tenderloin). On the other hand, the districts of Richmond and Park will present the lowest ratios.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/crime-prevention-model-deployment-4.webp\" \/><\/p>\n<p>We can also examine how crimes will evolve. For example, the following figure shows the evolution of Section 5 offenses in Southern during a whole week and from 12:00 to 18:00.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/crime-prevention-model-deployment-5.webp\" \/><\/p>\n<p>As we can see, the number of crimes increases throughout the week, from Sunday to Saturday.<\/p>\n<\/section>\n<section id=\"Conclusions:\">\n<h2>Conclusions<\/h2>\n<p>In this study, we have utilized machine learning based on neural networks to support the police forces of the City and County of San Francisco.<\/p>\n<p>Like many others globally, this city is increasing the volume, variety, and velocity of information stored about crimes.<\/p>\n<p>By recognizing patterns of criminal behavior based on temporal and spatial variables, we have designed a predictive model to optimize police resources and prevent crimes before they occur.<\/p>\n<ul>\n<li>We have observed how Section 5 crimes in the Southern District represent the darkest points of criminality in the City of San Francisco.<\/li>\n<li>Section 10 crimes in the Tenderloin District have the smallest number of crimes in that city.<\/li>\n<li>The predictive model indicates that Section 5 crimes increase as the day progresses, with the 18:00-24:00 period being the most dangerous, particularly in the Southern, Central, and Northern Districts.<\/li>\n<li>Conversely, the lowest ratios for that section occur in the 00:00-06:00 period in the Tenderloin district.<\/li>\n<\/ul>\n<p>Due to the crime maps and evolution graphs generated as examples, we can observe clusters of crime areas and periods.<\/p>\n<p>This enables the police to allocate resources effectively, preventing crimes and reducing the risk to citizens.<\/p>\n<p>The study presented in this chapter leads us to conclude that neural networks have an excellent capacity for crime prevention.<\/p>\n<p>Implementing these systems in the SFPD will enable better allocation of human resources. That will result in greater efficiency of those police forces.<\/p>\n<p>At the same time, these advanced analytics methods enhance existing ones that leverage traditional socioeconomic and demographic variables, often utilizing Data Envelopment Analysis as an optimization technique for inputs\/outputs.<\/p>\n<\/section>\n<section>\n<h2>References:<\/h2>\n<ul>\n<li>The data set used in this study contains incidents reported by the San Francisco Police Department (SFPD) and is published by <a href=\"https:\/\/datasf.org\/opendata\/\">San Francisco Open Data<\/a>, the central clearinghouse for data published by the City and County of San Francisco.<\/li>\n<li>The <a href=\"https:\/\/www.unodc.org\/unodc\/en\/data-and-analysis\/statistics\/iccs.html\">International Classification of Crime for Statistical Purposes (ICCS)<\/a>.<\/li>\n<\/ul>\n<\/section>\n<section>\n<h2>Related posts<\/h2>\n<\/section>\n","protected":false},"author":12,"featured_media":2350,"template":"","categories":[],"tags":[54],"class_list":["post-3379","blog","type-blog","status-publish","has-post-thumbnail","hentry","tag-public-sector"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Prevent urban crime using machine learning<\/title>\n<meta name=\"description\" content=\"Build a machine learning model that helps you optimize the necessary resources and prevent crime before it happens.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.neuraldesigner.com\/blog\/crime-prevention\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Prevent urban crime using machine learning\" \/>\n<meta property=\"og:description\" content=\"Build a machine learning model that helps you optimize the necessary resources and prevent crime before it happens.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.neuraldesigner.com\/blog\/crime-prevention\/\" \/>\n<meta property=\"og:site_name\" content=\"Neural Designer\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-29T14:30:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/crime-prevention.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1400\" \/>\n\t<meta property=\"og:image:height\" content=\"933\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@NeuralDesigner\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/crime-prevention\/\",\"url\":\"https:\/\/www.neuraldesigner.com\/blog\/crime-prevention\/\",\"name\":\"Prevent urban crime using machine learning\",\"isPartOf\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/crime-prevention\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/crime-prevention\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/crime-prevention.jpg\",\"datePublished\":\"2023-08-31T10:59:22+00:00\",\"dateModified\":\"2025-09-29T14:30:58+00:00\",\"description\":\"Build a machine learning model that helps you optimize the necessary resources and prevent crime before it happens.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/crime-prevention\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.neuraldesigner.com\/blog\/crime-prevention\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/crime-prevention\/#primaryimage\",\"url\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/crime-prevention.jpg\",\"contentUrl\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/crime-prevention.jpg\",\"width\":1400,\"height\":933},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/crime-prevention\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.neuraldesigner.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Blog\",\"item\":\"https:\/\/www.neuraldesigner.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Prevent urban crime using machine learning\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.neuraldesigner.com\/#website\",\"url\":\"https:\/\/www.neuraldesigner.com\/\",\"name\":\"Neural Designer\",\"description\":\"Explanable AI Platform\",\"publisher\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.neuraldesigner.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.neuraldesigner.com\/#organization\",\"name\":\"Neural Designer\",\"url\":\"https:\/\/www.neuraldesigner.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png\",\"contentUrl\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png\",\"width\":1024,\"height\":223,\"caption\":\"Neural Designer\"},\"image\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/NeuralDesigner\",\"https:\/\/es.linkedin.com\/showcase\/neuraldesigner\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Prevent urban crime using machine learning","description":"Build a machine learning model that helps you optimize the necessary resources and prevent crime before it happens.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.neuraldesigner.com\/blog\/crime-prevention\/","og_locale":"en_US","og_type":"article","og_title":"Prevent urban crime using machine learning","og_description":"Build a machine learning model that helps you optimize the necessary resources and prevent crime before it happens.","og_url":"https:\/\/www.neuraldesigner.com\/blog\/crime-prevention\/","og_site_name":"Neural Designer","article_modified_time":"2025-09-29T14:30:58+00:00","og_image":[{"width":1400,"height":933,"url":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/crime-prevention.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_site":"@NeuralDesigner","twitter_misc":{"Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.neuraldesigner.com\/blog\/crime-prevention\/","url":"https:\/\/www.neuraldesigner.com\/blog\/crime-prevention\/","name":"Prevent urban crime using machine learning","isPartOf":{"@id":"https:\/\/www.neuraldesigner.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.neuraldesigner.com\/blog\/crime-prevention\/#primaryimage"},"image":{"@id":"https:\/\/www.neuraldesigner.com\/blog\/crime-prevention\/#primaryimage"},"thumbnailUrl":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/crime-prevention.jpg","datePublished":"2023-08-31T10:59:22+00:00","dateModified":"2025-09-29T14:30:58+00:00","description":"Build a machine learning model that helps you optimize the necessary resources and prevent crime before it happens.","breadcrumb":{"@id":"https:\/\/www.neuraldesigner.com\/blog\/crime-prevention\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.neuraldesigner.com\/blog\/crime-prevention\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.neuraldesigner.com\/blog\/crime-prevention\/#primaryimage","url":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/crime-prevention.jpg","contentUrl":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/crime-prevention.jpg","width":1400,"height":933},{"@type":"BreadcrumbList","@id":"https:\/\/www.neuraldesigner.com\/blog\/crime-prevention\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.neuraldesigner.com\/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https:\/\/www.neuraldesigner.com\/blog\/"},{"@type":"ListItem","position":3,"name":"Prevent urban crime using machine learning"}]},{"@type":"WebSite","@id":"https:\/\/www.neuraldesigner.com\/#website","url":"https:\/\/www.neuraldesigner.com\/","name":"Neural Designer","description":"Explanable AI Platform","publisher":{"@id":"https:\/\/www.neuraldesigner.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.neuraldesigner.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.neuraldesigner.com\/#organization","name":"Neural Designer","url":"https:\/\/www.neuraldesigner.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png","contentUrl":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png","width":1024,"height":223,"caption":"Neural Designer"},"image":{"@id":"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/NeuralDesigner","https:\/\/es.linkedin.com\/showcase\/neuraldesigner\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/blog\/3379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/users\/12"}],"version-history":[{"count":0,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/blog\/3379\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/media\/2350"}],"wp:attachment":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/media?parent=3379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/categories?post=3379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/tags?post=3379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}