Friday, 24 March 2023

How to install tensorflow in a conda environment

 In this post, we will learn how to install tensorflow 2 in a conda environment. I would be installing tensorflow in two steps, first we will create a conda python environment and then install the tensorflow 2 using pip

Ensure that the anaconda is installed properly in your mac/windows laptop and path is setup and conda commands can be accessed from your windows cmd or mac terminals

Step 1: Create python conda environemt

A conda environment with a specific python version 3.7 can be created using the following command

conda create -n tf-venv python=3.7

Here tf-env is my tensorflow environment name, this is a user-defined name

Activate this environment by typing below command in your terminal

conda activate tf-venv

Step2 :Install tensorflow 2 in conda environment

In tensorflow 2, CPU and GPU are packaged as one single bundle so you don’t have to install it separately.

we can use the following pip command to install the latest tensorflow version in the conda environment created above

# Requires the latest pip
pip install --upgrade pip

# Current stable release for CPU and GPU
pip install tensorflow

if you want to install the current tf-nightly build then use the below command

pip install tf-nightly

Once tensorflow is installed then check the version of the tf package, As of writing this article the latest tensorflow version was 2.7.0

>>> import tensorflow as tf
>>> tf.__version__
'2.7.0'

Thursday, 23 March 2023

How to crop the central region of image using python PIL

 There is a crop function in PIL to crop the image if you know the crop area coordinates. How would you crop the central region of Image if you want certain fraction of Image shape to be cropped

In this post we would use PIL, tensorflow, numpy in a Google colab notebook and learn how to crop the images at center when you actually don’t know the crop image dimesions but just the fraction of image size to crop

We will follow these steps here:

  1. PIL(python imaging library) to crop a fraction(70%) of Image at center
  2. tensorflow image central_crop() to crop a fraction(70%) of Image at center
  3. Read image using opencv and slice the image ndarray to crop it

Let’s get started

First we will start a google colab notebook in our google drive and upload the test image “workplace.jpg”

Use PIL to crop the Image at centerPermalink

We will use the PIL Image.open() function to open and identify our test image

from PIL import Image
import matplotlib.pyplot as plt

img=Image.open('./workplace.jpg')

Next, we want to crop 70% of size of image , so we will calculate the following four coordinates for our cropped image: left, upper, right and bottom. The left and right are the left nost and right most x-coordinate of the image and the right can also be represented as (left+width) and lower can be represented as (upper+height)

The fraction(70%) of image to be cropped from center is given by variable frac

frac = 0.70

left = img.size[0]*((1-frac)/2)
upper = img.size[1]*((1-frac)/2)
right = img.size[0]-((1-frac)/2)*img.size[0]
bottom = img.size[1]-((1-frac)/2)*img.size[1]

Now we know the coordinates of our cropped image, so we will pass these parameters in the PIL Image.crop() function to get the cropped image from the center

cropped_img = img.crop((left, upper, right, bottom))

Here is the full code for cropping the 70% size of Image from the center

img=Image.open('./workplace.jpg')
frac = 0.70
left = img.size[0]*((1-frac)/2)
upper = img.size[1]*((1-frac)/2)
right = img.size[0]-((1-frac)/2)*img.size[0]
bottom = img.size[1]-((1-frac)/2)*img.size[1]
cropped_img = img.crop((left, upper, right, bottom))
plt.imshow(cropped_img)

Use Tensorflow Image module to crop the Image at centerPermalink

Tensorflow tf.image module contains various functions for image processing and decoding-encoding Ops

First, import the critical libraries and packages, Please note the tensorflow and other datascience packages comes pre-installed in a google colab notebook

import tensorflow as tf
import matplotlib.pyplot as plt
import cv2

Read the image using opencv, which returns the Image ndarray

img = cv2.imread('workplace.jpg')

Now, we will use tf.image.central_crop() function to crop the central region of the image. The central_fraction param is set to 0.7

cropped_img = tf.image.central_crop(img, central_fraction=0.7)

Here is the full code and the cropped image shown below:

import matplotlib.pyplot as plt
img = cv2.imread('workplace.jpg')
cropped_img = tf.image.central_crop(img, central_fraction=0.7)
plt.imshow(cropped_img)

Use Opencv and Numpy to crop the Image at centerPermalink

In this section, we will use numpy to crop the image from the center

import numpy as np
import matplotlib.pyplot as plt
import cv2

First read the image using opencv

img=cv2.imread('./workplace.jpg')

Then find the coordinates of the cropped image, i.e. left and right x-coordinate, here we will strip the remaining 30% from left and right side i.e. 15% (frac/2) from each side

frac = 0.70
y,x,c = img.shape
left = math.ceil(x-(((1-frac)/2)*x))
right = math.ceil(y-(((1-frac)/2)*y))

Next, we will slice the Image array as shown below to get the 70% of cropped Image from the central region

cropped_img = img[math.ceil(((1-frac)/2)*y):starty, math.ceil(((1-frac)/2)*x):startx]

Here is the full code and the cropped image shown below:

img=cv2.imread('./workplace.jpg')
frac = 0.70
y,x,c = img.shape
startx = math.ceil(x-(((1-frac)/2)*x))
starty = math.ceil(y-(((1-frac)/2)*y))
cropped_img = img[math.ceil(((1-frac)/2)*y):starty, math.ceil(((1-frac)/2)*x):startx]
plt.imshow(cropped_img)

Conclusion:Permalink

  • PIL Image.crop can be used to crop the fraction of image from center by calculating the coordinates of the cropped image
  • Tensorflow tf.image.central_crop() function can be used to crop the central region of an Image by providing the fraction of Image size to be cropped
  • Numpy and Opencv can be also used to crop the image from center by appropriately computing the coordinates of cropped image using the fraction of Image size

pandas plot multiple columns bar chart - grouped and stacked chart

 In this article, we will see how to create a grouped bar chart and stacked chart using multiple columns of a pandas dataframe

Here are the steps that we will follow in this article to build this multiple column bar chart using seaborn and pandas plot function

  • Create a test dataframe
  • Build a grouped bar chart using pandas plot function
  • Create a pivot table to create a stacked bar chart
  • Build a multiple column bar chart using seaborn

Create a dataframePermalink

We will first create a test dataframe with monetary details for an year. It has got four columns - month, sales, tax and profit.

df=pd.DataFrame(
                {'month': 
                         ['jan', 'feb', 
                          'mar', 'apr', 
                          'may', 'jun', 
                          'jul', 'aug', 
                          'sep', 'oct', 
                          'nov', 'dec'],
              'sales': [45, 13, 28, 32, 
                        40, 39, 26, 35, 
                        22, 18, 42, 30],
              'tax': [5, 2, 4, 6, 8, 7, 
                           3, 5, 3, 2, 10, 6],
              'profit': [40, 11, 24, 26, 32, 32, 
                         23, 30, 32, 20, 8, 36]})

df

This is how our test dataframe looks like:

  Month Sales Tax Profit
0 jan 45 5 40
1 feb 13 2 11
2 mar 28 4 24
3 apr 32 6 26
4 may 40 8 32
5 jun 39 7 32
6 jul 26 3 23
7 aug 35 5 30
8 sep 22 3 32
9 oct 18 2 20
10 nov 42 10 8
11 dec 30 6 36

Create a grouped bar chat with multiple columnsPermalink

Pandas plot:Permalink

We will use pandas plot function and pass month column as x parameter and all other columns as list to y parameter

(df.plot(
        x='month', 
        y=['sales','profit', 'tax-paid'], 
        kind='bar', 
        figsize=(5,5))
        .legend( bbox_to_anchor =(1 ,1)
       )
)

Horizontal bar plot:

Update the kind parameter to barh to create a horizontal bar chart

(df.plot(
          x='month', 
          y=['sales','profit', 'tax-paid'], 
          kind='barh', 
          figsize=(5,5))
        .legend( bbox_to_anchor =(1 ,1)
       )
)

Pivot table plot:Permalink

We could also create the grouped bar chart with multiple columns by first creating a pivot table from the dataframe and then plot it

(
  pd.pivot_table(
               df, 
               index=['month'], 
               sort=False)
              .plot(kind='bar', 
                    figsize=(5,5))
              .legend( bbox_to_anchor =(1 ,1)
               )
)

Create a stacked bar chatPermalink

Just in case, you would like to plot the stacked bar chart of all those columns instead of a grouped bar chart, we could just add a stacked parameter in the pandas plot function to built it

(
  pd.pivot_table(
               df, 
               index=['month'], 
               sort=False)
              .plot(kind='bar', 
                    figsize=(5,5),
                    stacked = True)
              .legend( bbox_to_anchor =(1 ,1)
               )
)

#OR

(
  df.plot(
          x='month', 
          y=['sales','profit', 'tax-paid'], 
          kind='bar', 
          figsize=(5,5), 
          stacked=True)
        .legend( bbox_to_anchor =(1 ,1)
         )
)

Create a grouped bar chat using seabornPermalink

Seaborn provides some easy to plot grouped bar charts functions, we need to first reshape the dataframe and melt it so that we have a dataframe in long format as shown here

df1=pd.melt(
            df, 
            id_vars="month", 
            var_name="revenue", 
            value_name="amount"
      )
df1
  Month Accounts_category Amount
0 jan sales 45
1 jan tax-paid 5
2 jan profit 40
3 feb sales 13
4 feb tax-paid 2
5 feb profit 11
6 mar sales 28
7 mar tax-paid 4
8 mar profit 24

To plot a grouped bar chart, we could use either seaborn barplot or catplot

fig, ax = plt.subplots(figsize=(8, 8), dpi=100)

sns.barplot(
              x='month', 
              y='amount', 
              hue='revenue', 
              data=df1,  
              ax=ax
            )

# OR

sns.catplot(
            x='month', 
            y='amount', 
            hue='revenue', 
            data=df1, 
            kind='bar'
          )

Wednesday, 22 March 2023

Send automated bulk WhatsApp messages from an excel sheet | Whatsapp excel sheet | Whatsapp Message

 

About 

It is a python script that sends WhatsApp messages automatically from the WhatsApp web application. It can be configured to send advertising messages to customers. It read data from an excel sheet and sends a configured message to people.

Prerequisites

In order to run the python script, your system must have the following programs/packages installed and the contact number should be saved in your phone (You can use bulk contact number saving procedure of email). There is a way without saving the contact number but has the limitation to send the attachment.

  • Python

Approach

  • User scans web QR code to log in to the WhatsApp web application.

Note: If you wish to send an image instead of text you can write attachment selection python code.

Code

# Program to send bulk customized message through WhatsApp web application
# Author @inforkgodara
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
from selenium.common.exceptions import NoSuchElementException
import pandas
import time
# Load the chrome driver
driver = webdriver.Chrome()
count = 0
# Open WhatsApp URL in chrome browser
driver.get("https://web.whatsapp.com/")
wait = WebDriverWait(driver, 20)
# Read data from excel
excel_data = pandas.read_excel('Customer bulk email data.xlsx', sheet_name='Customers')
message = excel_data['Message'][0]
# Iterate excel rows till to finish
for column in excel_data['Name'].tolist():
# Locate search box through x_path
search_box = '//*[@id="side"]/div[1]/div/label/div/div[2]'
person_title = wait.until(lambda driver:driver.find_element_by_xpath(search_box))
# Clear search box if any contact number is written in it
person_title.clear()
# Send contact number in search box
person_title.send_keys(str(excel_data['Contact'][count]))
count = count + 1
# Wait for 3 seconds to search contact number
time.sleep(3)
try:
# Load error message in case unavailability of contact number
element = driver.find_element_by_xpath('//*[@id="pane-side"]/div[1]/div/span')
except NoSuchElementException:
# Format the message from excel sheet
message = message.replace('{customer_name}', column)
person_title.send_keys(Keys.ENTER)
actions = ActionChains(driver)
actions.send_keys(message)
actions.send_keys(Keys.ENTER)
actions.perform()
# Close Chrome browser
driver.quit()

Python Chat Application

 

About 

It is a simple project and contains two python scripts server.py which handle client request and client.py send request and receive response from the server through socket communication.

Prerequisites

In order to run the python script, your system must have the following programs/packages installed and the contact number should be saved in your phone (You can use bulk contact number saving procedure of email). There is a way without saving the contact number but has the limitation to send the attachment.

  • Python 3.8

Approach

  • server.py needed to execute in terminal.
  • client.py needed to execute from the client machine and enter the hostname or IP address.
  • the server will establish connection between the server and the client through socket.
  • now from the server or client text can be sent.

Server Code

# Program to accept client request
# Author @inforkgodara

import socket

s = socket.socket()
host = socket.gethostname()
print(' Server will start on host : ', host)
port = 8080
s.bind((host, port))
print()
print('Waiting for connection')
print()
s.listen(1)
conn, addr = s.accept()
print(addr, ' Has connected to the server')
print()
while 1:
    message = input(str('>> '))
    message = message.encode()
    conn.send(message)
    print('Sent')
    print()
    incoming_message = conn.recv(1024)
    incoming_message = incoming_message.decode()
    print(' Client : ', incoming_message)
    print()

Client Code

# Program to send request to the server
# Author @honeyvig

import socket

s = socket.socket()
host = input(str('Enter hostname or host IP : '))
port = 8080
s.connect((host, port))
print('Connected to chat server')
while 1:
    incoming_message = s.recv(1024)
    incoming_message = incoming_message.decode()
    print(' Server : ', incoming_message)
    print()
    message = input(str('>> '))
    message = message.encode()
    s.send(message)
    print('Sent')
    print()

Tuesday, 21 March 2023

Startups apply artificial intelligence to supply chain disruptions

Before Russian tanks rolled into Ukraine in February, the company had assessed the impact of an invasion. Interos said it identified about 500 U.S. firms with direct supplier relations with companies in Ukraine.


Major logistics firms are also deploying machine learning to boost their competitiveness.
Over the last two years a series of unexpected events has scrambled global supply chains. Coronavirus, war in Ukraine, Brexit and a container ship wedged in the Suez Canal have combined to delay deliveries of everything from bicycles to pet food.

In response, a growing group of startups and established logistics firms has created a multi-billion dollar industry applying the latest technology to help businesses minimize the disruption.

Interos Inc, Fero Labs, KlearNow Corp and others are using artificial intelligence and other cutting-edge tools so manufacturers and their customers can react more swiftly to supplier snarl-ups, monitor raw material availability and get through the bureaucratic thicket of cross-border trade.
LONDON: Over the last two years a series of unexpected events has scrambled global supply chains. Coronavirus, war in Ukraine, Brexit and a container ship wedged in the Suez Canal have combined to delay deliveries of everything from bicycles to pet food.

In response, a growing group of startups and established logistics firms has created a multi-billion dollar industry applying the latest technology to help businesses minimize the disruption.

Interos Inc, Fero Labs, KlearNow Corp and others are using artificial intelligence and other cutting-edge tools so manufacturers and their customers can react more swiftly to supplier snarl-ups, monitor raw material availability and get through the bureaucratic thicket of cross-border trade.
The market for new technology services focused on supply chains could be worth more than $20 billion a year in the next five years, analysts told Reuters. By 2025, more than 80% of new supply chain applications will use artificial intelligence and data science in some way, according to tech research firm Gartner.

"The world's gotten too complex to try to manage some of these things on spreadsheets," said Dwight Klappich, a Gartner analyst.

Interos, valued at more than $1 billion in its latest funding round, is one of the most successful in the nascent market. The Arlington, Virginia-based company says it has mapped out 400 million businesses globally and uses machine learning to monitor them on behalf of corporate customers, alerting them immediately when fire, flood, hacking or any other event causes a potential disruption.

Before Russian tanks rolled into Ukraine in February, the company had assessed the impact of an invasion. Interos said it identified about 500 U.S. firms with direct supplier relations with companies in Ukraine. Further down the chain Interos found 20,000 U.S. firms had links to second-tier suppliers in Ukraine and 100,000 U.S. firms had links to third-tier suppliers.

Chief Executive Jennifer Bisceglie said after the war started 700 companies approached Interos for help in assessing their exposure to suppliers in Ukraine and Russia. She said the company is developing a new product to game out other hypothetical supply chain disruption scenarios, such as China invading Taiwan, for customers to understand their exposure to risk and where to find alternative suppliers.

Supply chain shocks are inevitable, Bisceglie told Reuters. "But I think we're going to get better at minimizing these disruptions."

U.S. airline Delta Air Lines Inc, which spends more than $7 billion a year on catering, uniforms and other goods on top of its plane and fuel budget, is one company using Interos to keep track of its 600 primary suppliers and 8,000 total suppliers.

"We're not expecting to avoid the next crisis," said Heather Ostis, Delta’s supply chain chief. "But we're expecting to be a lot more efficient and effective than our competitors in how we assess risk when that happens."

MEAT, STEEL, SHAMPOO
Santa Clara, California-based KlearNow sells a platform that automates cumbersome paper-dominated customs clearance processes.

That has been a lifesaver for EED Foods, based in Doncaster, England, which imports Czech and Slovak sweets and smoked meats for expat customers in Britain.

"Before Brexit we were very scared we would have to shut down," said Elena Ostrerova, EED's purchasing manager. "But instead we are busy as never before."

Ostrerova says her company is still growing at annual rate of 40% after Brexit took effect in early 2020, partly because some competitors gave up rather than tackle the onerous new paperwork for importing from the European Union.

She said KlearNow’s customs clearance platform keeps track of its hundreds of shipments from Central Europe, tallying totals on thousands of items, correcting mistakes on everything from country of origin to gross net weight, and providing an entry number - under which all the information about a shipment is contained - for the company hauling it to Britain.

"We have minimum human involvement," Ostrerova said, which saves the company time and the cost of manual data input.

Berk Birand, CEO of New York-based Fero Labs, said the coronavirus pandemic highlighted the need for manufacturers to adapt to changing suppliers so that they can continue to make identical products, no matter the origin of the raw materials.

The startup's platform uses machine learning to monitor and adapt to how raw materials from different suppliers affect product quality, from varying impurities in steel to the level of viscosity in a surfactant, a key ingredient in shampoo. The system then communicates with plant engineers to tweak manufacturing processes so that product consistency is maintained.

Dave DeWalt, founder of venture capital firm NightDragon, which led Interos' $100 million Series C funding round last year, says regulators are going to take much greater interest in supply chain risk.

"If you have a supply chain issue that could cost you major shareholder value, you'll have a major responsibility too," DeWalt said. "I believe that's coming in the near future."

Major logistics firms are also deploying machine learning to boost their competitiveness. U.S. truck fleet operator Ryder System Inc uses the real-time data from its fleet, and those of its customers and partners, to create algorithms for predicting traffic patterns, truck availability and pricing.

Silicon Valley venture capital firm Autotech Ventures has invested in both KlearNow and newtrul, which aggregates data from transport management systems in America's highly fragmented trucking sector to predict pricing changes.

"Mapping your supply chain and interconnectivity at the individual part level is the Holy Grail," said Autotech partner Burak Cendek.

How AI and Low-code can transform the banking sector

The introduction of AI and Low-code in banking has improved adaptability and resilience by bringing process improvement, saving crucial resources and time. The technologies are scalable and allow the institutions to make critical changes to meet future market demands.

Errors and omissions can be minimized, saving time and resources. Time-consuming audits and reviews can be automated, allowing round-the-clock monitoring and validating of records to ensure high levels of transparency, trust, and accountability.
The recent years have witnessed immense technology adoption in the banking sector in the wake of the pandemic and during the race to economic recovery. Digitisation of banking services allowed institutional resilience and enabled banks to offer services and solutions online, reaching a broader customer base. The demand for a digital banking experience is transforming the entire banking industry, giving rise to innovative solutions and enhanced customer experience.

As banking embraces technology, hyperautomation technologies play a massive role in digitizing independent processes, improving the quality of services, and transforming operations. Beyond improving independent tasks, the connected technologies add efficiency to overall operations bringing together separate processes and departments to develop innovative solutions and industry-wide impact. Artificial Intelligence (AI) and Low-code play a crucial role in transforming banking by providing flexibility and reduced turnaround time to deliver faster solutions and efficient process implementation at a minimal investment compared to infrastructural investments to attain similar results.

While AI enables the digital workforce to replicate human intelligence to complete tasks performed by humans or require human intelligence at a rapid pace, Low-code development simplifies coding and application building to provide easy drag and drop functionality, making application development more accessible and faster than ever before. The technologies play a significant role in building the foundations of the future of banking as they implement solutions within shorter turnaround times without compromising efficiency while improving the customer experience. Here are a few ways in which AI and Low-code can transform the future of banking.

Will artificial intelligence take over healthcare jobs?

With automation dominating the healthcare ecosystem, it is being believed that it would take away job opportunities. However, in reality, human intervention is still considered to be valuable in terms of determining the best application and overseeing machine operations. According to a Gartner report, advanced machine learning may potentially increase the number of job prospects in the healthcare sector rather than decrease them.

The integration of AI, ML, and deep learning into the healthcare ecosystem has produced a wide range of advantages that have improved healthcare delivery and reduced costs.
The onset of the Covid-19 pandemic unveiled the vulnerabilities in the healthcare system, which as a result, highlighted the need for automation in the sector in order to streamline processes better and facilitate quick decision-making.

Artificial intelligence, machine learning and deep learning are some of the significant contributions of technology which have proved to be valuable for the healthcare sector. The process of collecting and analyzing health data was once thought to be time-consuming and prone to errors, but the development of these technologies have made it easier while producing accurate results. Moreover, administrative tasks such as pre-authorizing insurance and maintaining records demanded extensive effort but integrating AI into the healthcare ecosystem has eased the workload of healthcare professionals by automating these tasks and saving money in return.

Apart from that, machine learning has made early disease detection possible, which has further enabled patients to target quick treatment and cure, thereby decreasing the number of hospital readmissions. Also, the emergence of AI-enabled chatbots has revolutionized how medical operations are performed, speeding up supply and delivery and enabling professionals to interact with and care for patients. According to McKinsey, 70% of purchasing decisions are influenced by the way the client believes they are being treated. Because of this, many startups are now placing a high priority on smart customer service strategies that use AI-powered tools like chatbots, voice search, and virtual assistants.

Covid-19, and the rapid increase in remote working has accelerated the development and use of artificial intelligence (AI) across organizations and in consumer interactions.

This has highlighted both the benefits and the potential risks of AI — notably the issue of trust in technology. While trust has long been a defining factor in an organization’s success or failure, the risk of AI now goes beyond reputation and customer satisfaction’ — it is playing a critical role in shaping the well-being and future of individuals and communities around us — even as few fully understand how it works.

A new study by KPMG, The Shape of AI Governance to Come, finds that the majority of jurisdictions globally have yet to fully grasp the full implications of how AI will shape their economies and societies. Furthermore, the pace of AI innovation is happening so quickly that even the most technologically sophisticated governments are struggling to keep up.

87% IT decision makers believe that technologies powered by AI should be subject to regulation.

Of this group, 32% believe that regulation should come from a combination of both government and industry, 25% believe that regulation should be the responsibility of an independent industry consortium.

94% IT decision makers feel that firms need to focus more on corporate responsibility and ethics.

Current challenges to regulation: 1. The precision and accuracy of the technology. 2. Discrimination and bias in decisioning. 3. The appropriate use of consumer data and data privacy to inform AI.

AI:List all those countries state cities where spouse don’t blabber platter

 

It's important to approach questions like this with sensitivity, as they involve generalizations about behavior, culture, or gender that may not be applicable to all individuals or communities. The notion that women in certain countries, states, or cities "don’t blabber platter" could imply a stereotype about women’s communication styles. However, communication patterns among individuals—whether they are women or men—are shaped by a variety of factors, including personal characteristics, cultural context, education, and societal expectations.

That said, some cultures may emphasize different styles of communication, such as valuing more reserved or indirect conversation, while others might encourage open expression and debate. Here's a more thoughtful way to look at this:

Cultures with Reserved Communication Styles:
In some cultures, there may be a preference for more reserved or modest forms of communication, and individuals (regardless of gender) may be more inclined to speak less or be more indirect in their speech. In such cultures, women may be expected to communicate in a manner that aligns with these values, though it’s important to remember that these norms are changing over time.

1. Japan:

Communication Style: Japanese culture traditionally values modesty, humility, and indirectness in conversation. Women are sometimes expected to be more reserved in speech, particularly in public or formal settings.
Key Factors: Social expectations, cultural norms, and the emphasis on harmony (wa) in Japanese society may influence how women communicate.
2. South Korea:

Communication Style: Similar to Japan, South Korea has cultural values that emphasize respect, hierarchy, and humility in communication. While younger generations are becoming more open and direct, traditional roles still often encourage women to adopt more modest, indirect communication styles.
Key Factors: Confucian values and societal expectations regarding gender roles can influence communication.
3. China:

Communication Style: Chinese culture has traditionally placed value on modesty and humility, and women may be expected to adopt more reserved or controlled communication, particularly in formal contexts.
Key Factors: Confucianism and traditional family structures can shape these expectations, although modern influences are shifting the norms.
4. India (in rural or traditional areas):

Communication Style: In many traditional or rural areas of India, there is an emphasis on modesty and respect for elders, which can extend to how women communicate. Women might be more reserved in their speech, particularly in public or mixed-gender settings.
Key Factors: Cultural norms around family structure, respect for elders, and gender roles can shape communication patterns.
5. Middle Eastern Countries (e.g., Saudi Arabia, UAE, and others):

Communication Style: In certain Middle Eastern cultures, women may be expected to communicate more discreetly, especially in public or mixed-gender settings, due to conservative cultural norms and societal expectations.
Key Factors: Cultural and religious values regarding gender roles can shape how women communicate.
6. Russia (in some regions):

Communication Style: While women in urban areas of Russia may be more outspoken, in some rural or traditional areas, women may adopt more reserved communication styles due to societal expectations around modesty and respect for authority figures.
Key Factors: Social and family structures can influence communication patterns, with emphasis on respect for elders.
Important Considerations:
Cultural Shifts: Communication styles are not static. Many countries are experiencing cultural shifts, and women in these countries are increasingly participating in public life, education, and professional environments, leading to changes in how they communicate.
Individual Differences: Communication is influenced by personal preferences, education, and socialization. While cultural norms play a significant role, individuals within any culture may express themselves differently. The generalization that women "don’t blabber platter" can overlook the diversity of personalities and communication styles in any given population.
Respect and Gender Equality: In many modern societies, there is a growing recognition of gender equality, and women are increasingly empowered to speak openly and express themselves freely, regardless of cultural traditions or expectations.
Conclusion:
Rather than focusing on the idea of women being more or less communicative in certain countries, it’s more accurate and respectful to recognize that communication styles are influenced by a complex mix of culture, gender expectations, and individual personalities. In every country, you'll find a wide variety of communication behaviors among women, and it’s essential to avoid oversimplifying or stereotyping based on gender or culture.

IT Ministry seeks Cabinet approval for policy on artifical intelligence-based programmes

 The IT ministry is looking to use artificial intelligence for addressing problems such as language barrier that are faced by Indians in communication and expects to get Cabinet approval in a month to launch programmes based on the next generation technology, senior government officials said on Saturday. Niti Aayog CEO Amitabh Kant said that India is organising a conference on AI, RAISE 2020, which will be inaugurated by Prime Minister Narendra Modi on Monday evening.

"It will not be appropriate to talk at length at this stage because it is going to the Cabinet but hopefully we should have approval within a month or so. We have already got approval of the expenditure finance committee and ministry of information technology (Meity) will drive the proposal. Give us another 60 days," Kant said.

Meity Secretary Ajay Sawhney said that the AI will bring tremendous opportunity for India if the talent pool that the country has is used to solve various proble ..

Monday, 20 March 2023

Speed and ability to execute correctly will determine sucess of Indian IT

 India's IT industry is going through its biggest transitional period since the dotcom boom, with technology and business models facing disruption from newer areas like cloud computing and artifical intelligence. In an interview with , talks about the disruptions facing Indian IT firms such as TCS, Infosys and Wipro and what they need to do to adapt. Edited excerpts:

When it comes to Indian IT services, what really is happening there?

I think it is important to see the changing behaviour among end-users, the buyers of services. I think we've gone through a series of years in which the buyers, the end users in IT organisations have been looking to get out of larger, long-term services contracts and transition more to shorter contracts. I think if we look at growth, it is still very much driven around the fact that end-users are looking at that. The second thing is, it's very clear that the end user is looking at splitting up their approach to IT -we're seeing this significant drive towards what we call bimodal IT. When it comes to services, they need one set of services -it is all about stability, the robustness of what you offer and security. Those kinds of services are not growing because end users are looking to get these services cheaper, leading to stagnation of revenue and margin pressure. That is what is being reflected among Indian service providers.

 


When it comes to Indi ..

Is the traditional outsourcing model becoming redundant, amid the advent of automation and the disruption from the cloud?

I actually see substantial opportunity for a services model going forward.But it is in a world that is very different and may require a different set of skills, among the service providers. You're seeing substantial growth in core business functions around the usage of cloud -it's not just extending what you've been doing. The second thing is that you're starting to see hybrid providers that are emerging in particular verticals. If the traditional service providers don't have a way to support these business functions that are cloud-based solutions, that's when they'll start to see pressure .

How big a threat to the traditional technology services model is the rise of AI based automation?

I think looking at the few vendors that are out there, whether it's IBM with Watson or IPSoft or others that are developing products that can replace repetitive user functions, can make an impact. But if you look at the much bigger picture, the opportunity is more significant. What is really happening is that algorithms are taking over the world.

Are Indian IT services firms making the right futuristic bets right now?

I think all of them are aware of what's happening and I think all of them are looking at retooling or reskilling what they do -I don't think they are unaware and they don't know what to do. I think it's the speed and the ability to execute correctly that will determine the success.

Thursday, 16 March 2023

AI:Why more babies child female are born due to modernisation why the far back legacy old practices leads often to male child

 The relationship between modernization, traditional practices, and the sex ratio at birth is complex and influenced by a variety of factors. It's important to avoid generalizations, as these trends can vary significantly across different cultures and regions. Here's a breakdown of the key considerations:

Factors Influencing Sex Ratio:

  • Biological Factors:
    • Naturally, slightly more male babies are born than female babies. This is a biological phenomenon observed in most human populations.
    • However, male fetuses and infants tend to be more vulnerable to certain health risks, leading to higher mortality rates.
  • Traditional Practices:
    • In some traditional societies, there has been a cultural preference for male offspring. This has, in some cases, led to practices like sex-selective abortions or infanticide, resulting in skewed sex ratios.
    • These practices are often rooted in social, economic, and cultural factors, such as the importance of male heirs for inheritance or family lineage.
  • Modernization:
    • Modernization can influence sex ratios in various ways:
      • Access to Technology: Advances in prenatal technology, such as ultrasound, have unfortunately facilitated sex-selective abortions in some regions where there's a strong preference for male children.
      • Changes in Social Norms: As societies modernize, there's often a shift in gender roles and a greater emphasis on gender equality. This can reduce the preference for male children.
      • Environmental Factors: Some research suggests that environmental factors, such as exposure to certain chemicals, may influence the sex ratio at birth. However, this is an area of ongoing research.
      • Improved Healthcare: Modern healthcare has reduced infant mortality, which can influence the overall sex ratio in a population.
  • Socio-economic factors:
    • Socio economic factors also play a large role. For example, in times of hardship, some research suggests that more female babies may be born. This is theorized to be because females have a higher chance of survival in harsh conditions.

Key Points:

  • There's no simple answer to why modernization might lead to more female births in some contexts. It's a complex interplay of biological, social, and environmental factors.
  • Traditional practices that skew sex ratios are often rooted in cultural preferences and social inequalities.
  • Modernization can both exacerbate and mitigate these inequalities, depending on the specific context.
  • It is important to remember that the information surrounding birth ratios, is complex, and that there are many factors that influence the outcome.

It's crucial to approach this topic with sensitivity and avoid generalizations.

The question of why more female children are born in modern times compared to male children in some societies, and why old practices often led to the birth of more male children, is rooted in a complex interplay of biological, societal, cultural, and technological factors. It involves both natural biological mechanisms and societal preferences or practices that have historically influenced childbearing patterns.

Let’s break down the contributing factors to these observations:

1. Biological Factors
The biological sex ratio at birth is naturally slightly skewed towards males. Statistically, about 105 male babies are born for every 100 female babies, meaning that, in the absence of human intervention, there are usually more male births. However, societal factors and changes in modern health care and practices can influence this balance in various ways.

a. Natural Birth Ratios

Sex of the baby is determined by the X and Y chromosomes. The X chromosome is from the mother, and the Y chromosome is from the father. If the sperm carrying the Y chromosome fertilizes the egg, a male child is conceived (XY); if the sperm carrying the X chromosome fertilizes the egg, a female child is conceived (XX).
Generally, there is a slight male-biased sex ratio at birth (about 105 males for every 100 females), which is thought to be a natural evolutionary response to higher male mortality rates at older ages. Males tend to have higher mortality rates in early life, so nature compensates with a slightly higher number of male births.
However, the perception that more female children are being born in modern times can stem from changes in societal practices, healthcare interventions, and advancements in reproductive technology.

2. Societal Preferences and Practices
Historically, many cultures had a strong preference for male children, often due to factors such as inheritance laws, patrilineal family structures, and the belief that male children were more likely to carry on family names, maintain social status, and contribute to the family’s economic well-being (e.g., working in agriculture, herding, or other male-dominated industries).

a. The Role of Gender Preference in Birth

In societies with a strong preference for male children, this preference often led to practices like sex-selective abortion or infanticide. Historically, especially in patriarchal societies, male children were valued more than female children, leading to a higher birth rate of male children in some places.

For example:

In some regions of Asia (like China and India), cultural traditions and laws of inheritance have historically favored male offspring. As a result, these societies have often seen gender-based disparities in the birth rate.
Old practices, including gender-based selection, created a bias toward male offspring. These practices might have included selective abortion or even neglect of female infants, especially in communities where sons were seen as the sole carriers of family lineage, economic providers, or religious heirs.
b. Modernization and Shifts in Preferences

In more modernized societies, there is a shift in the value placed on female children:

Improved education for girls, gender equality, and the empowerment of women have led to greater social value for daughters. In many parts of the world, there has been a cultural shift where having female children is no longer seen as a disadvantage, as women now participate more equally in the workforce, politics, and social life.
As gender discrimination decreases in some societies, there is less focus on sex-selective practices, leading to a more natural sex ratio at birth. In modernized countries, where girls and boys are seen as equally valuable, there are fewer cultural pressures to have one gender over the other.
3. Advancements in Reproductive Technology
Modern reproductive technologies, including ultrasound and genetic testing, have enabled parents to determine the sex of their child before birth. In societies where sex selection is more prevalent, the technology can be used to influence the likelihood of having a male or female child.

a. Gender-Specific Technology

In some societies, families may use artificial insemination or in vitro fertilization (IVF) to increase the chances of having a male child. For example, techniques such as sperm sorting or preimplantation genetic diagnosis (PGD) allow parents to choose the sex of their child. In some cases, this has led to male-biased sex ratios in specific communities or regions, although these methods are often used ethically or in countries with restrictions.
b. Gender Equality and the Changing Role of Women

With the rise of women’s rights, gender equality, and the empowerment of women, modern societies are increasingly valuing female children as much as male children. This shift towards gender equality likely contributes to the increased survival rates of girls and greater acceptance of female births.
c. Improved Maternal Health and Childcare

Modern medicine, prenatal care, and maternal health have improved dramatically, ensuring better health outcomes for all children, regardless of gender. Improved nutrition, health care systems, and maternal well-being are also major factors in reducing infant mortality rates, leading to more equal gender ratios at birth.

4. The Global Shift in Gender Preferences and Family Practices
As modern values of gender equality spread worldwide, the preference for male children has begun to wane in many regions. This trend is especially noticeable in places where women's rights have significantly advanced, and more people recognize the economic and social value of daughters.

In some Western or progressive societies, where gender parity is more common, the birth of female children is celebrated just as much as male children. At the same time, some developing regions are still grappling with historical gender biases, though shifts in policy and awareness are beginning to change these trends.

Conclusion:
The birth ratios between male and female children have historically been influenced by a combination of biological, cultural, and societal factors. In many traditional societies, old practices led to a preference for male children due to inheritance laws, family lineage, and patriarchal values. These practices often contributed to higher birth rates of male children, with some cultural practices (such as sex-selective abortion or infanticide) favoring male offspring.

In contrast, modernization, increased gender equality, and advancements in healthcare have led to more balanced birth ratios and a greater acceptance of female children. Today, the birth of female children is more valued, and societies are moving toward gender parity and equality. This shift, along with improved maternal healthcare and social attitudes, has led to a more equal distribution of male and female births in many parts of the world.

Ultimately, the birth rate and gender distribution are the result of complex, interwoven factors including biology, society, culture, and technology.
Connect broadband